mirror of
https://github.com/wch/latexsheet.git
synced 2025-04-19 13:08:03 +02:00
Generate thumbnails
This commit is contained in:
parent
a86f99b903
commit
c64fc16c98
1 changed files with 10 additions and 4 deletions
14
Makefile
14
Makefile
|
@ -1,14 +1,17 @@
|
|||
all: latexsheet.pdf latexsheet-a4.pdf index.html latexsheet-0.png
|
||||
CONVERT=gm convert
|
||||
|
||||
all: latexsheet.pdf latexsheet-a4.pdf latexsheet-0.png latexsheet-thumb-0.png
|
||||
|
||||
clean:
|
||||
rm -f latexsheet.pdf latexsheet-a4.tex latexsheet-a4.pdf \
|
||||
latexsheet-0.png latexsheet-1.png \
|
||||
latexsheet-thumb-0.png latexsheet-thumb-1.png \
|
||||
latexsheet.out latexsheet-a4.out
|
||||
|
||||
|
||||
latexsheet.pdf: latexsheet.tex
|
||||
pdflatex latexsheet.tex
|
||||
rm -f latexsheet.aux latexsheet.log
|
||||
rm -f latexsheet.aux latexsheet.log latexsheet.out
|
||||
|
||||
# OK, this is kind of a hack to add 'a4paper' to the header
|
||||
latexsheet-a4.tex: latexsheet.tex
|
||||
|
@ -16,7 +19,10 @@ latexsheet-a4.tex: latexsheet.tex
|
|||
|
||||
latexsheet-a4.pdf: latexsheet-a4.tex
|
||||
pdflatex latexsheet-a4.tex
|
||||
rm -f latexsheet-a4.tex latexsheet-a4.aux latexsheet-a4.log
|
||||
rm -f latexsheet-a4.tex latexsheet-a4.aux latexsheet-a4.log latexsheet-a4.out
|
||||
|
||||
latexsheet-0.png: latexsheet.pdf
|
||||
convert -density 100x100 latexsheet.pdf latexsheet.png
|
||||
$(CONVERT) -density 100x100 +adjoin latexsheet.pdf latexsheet-%d.png
|
||||
|
||||
latexsheet-thumb-0.png: latexsheet.pdf
|
||||
$(CONVERT) -density 32x32 +adjoin latexsheet.pdf latexsheet-thumb-%d.png
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue