batch conversion of TeX

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Oct 18 01:26:43 PDT 2007


On 2007-10-18 11:42, Murray Taylor <MTaylor at bytecraft.com.au> wrote:
>Giorgos Keramidas wrote:
>> I usually start by writing something like this in a Makefile:
>>
>>     DOC = foo
>>     SRC = $(DOC).tex
>>     PDF = $(DOC).pdf
>>
>>     PDFLATEX = pdflatex
>>
>>     all: $(PDF)
>>
>>     $(PDF): $(SRC)
>>             $(PDFLATEX) $(SRC)
>>             $(PDFLATEX) $(SRC)
>>
>> The two runs of $(PDFLATEX) are necessary to get cross-references
>> correct in documents with internal cross-references.
>
> the latex-mk port handles a lot of these functions
> /usr/ports/misc/latex-mk
>
> I uses it for all my docs
>
> make              # generates a DVI file and calls a viewer
> make ps
> make pdf
> make html         # settable options re single page - multi page
> make draft-pdf    # overprints DRAFT - use this if you are not using the
>
>                   #  \usepackage{draftcopy} which gives you more
> flexibility
> make print        # spools off to lp
> make clean
>
> And there are other available targets for the Make process.

Very interesting.  Thanks :)



More information about the freebsd-questions mailing list