2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00
LaTeX-examples/documents/GeoTopo/Makefile
2015-11-23 15:19:41 +01:00

26 lines
1 KiB
Makefile

SOURCE = GeoTopo
make:
sketch figures/torus.sketch > figures/torus.tex
pdflatex $(SOURCE).tex -interaction=batchmode -output-format=pdf # aux-files for makeindex / makeglossaries
makeindex $(SOURCE)
pdflatex $(SOURCE).tex -interaction=batchmode -output-format=pdf # include index
pdflatex $(SOURCE).tex -interaction=batchmode -output-format=pdf # include symbol table
make clean # remove intermediate files like *.log and *.aux
ebook:
latexml --dest=$(SOURCE).xml $(SOURCE).tex
latexmlpost -dest=$(SOURCE).html $(SOURCE).xml
ebook-convert $(SOURCE).html $(SOURCE).epub --language de --no-default-epub-cover
all:
cd definitions;make
sed -i 's/\\newif\\ifAFive\\AFivefalse/\\newif\\ifAFive\\AFivetrue/' GeoTopo.tex
make
mv GeoTopo.pdf other-formats/GeoTopo-A5.pdf
sed -i 's/\\newif\\ifAFive\\AFivetrue/\\newif\\ifAFive\\AFivefalse/' GeoTopo.tex
make
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.thm *.idx *.toc *.ind *.ilg figures/torus.tex *.glg *.glo *.gls *.ist *.xdy *.fdb_latexmk *.bak