Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Dominik Becker
LaTex Boilerplate
Commits
399651ce
Commit
399651ce
authored
Jun 28, 2020
by
Dominik Becker
Browse files
#40
added build script
parent
cad94bf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
build.sh
build.sh
+25
-0
No files found.
build.sh
0 → 100755
View file @
399651ce
#!/bin/bash
# cleanup
latexmk
-C
if
[
-f
chapter/out.tex
]
then
rm
chapter/out.md
rm
chapter/out.tex
fi
# run pandoc
if
[
$1
==
"pandoc"
]
then
cat
chapter/
*
.md
>
chapter/out.md
pandoc
--filter
pandoc-citeproc
--filter
pandoc-crossref
\
-M
cref
=
true
--top-level-division
=
chapter
\
--bibliography
library/library.bib
--biblatex
\
-o
chapter/out.tex chapter/out.md
fi
# run latex build
if
[
$1
!=
"clean"
]
then
latexmk
-latexoption
=
"-shell-escape"
main.tex
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment