This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: jadetex producing different output each time run
- To: maarten de boer <maarten dot deboer at iua dot upf dot es>
- Subject: Re: DOCBOOK: jadetex producing different output each time run
- From: Stephane Bortzmeyer <bortzmeyer at pasteur dot fr>
- Date: Wed, 22 Dec 1999 17:29:40 +0100
- Cc: docbook at lists dot oasis-open dot org
- Reply-To: docbook at lists dot oasis-open dot org
On Wednesday 22 December 1999, at 15 h 13, the keyboard of maarten de boer
<maarten.deboer@iua.upf.es> wrote:
> I call jadetex again
> $ jadetex draft2.tex
> And miracle! The table of contents is correct.
>
> What am I doing wrong?
Nothing. This is TeX (and, BTW, many other systems which handle cross-references do the same).
Here is what I put in my Makefile:
MAX_TEX_RECURSION=4
...
%.dvi: %.tex
# Trick from Adam Di Carlo <adam@onshore.com> to recurse jadetex
# "just enough".
-cp -pf prior.aux pprior.aux
-cp -pf $(shell basename $< .tex).aux prior.aux
jadetex $<
if ! cmp $(shell basename $< .tex).aux prior.aux && \
! cmp $(shell basename $< .tex).aux pprior.aux && \
expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
rm -f $@ ;\
$(MAKE) $@ ;\
fi
rm -f prior.aux pprior.aux