reduce to only pandoc pipeline + fix script according to downstream patches
This commit is contained in:
parent
5660ac2021
commit
028ae6b26f
19 changed files with 54 additions and 231 deletions
37
README.md
37
README.md
|
|
@ -1,16 +1,29 @@
|
|||
# hedgedoc2pdf
|
||||
# Pandoc Pipeline
|
||||
|
||||
Shellscript that converts a hedgedoc pad to pdf using pandoc
|
||||
Einfache Rendering Pipeline für Pandoc.
|
||||
Optimiert für die Konvertierung von Markdown zu PDF oder zu DOCX.
|
||||
Diese beiden Ausgangsformate werden während des Renderingsprozesses mit einem Branding versehen.
|
||||
|
||||
You also need the python package `pandoc-latex-environment`.
|
||||
Because of this, install the package in an virtual environment.
|
||||
Zur Verwendung der Pipeline muss installiert sein:
|
||||
pdflatex
|
||||
pandoc
|
||||
git
|
||||
|
||||
```
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install pandoc-latex-environment
|
||||
```
|
||||
:warning: Umgebungsvariablen setzen nicht vergessen :warning:
|
||||
|
||||
```
|
||||
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
|
||||
```
|
||||
:seedling: :seedling: :seedling:
|
||||
git liefert bei Installation im Ordner /bin eine Sammlung von unix-Kommandos mit.
|
||||
Dieser Pfad muss auch zu den Umgebungsvariablen hinzugefügt werden.
|
||||
:seedling: :seedling: :seedling:
|
||||
|
||||
## Verwendung
|
||||
|
||||
Für eine universelle Verwendung sollte auch dieser Pfad zu den Umgebungsvariablen hinzugefügt werden.
|
||||
|
||||
Konvertierung md -> pdf
|
||||
|
||||
`pandocPipeline -u "Dokumentbearbeiter" -t "Dokumententitel" -f dateiname -e pdf`
|
||||
|
||||
Konvertierung md -> docx
|
||||
|
||||
`pandocPipeline -f dateiname -e docx`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue