From: David Allsopp <dra-news@me...> - 2007-04-19 07:21:39
You can get some idea in a very cryptic sense of what LaTeX is doing from
the log file. If you say \tracingmacros=2 \tracingcommands=2 at the top of
your LaTeX file, then TeX will write all macro expansions to the log file
and a note of when primitive commands were executed (which allows you to see
how the macros actually executed). However, note that even a "Hello World"
in the Article class creates a 28000 line log file!
If you really want to understand the internals of TeX, then you must read
the TeXbook ... as a Plain TeX user, it is always on my desk next to the
PS The computer scientist in me has to pick up on a point in Wilfred's
otherwise highly informative post --- the macro language in TeX is
Turing-powerful and TeX therefore does constitute programming, however ugly!
In fact, a lot of the TeX formats I write do vast amounts of processing,
taking advantage, amongst other things, of the free hash-tables provided by
\csname..\endcsname and other such evil tricks for data processing but
that's all rather off-list...
From: "bk" <rkimmel@...>
Sent: Wed, 18 Apr 2007 15:07:16 -0400
Subject: [MiKTeX] LaTeX Input, TeX Output?
Hello MikTeX list,
I was a user of Scientific Workplace for several years, but switched over a
few months ago to using LaTeX directly. I have been spending a lot of time
trying to learn the various features of the language, which were hidden from
me as a SW user, which brings me to my question. I am a little leery of
asking it, because I suspect the answer may be obvious, but I haven't been
able to find it. So here goes:
Using MikTeX 2.5 on a Windows 2000 intel-based machine, is there a way to
process a LaTeX input file and produce TeX output? I want to do this, not
because I am thinking about converting my files to TeX and ditching LaTeX,
but because I think it would help my understanding of LaTeX if I were able
to see the TeX output it produced, rather than DVI. So far, I haven't been
able to do this. The distribution includes a "latex.exe" program, and I
couldn't find an option to this program that does it, but I get the
impression that this program is just a small thing that only calls some
other program(s) with certain options enabled.
Thanks in advance for any help,
--Certified Virus Free by 4SecureMail.com ICSA-Certified Scanner--