This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: XML, XSL, texmath inlineequation not.
- From: Doug du Boulay <ddb at R3401 dot rlem dot titech dot ac dot jp>
- To: docbook at lists dot oasis-open dot org
- Date: Fri, 30 Aug 2002 16:29:28 +0900
- Subject: Re: DOCBOOK: XML, XSL, texmath inlineequation not.
- References: <Pine.LNX.4.33L2.0208300851540.9221-100000@io.pinknet.cz>
- Reply-to: ddb at R3401 dot rlem dot titech dot ac dot jp
On Friday 30 August 2002 15:54, Jirka Kosek wrote:
> On Fri, 30 Aug 2002, Doug du Boulay wrote:
> > and then invoked
> > <inlineequation> <alt role="tex"> \( \hat{R} = \hat{R}(X,Y,Z) \)
> > </alt> <graphic fileref="figures/xc0.xbm"/>
> > </inlineequation>
> >
> > running this via saxon and latex I do get a very nicely formatted
> > equation in the resultant single page html document, but unfortunately
> > the inline equation is not inline, but is wrapped front and back with
> > </p><p>
>
> Could you show us little bit more of your document. What is before and
> after your inlineequation? If you use it as inline element inside
> paragraph text, stylesheets shouldn't generate <p> around <img>.
>
> Jirka
Given the following experimental document:
<section><title>4D Hyperspherical Coordinates</title>
<para>
We begin by defining four orthogonal axes
<inlineequation> <alt role="tex">
\(W\), \(X\), \(Y\) and \(Z\)
</alt> <graphic fileref="figures/xc_0.xbm"/>
</inlineequation>
with the unit basis vectors
<inlineequation> <alt role="tex">
\(\hat{e}_w\), \(\hat{e}_x\), \(\hat{e}_y\) and \(\hat{e}_z\)
</alt> <graphic fileref="figures/xc_1.xbm"/>
</inlineequation>.
By virtue of their orthogonality these basis vectors are completely
independent such that anything that changes along W has no bearing on
what happens along X, Y and Z.
</para>
<para>
By virtue of the orthogonality of W, X, Y and Z we can exploit
the generalized Pythagoras relation:
<informalequation> <alt role="tex"> \begin{equation}
|\hat{R}|^2 = W^2 + X^2 + Y^2 + Z^2
\end{equation} </alt> <graphic fileref="figures/xc0.xbm"/>
</informalequation>
to obtain the length of the vector
<inlineequation> <alt role="tex"> \( \hat{R} = \hat{R}(W,X,Y,Z) \)
</alt> <graphic fileref="figures/xc0a.xbm"/>
</inlineequation>.
</para>
I then get the following html:
<div class="section"><div class="titlepage"><div><h2 class="title"
style="clear: both"><a name="d0e480"></a>4D Hyperspherical
Coordinates</h2></div></div><p>
We begin by defining four orthogonal axes
</p><p><img src="figures/xc_0.xbm"></p><p>
with the unit basis vectors
</p><p><img src="figures/xc_1.xbm"></p><p>.
By virtue of their orthogonality these basis vectors are completely
independent such that anything that changes along W has no bearing on
what happens along X, Y and Z.
</p><p>
By virtue of the orthogonality of W, X, Y and Z we can exploit
the generalized Pythagoras relation:
</p><div class="informalequation"><p><img
src="figures/xc0.xbm"></p></div><p>
to obtain the length of the vector
</p><p><img src="figures/xc0a.xbm"></p><p>.
</p>
Hope thats sufficient?
Thanks again
Doug