How to include Tex in Docbook

R

R User

Hello ,

I need help to include Tex equations in an xml docbook .

I tried instructions described here but it does not work
http://www.sagehill.net/docbookxsl/TexMath.html



Here is my docbook file :


****************


<?xml version="1.0" encoding="UTF-8"?>
<article>
<articleinfo>
<title>Tex Test</title>
</articleinfo>
<sect1>
<title>Tex Test</title>
<para>
<equation>
<mathphrase role="tex">
$V(x) = \frac{1}{N}\sum_{1}^{N}x_{i}^2 -
\bar{\textbf{x}}^2 \sim 83.7344$
</mathphrase>
</equation>
</para>
<para>
<equation>
<title>A TeX Equation</title>
<mediaobject>
<textobject role="tex"><phrase>$V(x) =
\frac{1}{N}\sum_{1}^{N}x_{i}^2 - \bar{\textbf{x}}^2 \sim
83.7344$</phrase></textobject>
</mediaobject>
</equation>
</para>
</sect1>
</article>



*****************

I use Oxygen to do the transformation with saxon 6.5.5

Thank you for your help

R
 
J

Joe Kesselman

R said:
it does not work

What do you mean by "does not work"? It looks to me like the document
contains the formula and -- at a quick glance -- ought to be legal XML
markup. I don't know enough TeX to comment on whether the formula is
legal TeX markup, and you haven't told us enough about what you're doing
with the document to comment on how it will be processed...
 
R

R User

Joe Kesselman said:
What do you mean by "does not work"? It looks to me like the document
contains the formula and -- at a quick glance -- ought to be legal XML
markup. I don't know enough TeX to comment on whether the formula is legal
TeX markup, and you haven't told us enough about what you're doing with
the document to comment on how it will be processed...

Yes I know , because I am using Oxygen.
I change the value of two parameters :
tex.math.in.alt="latex"
passivetex.extensions="1"the tex formula is good .And the result I have is
this : (it does not transform the equation)**************************Tex
TestTable of ContentsTex Test
...............................................................................................................................
1Tex Test$V(x) = \frac{1}{N}\sum_{1}^{N}x_{i}^2 - \bar{\textbf{x}}^2 \sim
83.7344$Equation 1. A TeX Equation 1**************************Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top