diff --git a/README.md b/README.md index 5430722..6298ee6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # hedgedoc2pdf -Shellscript that converts a hedgedoc pad to pdf using pandoc \ No newline at end of file +Shellscript that converts a hedgedoc pad to pdf using pandoc + +You also need the python package `pandoc-latex-environment`. +Because of this, install the package in an virtual environment. + +``` +python -m venv venv +source venv/bin/activate +pip install pandoc-latex-environment +``` + +``` +wget https://md.margau.net/19IN-4Sem-SuSII-Zusammenfassung/download -O - | cat header.md - | sed -E -f test.sed | pandoc --filter pandoc-latex-environment --number-sections -i wilde_definitionen.md - -o main.pdf +``` diff --git a/header.md b/header.md index 0095456..e31f753 100644 --- a/header.md +++ b/header.md @@ -1,6 +1,10 @@ --- +documentclass: extarticle +fontsize: 14pt +geometry: margin=2cm header-includes: | - \usepackage{tcolorbox} + \usepackage{trfsigns} + \usepackage[breakable]{tcolorbox} \newtcolorbox{info-box}{colback=cyan!5!white,arc=0pt,outer arc=0pt,colframe=cyan!60!black} \newtcolorbox{warning-box}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black} \newtcolorbox{error-box}{colback=red!5!white,arc=0pt,outer arc=0pt,colframe=red!75!black} @@ -8,7 +12,7 @@ pandoc-latex-environment: tcolorbox: [box] info-box: [info] warning-box: [warning] - error-box: [error] + error-box: [danger] classoption: svgnames --- diff --git a/test.sed b/test.sed index a81ada3..97565c9 100644 --- a/test.sed +++ b/test.sed @@ -19,5 +19,8 @@ d; } } -s/lightgreen/LightGreen/g; +s/lightgreen/Lime/g; +s/\{green/\{Green/g; s/:::/::: /g; +s/\\circ \- \\bullet/\\;\\laplace\\;/g; +s/\{align/\{align\*/g;