mirror of
https://git.ludikovsky.name/git/gesetze.git
synced 2024-09-28 20:55:27 +02:00
kindlegen gegen Calibre ausgetauscht, PDF als Format dazu
This commit is contained in:
parent
1f16ae7a3c
commit
7ae1e1be88
|
@ -1,7 +1,7 @@
|
||||||
README
|
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
|
Vorhandene Texte
|
||||||
----------------
|
----------------
|
||||||
|
@ -19,4 +19,4 @@ Benötigte Software
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
- [Pandoc](http://pandoc.org/)
|
- [Pandoc](http://pandoc.org/)
|
||||||
- [Kindlegen](https://www.amazon.com/gp/feature.html?docId=1000765211) für MOBI
|
- [Calibre](https://calibre-ebook.com/)
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
META = title.yml
|
META = title.yml
|
||||||
OUTPUT = dsg2000.epub
|
OUTPUT = dsg2000.epub dsg2000.pdf dsg2000.mobi dsg2000.azw3
|
||||||
INPUT = $(sort $(wildcard art??-par*.md))
|
INPUT = $(sort $(wildcard art??-par*.md))
|
||||||
|
|
||||||
all: $(OUTPUT)
|
all: $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): $(INPUT) $(META)
|
dsg2000.epub: $(INPUT) $(META)
|
||||||
pandoc -f markdown+fancy_lists -t epub3 -o $(OUTPUT) --smart --toc \
|
pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
|
||||||
--toc-depth=2 --epub-chapter-level=2 $(META) $(INPUT)
|
--toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT)
|
||||||
|
|
||||||
mobi: $(OUTPUT)
|
dsg2000.mobi: dsg2000.epub
|
||||||
kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi)
|
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:
|
clean:
|
||||||
rm -rf $(OUTPUT) $(OUTPUT:.epub=.mobi)
|
rm -rf $(OUTPUT)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
META = title.yml
|
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 = ch01/ch01.md $(sort $(wildcard ch01/ch01-art??.md))
|
||||||
INPUT += ch02/ch02.md $(sort $(wildcard ch02/ch02-art??.md))
|
INPUT += ch02/ch02.md $(sort $(wildcard ch02/ch02-art??.md))
|
||||||
INPUT += ch03/ch03.md $(sort $(wildcard ch03/ch03-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)
|
all: $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): $(INPUT) $(META)
|
dsgvo.epub: $(INPUT) $(META)
|
||||||
pandoc -f markdown+fancy_lists -t epub3 -o $(OUTPUT) --smart --toc \
|
pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
|
||||||
--toc-depth=2 --epub-chapter-level=2 $(META) $(INPUT)
|
--toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT)
|
||||||
|
|
||||||
mobi: $(OUTPUT)
|
dsgvo.mobi: dsgvo.epub
|
||||||
kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi)
|
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:
|
clean:
|
||||||
rm -rf $(OUTPUT) $(OUTPUT:.epub=.mobi)
|
rm -rf $(OUTPUT)
|
||||||
|
|
Loading…
Reference in a new issue