Re: TeX beginner, Macro List?



Andrew Tomazos <andrew@xxxxxxxxxxx> writes:
On Jun 3, 11:16=A0pm, Peter Flynn <peter.n...@xxxxxxxxxxxxx> wrote:
When I try the above the table of contents produces just the word
"Contents" and no list undernearth it (even though I have sections an=
d
subsections in my article). =A0Immediately below the word "Contents" =
is
the word "Abstract".

Re-run LaTeX.

Yep. it works now. =A0What exactly happened or don't I want to know?

LaTeX processes your document sequentially, starting at the first ine
and ending at the last line: it doesn't read it all into memory at once
like a wordprocessor, [snip]

Sure, as a programmer I understand the space implications of
processing a stream rather than building a complete object model in
memory - but consider the following algorithm:

1. Process document, and if "/tableofcontents" used
than set variable UsesTOC = true

3. Generate .toc file

4. If (new .toc file != old .toc file) and UsesTOC
than process document again

This doesn't use any extra memory, and is essentially what you have to
do manually anyway right?

This kind of reasoning and dependency analysis is standard practice in
most build systems, and I would have thought would be fairly trivial
to implement.

tex isn't, unfortunately, a "build system"; as herbert pointed out,
there are systems that are "tex build systems" such as latexmk, and
even stick-in-the-muds like me tend to use a make system of some sort
for building anything significant.

the further complication is the restrictions put on tex
functionality. those are (finally) in the firing line: one could
imagine a luatex arrangement that does exactly as you suggest, though
i'm not sure luatex is up to the mark for typesetting even my
relatively simple documents, yet. (when my current version of the faq
ships, i intend to give luatex a try with it, but first things first...)
--
Robin Fairbairns, Cambridge
.



Relevant Pages

  • Re: LaTeX3 project
    ... now not really up to speed with the development around LuaTeX. ... extending TeX and it various formats, ... Perl with its Filter module. ... then it's possible to have TeX actually hand control over ...
    (comp.text.tex)
  • Re: luatex, really that complicated?
    ... Latex solution that also have a quick and easy Tex solution, ...  Will Luatex accomplish this? ... If you've spent much time source-diving in LaTeX you'll find that it's ... packages might ...
    (comp.text.tex)
  • Re: LuaTeX
    ... package writers to stick with TeX macros for programming. ... making LuaTeX mandatory for LaTeX3 would ... How many users would reject LaTeX3 specifically because of LuaTeX ... Obviously the ConTeXt team now have a lot of Lua experience, ...
    (comp.text.tex)
  • Re: Books for learning TeX
    ... 'The TeXbook' and 'TeX by Topic' would be my choices for learning TeX, ... However, TeX has changed since those two books were written: eTeX was developped, then on top of it pdfTeX and XeTeX, and then LuaTeX on top of pdfTeX. ...
    (comp.text.tex)
  • Re: "knowing" LaTeX from a generic publishing aspect
    ... XML-style deal where you're manipulating relatively coarse ... LuaTeX indeed manipulates glyphs and glues, ... if I'm going to work at that level, there's no need to involve TeX at ... Rows and cells are typographic units, not semantic units; ...
    (comp.text.tex)