On 21/05/2014 10:14 a.m., stefano franchi wrote:
Dear all,
Prannoy is delving into tex4ht to tweak it to our purposes (quite
successfully so far). In the process, he is also trying to understand
better tex4ht's rather complex LaTeX code and grasp the logic of the
XML constructions it carries out.
The problem is that several Latex macros used are quite obscure (and
undocumented, as far as I can tell). I append a code fragment below as
an example.
The general question I'd like to ask is the following though:
* How would you go about finding the definition of a (La)TeX command
(length, etc.) when you don't know where it may come from?
For instance, for "\BegEnd:D" in the code fragment below, I tried
grepping the whole tree (which includes tex4ht sources), looking in
existing documentation, and compulsing the usual references (TeX
book, LTC, etc). To no avail.
Do any of the LaTeX gurus around have any suggestions? Am I missing
something obvious?
Cheers,
Stefano
--------------Code fragment from tex4ht's definition of a list (first
part only) ----
\ConfigureList{description}%
{\EndP
\bgroup
\HCode{<text:list
text:style-name="description\if@rl-rtl\fi"
text:name="description"\Hnewline>}%
\PushMacro\end:itm
\global\let\end:itm=\empty
\HTML:PAR{dd|<cond rtl class|>}{dd|<cond rtl class|>}%
\gHAdvance\BegEnd:D by 1
}
--
__________________________________________________
Stefano Franchi
This is almost certainly wrong, judging by the code around it that you
provide above, but the ":D" notation occurs in the expl3 language of
LaTeX3 (as do a host of other "argument specifiers" like ":N", ":n"
etc.). See the document "interface3.pdf", p.1 of the text, that is
available after installing the l3kernel bundle.
Andrew
Andrew