hgbook
changeset 30:cc1e6f1d7161
Use PDF instead of PNG for images in the PDF book
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat Jul 15 21:53:57 2006 -0400 (2006-07-15) |
parents | f5ce861d6fcc |
children | 51d94bd2804c |
files | en/Makefile en/mq.tex |
line diff
1.1 --- a/en/Makefile Thu Jul 13 14:58:31 2006 -0700 1.2 +++ b/en/Makefile Sat Jul 15 21:53:57 2006 -0400 1.3 @@ -42,7 +42,7 @@ 1.4 if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi 1.5 endef 1.6 1.7 -pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%_pdf.png) examples 1.8 +pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%.pdf) examples 1.9 $(call pdf) 1.10 1.11 html: html/onepage/hgbook.html html/split/hgbook.html 1.12 @@ -80,7 +80,7 @@ 1.13 beta/%.tex: %.tex 1.14 ./fblinks $(hg_id) $(dir $@) $< 1.15 1.16 -beta/pdf/hgbook.pdf: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%_pdf.png) examples fblinks 1.17 +beta/pdf/hgbook.pdf: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%.pdf) examples fblinks 1.18 $(call pdf) 1.19 1.20 beta/html/onepage/hgbook.html: $(sources:%.tex=beta/%.tex) $(image-sources:%.svg=%.png) examples 1.21 @@ -96,10 +96,13 @@ 1.22 %.png: %.svg 1.23 inkscape -D -e $@ $< 1.24 1.25 -# Produce 300dpi PNGs for PDF. 1.26 +# Produce eps & pdf for the pdf 1.27 1.28 -%_pdf.png: %.svg 1.29 - inkscape -D -d 300 -e $@ $< 1.30 +%.pdf: %.eps 1.31 + epstopdf $< 1.32 + 1.33 +%.eps: %.svg 1.34 + inkscape -D -E $@ $< 1.35 1.36 examples: examples/.run 1.37 1.38 @@ -110,5 +113,5 @@ 1.39 echo $(hg_id) > build_id.tex 1.40 1.41 clean: 1.42 - rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \ 1.43 + rm -rf beta html pdf *.eps *.pdf *.png *.aux *.dvi *.log *.out \ 1.44 examples/*.out examples/.run build_id.tex
2.1 --- a/en/mq.tex Thu Jul 13 14:58:31 2006 -0700 2.2 +++ b/en/mq.tex Sat Jul 15 21:53:57 2006 -0400 2.3 @@ -336,7 +336,7 @@ 2.4 2.5 \begin{figure}[ht] 2.6 \centering 2.7 - \grafix{mq-stack} 2.8 + \includegraphics{mq-stack} 2.9 \caption{Applied and unapplied patches in the MQ patch stack} 2.10 \label{fig:mq:stack} 2.11 \end{figure}