summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg
blob: d79791f204727344391c6265a8186c8c870f2a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\Configure{html}{xml}
\Preamble{html,0.0,ref-,fonts}
\Configure{HTML} {\IgnorePar\Tg<?xml version="1.0"?>
    \Tg<document>}
   {\Tg</document>}
\Configure{section}
   {\EndP \IgnorePar\par  \GetLabel \Tg<section  \PutLabel>}
   {\EndP \IgnorePar \Tg</section>}
   {\Tg<stitle>}{\Tg</stitle>}
\Configure{subsection}
   {\EndP \IgnorePar\par  \GetLabel \Tg<subsection \PutLabel>}
   {\EndP \IgnorePar \Tg</subsection>}   
   {\Tg<stitle>}{\Tg</stitle>}
\Configure{likesection}
   {\EndP  \IgnorePar\par\GetLabel \Tg<section \PutLabel class="star">}
   {\EndP \Tg</section>}
   {\Tg<stitle>}{\Tg</stitle>}
\ConfigureList{thebibliography}
   {\EndP  \GetLabel \Tg<bibliography \PutLabel>
     \def\EndItem{\def\EndItem{\EndP \Tg</bibitem>}}}
   {\EndItem \Tg</bibliography>}
   {\EndItem \DeleteMark} 
   {\Tg<bibitem id="\AnchorLabel">\par}
\ConfigureList{enumerate}
   {\EndP  \GetLabel \Tg<lalist \PutLabel class="enumerate">
     \def\EndItem{\def\EndItem{\EndP\Tg</item>}}} {\EndItem \Tg</lalist>}
   {\EndItem \DeleteMark}             {\Tg<item>\par}
\Configure{tabular} 
   {\Tg<tabular preamble="\Clr">}   {\Tg</tabular>}
   {\Tg<row>}{\Tg</row>}  {\Tg<cell \Hnewline>}{\Tg</cell>}
\Configure{maketitle}  {}{} {\Tg<title>}{\Tg</title>}
\Configure{thanks author date and}
   {}{} {\Tg<author>}{\Tg</author>} {\Tg<date>}{\Tg</date>} {} {}
\Configure{emph}{\Tg<emph>}{\Tg</emph>}
\Configure{label}{id="#1"}{\Tg<pagelabel id="#1"/>}
\Configure{pageref}{\Tg<pageref refid="#1"/>}
\Configure{ref}{\Tg<ref refid="#1"/>}
\Configure{cite}{\Tg<cite refid="#1"/>}
\begin{document}
\EndPreamble
\Configure{HtmlPar}  {\EndP\Tg<P>} {\EndP\Tg<P>}  {\Tg</P>} {\Tg</P>}