stefano franchi
2014-05-20 22:14:59 UTC
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\***@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
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA
***@tamu.edu
http://stefano.cleinias.org
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\***@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
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA
***@tamu.edu
http://stefano.cleinias.org