Skip to content

Instantly share code, notes, and snippets.

@Ynn
Last active March 16, 2018 15:30
Show Gist options
  • Save Ynn/a5046df850e6227268e10fa227324b48 to your computer and use it in GitHub Desktop.
Save Ynn/a5046df850e6227268e10fa227324b48 to your computer and use it in GitHub Desktop.
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
@Ynn
Copy link
Author

Ynn commented Mar 15, 2018

---
title: "Vinaque sanguine metuenti cuiquam Alcyone fixus"
author: [Author Name]
date: 2017-02-20
subject: "Markdown"
tags: [Markdown, Example]
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
titlepage: true
titlepage-logo : TUM.png
titlepage-color: ffffff
titlepage-text-color: 0065bd
titlepage-rule-color: 0065bd
titlepage-rule-height: 15
---

@Ynn
Copy link
Author

Ynn commented Mar 15, 2018

https://github.com/tomduck/pandoc-fignos

![This is a test](imagesPng/*.png){#fig:id width=50%}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment