[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Typesetting Software
From: |
Larry Kollar |
Subject: |
Re: [Groff] Typesetting Software |
Date: |
Thu, 4 Jun 2009 21:39:44 -0500 |
Joerg van den Hoff wrote:
>>> groff is a single pass formatter, LaTeX is multi-pass.
>>
>> Not sure what you mean by this, but groff and TeX are
>> pretty much the same in this regard. Both are single-pass
>> formatters... both require multiple
>> invocations to enable forward references at all.
>
> I meant: the functionality is in place. you call latex a few times
> on the same document and than you get the correctly formatted document.
> (the necessary information seemingly stored in aux files or whatever --
> I really don't know latex well). with groff this sure does not work this
> way. if there is a smart way I don't know it. I usually start to use
> several small shell scripts to get the job done. even a trivial thing
> seems not _that_ straightforward: getting the table of content to the
> front. I actually cut+paste the .dit file via a 'awk' script at the end
> of my processing pipeline. I don't feel that all this is as easy with
> groff as with latex.
I use a Makefile to do the driving. First pass (run with -z to suppress output)
collects headings, cross-reference targets, index entries, and their page
numbers into an auxfile. I then use scripts to generate markup for ToC, index
(the Kernighan scripts), and cross-reference strings/page numbers. Second pass
collects up these files and generates a PostScript file that is subsequently
fed to ps2pdf. All by typing "make." I can also go back & tweak the ToC a bit,
and the Makefile only runs the second pass.
>> LaTeX also uses multiple passes (you just call the program
>> twice;
>
> might well be. if so it would be _very_ nice to have the functionality
> integrated in the distribution. my point was: you can do all this in
> latex out of the box, while in groff you can't.
The groff -mm macros are already set up for this kind of treatment; "mmroff" is
a script that does pretty much the same things as my Makefile.
-- Larry
- Re: [Groff] Typesetting Software, (continued)
- Re: [Groff] Typesetting Software, Joerg van den Hoff, 2009/06/03
- Re: [Groff] Typesetting Software, Tadziu Hoffmann, 2009/06/03
- Re: [Groff] Typesetting Software, Steve Izma, 2009/06/03
- Re: [Groff] Typesetting Software, Keith Marshall, 2009/06/04
- Re: [Groff] Typesetting Software, Steve Izma, 2009/06/04
- Re: [Groff] Typesetting Software, Clarke Echols, 2009/06/04
- Re: [Groff] Typesetting Software, Ralph Corderoy, 2009/06/04
- Re: [Groff] Typesetting Software, Tadziu Hoffmann, 2009/06/04
- Re: [Groff] Typesetting Software,
Larry Kollar <=
- Re: [Groff] Typesetting Software, Joerg van den Hoff, 2009/06/04
- Re: [Groff] Typesetting Software, Tadziu Hoffmann, 2009/06/04
- Re: [Groff] Typesetting Software, Ralph Corderoy, 2009/06/04
- Re: [Groff] Typesetting Software, Peter Schaffter, 2009/06/04
- Re: [Groff] Typesetting Software, Steve Izma, 2009/06/04
- Re: [Groff] Typesetting Software, Ralph Corderoy, 2009/06/05
- Re: [Groff] Typesetting Software, Tadziu Hoffmann, 2009/06/06
- Re: [Groff] Typesetting Software, Ralph Corderoy, 2009/06/06
Re: [Groff] Typesetting Software, Peter Schaffter, 2009/06/03
Re: [Groff] Typesetting Software, Steve Izma, 2009/06/03