[texhax] XMLTeX disables marginpars?
William Adams
will.adams at frycomm.com
Fri Apr 20 18:59:03 CEST 2012
I've been using xmltex to put together a proof-of-concept galley system here at work and everything works perfectly, save for showing the index in the marginpar area.
Here's a minimal example from Apostolos Syropoulos' _Digital Typography Using LaTeX_:
% file : scientists.xmt
%
\XMLelement{scientists}
{}
{\documentclass[a4paper,12pt]{memoir}
\showindexmarktrue
\newcommand{\saveindexsurname}{\relax}
\begin{document}\begin{itemize}}
{\end{itemize}\end{document}}
\XMLelement{person}
{}
{\item}
{}
\XMLelement{name}
{}
{}
{:}
\XMLelement{first_name}
{}
{\xmlgrab}
{#1{\renewcommand{\saveindexsurname}{#1}}}
\XMLelement{last_name}
{}
{\xmlgrab}
{\textsc{#1}\index{\saveindexsurname|#1}}
\XMLelement{profession}
{}
{\xmlgrab}
{#1\ }
greatsci.xml
<?xml version="1.0"? standalone="no"?>
<!DOCTYPE scientists SYSTEM "http://ocean1.ee.duth.gr/dtds/scientists.dtd">
<scientists>
<person>
<name>
<first_name>Alan</first_name>
<last_name>Turing</last_name>
</name>
<profession>Computer Scientist</profession>
<profession>Mathematician</profession>
<profession>Cryptographer</profession>
</person>
<person>
<name>
<first_name>Leslie</first_name>
<last_name>Lamport</last_name>
</name>
<profession>Computer Scientist</profession>
</person>
</scientists>
--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.
More information about the texhax
mailing list