#38 basic pandoc workflow
This commit is contained in:
parent
d21dabe099
commit
baed3fcdf8
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@ temp/
|
||||||
|
|
||||||
## main build output
|
## main build output
|
||||||
main.pdf
|
main.pdf
|
||||||
|
chapter/out.tex
|
||||||
|
|
||||||
## IDE and Editor files
|
## IDE and Editor files
|
||||||
.idea/**
|
.idea/**
|
||||||
|
|
|
@ -14,6 +14,18 @@ latexmk:
|
||||||
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
|
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
|
||||||
- mv main.pdf main@$ci_commit_sha_short.pdf
|
- 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:
|
hunspell_chapters:
|
||||||
image: tmaier/hunspell:latest
|
image: tmaier/hunspell:latest
|
||||||
|
|
13
.vscode/tasks.json
vendored
13
.vscode/tasks.json
vendored
|
@ -11,12 +11,23 @@
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
},
|
},
|
||||||
"dependsOn": "clean"
|
"dependsOrder": "sequence",
|
||||||
|
"dependsOn": ["clean"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "clean",
|
"label": "clean",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "latexmk -C"
|
"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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user