diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30d72cb..e4f6789 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,31 +2,31 @@ stages: - test - build -latexmk: - image: bnord01/docker-latex-pygments:latest - stage: build - artifacts: - paths: - - main*.pdf - expire_in: 2d - script: - - latexmk main.tex - - 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 +#latexmk: +# image: bnord01/docker-latex-pygments:latest # 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 +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 stage: test diff --git a/chapter/01_text.md b/chapter/01_text.md new file mode 100644 index 0000000..574e473 --- /dev/null +++ b/chapter/01_text.md @@ -0,0 +1,2 @@ +# Sample File +This is a simple sample file for the pandoc workflow. \ No newline at end of file diff --git a/main.tex b/main.tex index bdb090c..626d430 100644 --- a/main.tex +++ b/main.tex @@ -64,8 +64,8 @@ % \newpage % when using pandoc workflow instead, uncomment the following - % \input{chapter/out.tex} - % \newpage + \input{chapter/out.tex} + \newpage %%%%%%%%%%%%% %% closing %%