Date: Thu, 18 Oct 2007 11:25:45 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Murray Taylor <MTaylor@bytecraft.com.au> Cc: "Aryeh M. Friedman" <aryeh.friedman@gmail.com>, freebsd-questions@freebsd.org Subject: Re: batch conversion of TeX Message-ID: <20071018082544.GA2736@kobe.laptop> In-Reply-To: <~B4716b9ee0000.4716da010000.0001.mml.1622031012@svmailmel.bytecraft.internal> References: <~B4716b9ee0000.4716da010000.0001.mml.1622031012@svmailmel.bytecraft.internal>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-10-18 11:42, Murray Taylor <MTaylor@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 :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071018082544.GA2736>
