From owner-freebsd-questions@FreeBSD.ORG Thu Oct 18 01:42:12 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0E1716A419 for ; Thu, 18 Oct 2007 01:42:12 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from bcmelmx.bytecraft.au.com (bcmelmx.bytecraft.au.com [203.39.118.2]) by mx1.freebsd.org (Postfix) with ESMTP id 93A0D13C45B for ; Thu, 18 Oct 2007 01:42:10 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from svmarshal2.bytecraft.internal (svmarshal2.bytecraft.internal [10.0.0.3]) by bcmelmx.bytecraft.au.com (8.12.11/8.12.11) with ESMTP id l9I1g74E090168; Thu, 18 Oct 2007 11:42:07 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.0.0.24]) by svmarshal2.bytecraft.internal with MailMarshal (v6, 2, 1, 3252) id ; Thu, 18 Oct 2007 11:42:06 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Oct 2007 11:42:02 +1000 Message-ID: <04E232FDCD9FBE43857F7066CAD3C0F142D871@svmailmel.bytecraft.internal> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: batch conversion of TeX Thread-Index: AcgM3tlEAuFMIwa0QKC5IsYqFtap4AERxR4w From: "Murray Taylor" To: "Giorgos Keramidas" , "Aryeh M. Friedman" Cc: freebsd-questions@freebsd.org Subject: RE: batch conversion of TeX X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 01:42:13 -0000 =20 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org=20 > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of=20 > Giorgos Keramidas > Sent: Saturday, 13 October 2007 12:46 AM > To: Aryeh M. Friedman > Cc: freebsd-questions@freebsd.org > Subject: Re: batch conversion of TeX >=20 > On 2007-10-12 09:44, "Aryeh M. Friedman"=20 > wrote: > > Those who have followed my openoffice to TeX conversion=20 > know I am brand > > new to TeX and want to know how to do the following conversions > > (hopefully via some non-interactive process [eg. Make files]): > > > > TeX-->plain text > > TeX-->HTML > > TeX-->PDF > > TeX-->PS >=20 > I usually start by writing something like this in a Makefile: >=20 > DOC =3D foo > SRC =3D $(DOC).tex > PDF =3D $(DOC).pdf >=20 > PDFLATEX =3D pdflatex >=20 > all: $(PDF) >=20 > $(PDF): $(SRC) > $(PDFLATEX) $(SRC) > $(PDFLATEX) $(SRC) >=20 > The two runs of $(PDFLATEX) are necessary to get cross-references > correct in documents with internal cross-references. >=20 > There are other tools, like texindex(1) which you may want to=20 > throw into > the mix. The TeX toolchain is described in detail in the=20 > documentation > which is available online at CTAN (the Comprehensive TeX Archive > Network). It may be interesting for you to at least skim through the > docs available at http://www.ctan.org/tex-archive/info/ >=20 > All the books available at the `info' directory are useful,=20 > and many of > them are excellent examples of what you can do by typesetting=20 > with TeX. >=20 > Some of my favorites are: >=20 > * ``Components of TeX'' > http://www.ctan.org/tex-archive/info/components-of-TeX/ >=20 > * ``Essential information for writing LaTeX documents'' > http://www.ctan.org/tex-archive/info/latex-essential/ >=20 > * ``Making TeX Work'' > http://www.ctan.org/tex-archive/info/makingtexwork/ >=20 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 =20 # \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. It handles all the multiple passes etc over the LaTeX file(s) and has a bunch of other capabilities to manage BibTeX stuff, image management Tgif, .jpg, .png ..... etc etc One of my Makefiles # base document name NAME=3D databasedesign # bib file BIBTEXSRCS=3D suite.bib # Tgif drawings are here TGIFSRCS=3D ./tgif # and the magic is all in here .include "/usr/local/share/latex-mk/latex.mk" # End Makefile --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.=20 E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- ### This e-mail message has been scanned for Viruses by Bytecraft ###