Moar wild things
This commit is contained in:
parent
ee6263612a
commit
82145f8b14
3 changed files with 24 additions and 4 deletions
13
README.md
13
README.md
|
|
@ -1,3 +1,16 @@
|
||||||
# hedgedoc2pdf
|
# hedgedoc2pdf
|
||||||
|
|
||||||
Shellscript that converts a hedgedoc pad to pdf using pandoc
|
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
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
---
|
---
|
||||||
|
documentclass: extarticle
|
||||||
|
fontsize: 14pt
|
||||||
|
geometry: margin=2cm
|
||||||
header-includes: |
|
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{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{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}
|
\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]
|
tcolorbox: [box]
|
||||||
info-box: [info]
|
info-box: [info]
|
||||||
warning-box: [warning]
|
warning-box: [warning]
|
||||||
error-box: [error]
|
error-box: [danger]
|
||||||
classoption: svgnames
|
classoption: svgnames
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
5
test.sed
5
test.sed
|
|
@ -19,5 +19,8 @@
|
||||||
d;
|
d;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s/lightgreen/LightGreen/g;
|
s/lightgreen/Lime/g;
|
||||||
|
s/\{green/\{Green/g;
|
||||||
s/:::/::: /g;
|
s/:::/::: /g;
|
||||||
|
s/\\circ \- \\bullet/\\;\\laplace\\;/g;
|
||||||
|
s/\{align/\{align\*/g;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue