OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Equation alignment


Mauritz
I see now the logic of where you activate the code. 

However, when using your template in my customization layer, the image
does not show up because imagedata is looking for a graphic file.

Also, I did not see anything in the template tying it to imagedata. Did
I miss something?

Regards,

Dean Nelson   
Enterprise Electronics Corp




-----Original Message-----
From: Mauritz Jeanson [mailto:mj@johanneberg.com] 
Sent: Thursday, October 25, 2007 10:27 AM
To: Nelson, Dean
Cc: docbook-apps@lists.oasis-open.org
Subject: RE: [docbook-apps] Equation alignment 


> -----Original Message-----
> From: Nelson, Dean

> Mauritz
> Thanks for the template. But I am a bit confused about how to
> apply the implementation.
> 
> The code in my doc is like this:
> 
> <equation><title>Z-R Relation</title>
>       <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
> href="e5-math-zr-basic.xml"/>
> </equation>

> However, the formula shows up left aligned and I need it
> centered. So how do I specify the "alignment" when using your 
> template?


I'm sorry if I was unclear. The customization I sent only applies to
MathML
content in imagedata, because that element has align and valign
attributes.

The equation, inlineequation, and informalequation elements don't have
any
alignment attributes. Therefore the customization does not work if you
have
MathML as a direct child of any of these elements. 

You can have mediaobject/imageobject/imagedata inside equation. This
should
work:

  <equation>
    <mediaobject>
      <imageobject>
	<imagedata align="center">
	  <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML";
id="mymath"> 
        <mml:mrow>
         <mml:mn>Z</mml:mn>
         <mml:mo>=</mml:mo>
         <mml:mn>a</mml:mn>
         <mml:msup><mml:mi>R</mml:mi><mml:mn>b</mml:mn></mml:msup>
       </mml:mrow>
      </mml:math>
     </imagedata>
    </imageobject>
   </mediaobject>
  </equation>

Mauritz




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]