Created
February 8, 2021 14:50
-
-
Save lparolari/e695038f5a86b853090a2f4ec1acaf3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The latex source filename | |
| MAINFILE?=report | |
| # The build strategy | |
| BUILD_STRATEGY?=pdf3 | |
| # The source folder | |
| SRC?=`pwd` | |
| # Main recipe | |
| # =========== | |
| ${MAINFILE}.pdf: compile | |
| # Build pdf recipes | |
| # ================= | |
| compile: pdf | |
| pdf: ${BUILD_STRATEGY} | |
| pdf1: pdflatex bib pdflatex | |
| pdf2: dxjoke-tectonic-docker | |
| pdf3: blang-latex-docker | |
| clean: clear | |
| clear: | |
| rm -f *.pdf *.aux *.fdb_latexmk *.fls *.log *.out *.pdf *.toc | |
| # Specific recipes | |
| # ================ | |
| # pdf 1 | |
| # ----- | |
| pdflatex: | |
| pdflatex ${MAINFILE}.tex | |
| bib: | |
| biber ${MAINFILE} | |
| # pdf 2 | |
| # ----- | |
| dxjoke-tectonic-docker: | |
| docker pull dxjoke/tectonic-docker | |
| docker run --mount src=${SRC},target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic --keep-intermediates --reruns 0 ${MAINFILE}.tex;" | |
| # pdf 3 | |
| # ----- | |
| blang-latex-docker: latexdockercmd.sh | |
| ./latexdockercmd.sh latexmk -cd -f -interaction=batchmode -pdf ${MAINFILE}.tex | |
| #./latexdockercmd.sh pdflatex ${MAINFILE}.tex | |
| latexdockercmd.sh: | |
| wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh | |
| chmod +x latexdockercmd.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment