Last active
March 16, 2018 15:30
-
-
Save Ynn/a5046df850e6227268e10fa227324b48 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
all : latex pdf html odt cat | |
install : | |
#wget -c https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/master/eisvogel.tex --output-document=eisvogel.latex | |
wget -c https://gist.githubusercontent.com/Ynn/7907470ea0e68c909ba0a51752a9f308/raw/80c97266638c796decea342e6392207c5883f036/eisvogel.latex | |
mkdir -p pandoc | |
wget -c https://github.com/jgm/pandoc/releases/download/2.1.2/pandoc-2.1.2-linux.tar.gz | |
tar xvzf pandoc-2.1.2-linux.tar.gz --strip-components 1 -C ./pandoc/ | |
sudo pip install pandoc-fignos | |
latex : | |
PATH=./pandoc/bin:$$PATH; echo $$PATH; which pandoc; pandoc report.md --number-sections --template=eisvogel.latex -V lang=en-GB --listings --filter pandoc-fignos --variable pagestyle=headings --variable links-as-notes=true --highlight-style=zenburn --variable biblio-style=alphabetic --variable documentclass=article --toc --variable papersize=a4paper -f markdown -s --biblatex --bibliography biblio.bib -o report.tex | |
html : | |
PATH=./pandoc/bin:$$PATH; echo $$PATH; which pandoc; pandoc report.md --variable biblio-style=plain --variable documentclass=article --toc --variable papersize=a4paper -f markdown -s --filter pandoc-citeproc --bibliography biblio.bib -o report.html | |
odt : | |
pandoc -o report.odt report.md | |
pdf : | |
lualatex -interaction nonstopmode -halt-on-error report.tex | |
biber report | |
lualatex -interaction nonstopmode -halt-on-error report.tex | |
cat : | |
cat report.tex | |
xdg-open report.pdf | |
clean : | |
rm -fr *.tex | |
rm -fr *.bbl | |
rm -fr *.log | |
rm -fr *.aux | |
rm -fr *.out | |
rm -fr *.tex | |
rm -fr *.bcf | |
rm -fr *.blg |
Author
Ynn
commented
Mar 15, 2018
•
https://github.com/tomduck/pandoc-fignos
{#fig:id width=50%}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment