From owner-freebsd-questions@FreeBSD.ORG Fri Oct 12 14:47:00 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 65F7C16A417 for ; Fri, 12 Oct 2007 14:47:00 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id CF88E13C4C4 for ; Fri, 12 Oct 2007 14:46:59 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l9CEkf4G031537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 12 Oct 2007 17:46:53 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l9CEkGdi004282; Fri, 12 Oct 2007 17:46:34 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l9CEkFr2004281; Fri, 12 Oct 2007 17:46:15 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 12 Oct 2007 17:46:15 +0300 From: Giorgos Keramidas To: "Aryeh M. Friedman" Message-ID: <20071012144615.GD3881@kobe.laptop> References: <470F420C.3060607@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <470F420C.3060607@gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.982, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.42, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No 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: Fri, 12 Oct 2007 14:47:00 -0000 On 2007-10-12 09:44, "Aryeh M. Friedman" wrote: > Those who have followed my openoffice to TeX conversion 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 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. There are other tools, like texindex(1) which you may want to throw into the mix. The TeX toolchain is described in detail in the 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/ All the books available at the `info' directory are useful, and many of them are excellent examples of what you can do by typesetting with TeX. Some of my favorites are: * ``Components of TeX'' http://www.ctan.org/tex-archive/info/components-of-TeX/ * ``Essential information for writing LaTeX documents'' http://www.ctan.org/tex-archive/info/latex-essential/ * ``Making TeX Work'' http://www.ctan.org/tex-archive/info/makingtexwork/