diff --git a/README.md b/README.md index 7b6caa5..efa3c08 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ README ====== -Dieses Repo enthält verschiedene Gesetzestexte im Markdown-Format (mit [Extras](http://pandoc.org/MANUAL.html#extension-fancy_lists)), plus Makefiles zur Erstellung von Formaten wie [EPUB](https://de.wikipedia.org/wiki/EPUB) und [MOBI](https://de.wikipedia.org/wiki/Mobipocket). +Dieses Repo enthält verschiedene Gesetzestexte im Markdown-Format (mit [Extras](http://pandoc.org/MANUAL.html#extension-fancy_lists)), plus Makefiles zur Erstellung von Formaten wie PDF, [EPUB](https://de.wikipedia.org/wiki/EPUB), und [MOBI](https://de.wikipedia.org/wiki/Mobipocket). Vorhandene Texte ---------------- @@ -20,4 +20,4 @@ Benötigte Software ------------------ - [Pandoc](http://pandoc.org/) -- [Kindlegen](https://www.amazon.com/gp/feature.html?docId=1000765211) für MOBI +- [Calibre](https://calibre-ebook.com/) diff --git a/dsg2000/Makefile b/dsg2000/Makefile index 9dff22d..247f524 100644 --- a/dsg2000/Makefile +++ b/dsg2000/Makefile @@ -1,16 +1,22 @@ META = title.yml -OUTPUT = dsg2000.epub +OUTPUT = dsg2000.epub dsg2000.pdf dsg2000.mobi dsg2000.azw3 INPUT = $(sort $(wildcard art??-par*.md)) all: $(OUTPUT) -$(OUTPUT): $(INPUT) $(META) - pandoc -f markdown+fancy_lists -t epub3 -o $(OUTPUT) --smart --toc \ - --toc-depth=2 --epub-chapter-level=2 $(META) $(INPUT) +dsg2000.epub: $(INPUT) $(META) + pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \ + --toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT) -mobi: $(OUTPUT) - kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi) +dsg2000.mobi: dsg2000.epub + ebook-convert $< $@ --mobi-file-type both +dsg2000.azw3: dsg2000.epub + ebook-convert $< $@ + +dsg2000.pdf: $(INPUT) $(META) + pandoc -f markdown+fancy_lists -t latex -o $@ --standalone --smart --toc \ + --toc-depth=2 -Vfontsize=12pt -Vpapersize=a4wide $(META) $(INPUT) clean: - rm -rf $(OUTPUT) $(OUTPUT:.epub=.mobi) + rm -rf $(OUTPUT) diff --git a/dsgvo/Makefile b/dsgvo/Makefile index ee97464..a66c6f2 100644 --- a/dsgvo/Makefile +++ b/dsgvo/Makefile @@ -1,5 +1,5 @@ META = title.yml -OUTPUT = dsgvo.epub +OUTPUT = dsgvo.epub dsgvo.pdf dsgvo.mobi dsgvo.azw3 INPUT = ch01/ch01.md $(sort $(wildcard ch01/ch01-art??.md)) INPUT += ch02/ch02.md $(sort $(wildcard ch02/ch02-art??.md)) INPUT += ch03/ch03.md $(sort $(wildcard ch03/ch03-art??.md)) @@ -14,13 +14,19 @@ INPUT += ch11/ch11.md $(sort $(wildcard ch11/ch11-art??.md)) all: $(OUTPUT) -$(OUTPUT): $(INPUT) $(META) - pandoc -f markdown+fancy_lists -t epub3 -o $(OUTPUT) --smart --toc \ - --toc-depth=2 --epub-chapter-level=2 $(META) $(INPUT) +dsgvo.epub: $(INPUT) $(META) + pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \ + --toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT) -mobi: $(OUTPUT) - kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi) +dsgvo.mobi: dsgvo.epub + ebook-convert $< $@ --mobi-file-type both +dsgvo.azw3: dsgvo.epub + ebook-convert $< $@ + +dsgvo.pdf: $(INPUT) $(META) + pandoc -f markdown+fancy_lists -t latex -o $@ --standalone --smart --toc \ + --toc-depth=2 -Vfontsize=12pt -Vpapersize=a4wide $(META) $(INPUT) clean: - rm -rf $(OUTPUT) $(OUTPUT:.epub=.mobi) + rm -rf $(OUTPUT)