This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: jadetex producing different output each time run


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]