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: XML, XSL, texmath inlineequation not.


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


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