chiark / gitweb /
doc: Predump format for faster TeXing.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 23 Dec 2006 14:57:07 +0000 (14:57 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 23 Dec 2006 14:57:07 +0000 (14:57 +0000)
Makefile
distorted.tex

index cd898ae..ffbd3d7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ ALL_ZONES = \
        $(HIBACHI_ZONES) \
        $(DISTORTED_ZONES)
 
+INITEX = pdfetex -ini
 DOCS = distorted.tex
 DOC_OUTPUTS = $(foreach suffix,dvi ps,\
                $(patsubst %.tex,%.$(suffix),$(DOCS)))
@@ -32,9 +33,12 @@ $(HIBACHI_ZONES): hibachidealers.com.lisp hosts.lisp
 $(DISTORTED_ZONES): distorted.org.uk.lisp hosts.lisp
        $(ZONE) $<
 
-%.dvi: %.tex
-       latex $<
-       latex $<
+%.fmt: %.tex
+       $(INITEX) \&latex $<
+
+%.dvi: %.tex %.fmt
+       latex \&$* $<
+       latex \&$* $<
 
 %.ps: %.dvi
        dvips -o $@ $<
index bec4f22..f143903 100644 (file)
@@ -1,3 +1,7 @@
+%&distorted
+
+\ifx\dumped\xxundefined
+
 \documentclass[article, a4paper, 10pt, notitlepage, numbering]{strayman}
 \usepackage[palatino, helvetica, maths=cmr]{mdwfonts}
 \usepackage[T1]{fontenc}
@@ -24,6 +28,8 @@
 
 \errorcontextlines=999
 
+\let\dumped\relax\expandafter\dump\fi
+
 \begin{document}
 \title{@l{distorted.org.uk} network design}
 \author{Mark Wooding}