This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]