From a1e63de8c2d31e81b6c118bd44ea9ac1e3e44227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurens=20Kils-H=C3=BCtten?= Date: Sat, 24 Sep 2022 13:48:48 +0200 Subject: [PATCH] added a pink cover --- .gitignore | 2 ++ Makefile | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 27f05a1..8148a41 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ *.pdf *.toc License.tex +Frontcover.png +Backcover.png diff --git a/Makefile b/Makefile index 78f93be..047f32a 100644 --- a/Makefile +++ b/Makefile @@ -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 &