This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: docbook vs latex
- From: Ramon Casellas <casellas at infres dot enst dot fr>
- To: Doug du Boulay <ddb at R3401 dot rlem dot titech dot ac dot jp>
- Cc: docbook at lists dot oasis-open dot org
- Date: Mon, 02 Sep 2002 15:00:28 +0200 (MEST)
- Subject: Re: DOCBOOK: docbook vs latex
On Mon, 2 Sep 2002, Doug du Boulay wrote:
> Granted, but since all we really have available at the moment are short
> term hacks I was just hoping that markup like <latex></latex> in
> db2latex could be modified for compatibility with <alt role="tex"> so that
> both toolchain hacks were accessible without redundancy and
> without violating the DocBook DTD (but maybe by enhancing it,
> if that is what it takes).
Fixed in CVS
Added in texmath.mod.xsl
--------------------------
<xsl:template match="alt[@role='tex']">
<xsl:value-of select="."/>
</xsl:template>
Sample
---------------------------------
<alt role="tex">
<![CDATA[
\begin{equation}
\int e^x dx = e^x
\end{equation}
]]>
</alt>
Output
------------------------------
\begin{equation}
\int e^x dx = e^x
\end{equation}
Regards,
Ramon