Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2007 11:42:02 +1000
From:      "Murray Taylor" <MTaylor@bytecraft.com.au>
To:        "Giorgos Keramidas" <keramida@ceid.upatras.gr>, "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: batch conversion of TeX
Message-ID:  <04E232FDCD9FBE43857F7066CAD3C0F142D871@svmailmel.bytecraft.internal>

next in thread | raw e-mail | index | archive | help
=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
> <aryeh.friedman@gmail.com> 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 ###



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?04E232FDCD9FBE43857F7066CAD3C0F142D871>