Re: DOCBOOK: jadetex producing different output each time run

From
Stephane Bortzmeyer <>
Date
1999-12-22T17:28:06+00:00
ID
Thread
Re: DOCBOOK: jadetex producing different output each time run
On Wednesday 22 December 1999, at 15 h 13, the keyboard of maarten de boer 
<> 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 <> 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