added a pink cover

This commit is contained in:
Laurens Kils-Hütten
2022-09-24 13:48:48 +02:00
parent e1a41e9f96
commit a1e63de8c2
2 changed files with 17 additions and 2 deletions

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@
*.pdf
*.toc
License.tex
Frontcover.png
Backcover.png

View File

@@ -1,11 +1,13 @@
all: Grenzland1.pdf
PDF=Grenzland1.pdf
GENPNG=Grenzland-postapo.gen.png Grenzland-praeapo.gen.png\
Grenzland-Startarea.gen.png Inseln-Startarea.gen.png
.PRECIOUS: $(GENPNG)
%.pdf: %.tex License.tex $(GENPNG) Coverimage.png Makefile
all: $(PDF)
%.pdf: %.tex License.tex $(GENPNG) Coverimage.png
pdflatex $<
%.gen.png: %.gen.svg Makefile
@@ -17,6 +19,17 @@ coverart.png: coverart.cfdg Makefile
License.tex: License.md Makefile
pandoc -o $@ $<
Frontcover.png: $(PDF) Makefile
pdftoppm -f 1 -l 1 $< > tmp.png
convert +level-colors "#000000","#ff00bb" \
tmp.png $@
Backcover.png: $(PDF) Makefile
pdftoppm -f 1 -l 1 $< > tmp.png
convert +level-colors "#ff00bb","#ff00bb" \
-fuzz 100% tmp.png $@
rm -f tmp.png
view: all
zathura *.pdf &