From 2ea2b478397d8def26d1f446f5f9c4ab6d418403 Mon Sep 17 00:00:00 2001 From: Christian Krause <christian.krause@idiv.de> Date: Mon, 3 Jun 2019 11:15:52 +0200 Subject: [PATCH] adds bibliography from submodule --- .gitlab-ci.yml | 3 +++ .gitmodules | 3 +++ Makefile | 1 + bibliography | 1 + chapter-2-methods.md | 3 ++- idiv.bib | 9 --------- metadata.yml | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 .gitmodules create mode 160000 bibliography delete mode 100644 idiv.bib diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f16da29..ac6fffc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,9 @@ stages: - check - deploy +variables: + GIT_SUBMODULE_STRATEGY: recursive + check: stage: check tags: diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..51482d4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "bibliography"] + path = bibliography + url = ../../publishing/bibliography.git diff --git a/Makefile b/Makefile index 0f1afa7..59a5cb7 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ PANDOC = pandoc PANDOCFLAGS = \ --standalone \ + --filter pandoc-citeproc \ --pdf-engine=xelatex \ SOURCES_CSV = $(wildcard *.csv) diff --git a/bibliography b/bibliography new file mode 160000 index 0000000..9fd9bc2 --- /dev/null +++ b/bibliography @@ -0,0 +1 @@ +Subproject commit 9fd9bc22bee5df7c13916bb5878e4107cc278955 diff --git a/chapter-2-methods.md b/chapter-2-methods.md index 6db5739..f235c9d 100644 --- a/chapter-2-methods.md +++ b/chapter-2-methods.md @@ -78,7 +78,8 @@ You can add footnotes to your text like this.[^1] Bibliography ------------ -This one is often cited [see @WatsonCrick1953]. +This one is often cited [@WatsonCrick1953]. You can also cite @WatsonCrick1953 +like that. Images ------ diff --git a/idiv.bib b/idiv.bib deleted file mode 100644 index 1b92513..0000000 --- a/idiv.bib +++ /dev/null @@ -1,9 +0,0 @@ -@article{ WatsonCrick1953, - Author = {Watson, J. D. and Crick, F. H. C.}, - Title = {Molecular Structure of Nucleic Acids: A Structure for Deoxyribose Nucleic Acid}, - Journal = {Nature}, - Volume = {171}, - Number = {4356}, - Pages = {737-738}, - Year = {1953} -} diff --git a/metadata.yml b/metadata.yml index 9c6c061..77e4636 100644 --- a/metadata.yml +++ b/metadata.yml @@ -30,7 +30,7 @@ geometry: left=24.1mm geometry: right=24.1mm geometry: bottom=4.5cm -bibliography: idiv.bib -link-citations: yes +bibliography: bibliography/references.bib reference-section-title: References +link-citations: yes ... -- GitLab