summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg')
-rw-r--r--Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg41
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg b/Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg
new file mode 100644
index 00000000000..d79791f2047
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-web-companion/latex2xml/l2xdemo.cfg
@@ -0,0 +1,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>}