diff --git a/.gitignore b/.gitignore index a4ad97d..7b8b3d8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ temp/ ## main build output main.pdf +chapter/out.tex ## IDE and Editor files .idea/** diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df7d0b7..30d72cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,18 @@ latexmk: - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` - mv main.pdf main@$ci_commit_sha_short.pdf +#pandoc_latexmk: +# image: pandoc/latex +# stage: build +# artifacts: +# paths: +# - main*.pdf +# expire_in: 2d +# script: +# - pandoc --filter pandoc-crossref --filter pandoc-citeproc -M cref=true --top-level-division=chapter --bibliography library/library.bib --biblatex -o chapter/out.tex chapter/*.md +# - latexmk main.tex +# - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` +# - mv main.pdf main@$ci_commit_sha_short.pdf hunspell_chapters: image: tmaier/hunspell:latest diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 09f8121..ab79652 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,12 +11,23 @@ "kind": "build", "isDefault": true }, - "dependsOn": "clean" + "dependsOrder": "sequence", + "dependsOn": ["clean"] }, { "label": "clean", "type": "shell", "command": "latexmk -C" + }, + { + "label": "pandoc", + "type": "shell", + "command": [ + "pandoc --filter pandoc-crossref --filter pandoc-citeproc ", + "-M cref=true --top-level-division=chapter ", + "--bibliography library/library.bib --biblatex ", + "-o chapter/out.tex chapter/*.md" + ] } ] } \ No newline at end of file diff --git a/main.tex b/main.tex index 28543b7..bdb090c 100644 --- a/main.tex +++ b/main.tex @@ -63,6 +63,10 @@ % \input{chapter/myfile} % \newpage + % when using pandoc workflow instead, uncomment the following + % \input{chapter/out.tex} + % \newpage + %%%%%%%%%%%%% %% closing %% %%%%%%%%%%%%%