5
0
Fork 0

Moar wild things

This commit is contained in:
Nick Hahn 2021-05-14 14:25:40 +02:00
parent ee6263612a
commit 82145f8b14
3 changed files with 24 additions and 4 deletions

View file

@ -1,3 +1,16 @@
# hedgedoc2pdf
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
```

View file

@ -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
---

View file

@ -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;