Page 1 of 1

Equation as Image

Posted: Wed Jul 13, 2011 10:44 am
by Shingo Suzuki
Hi,
I'd like to write equations in my dita document.
MathML (MathFlow) is difficult to use for me, then I decided that all equations are prepared as image (eps file).

For example,
equation.eps : a=b
Image tag in topic file:
<image href="equation.eps" id="Eq1" outputclass="eq"/>
then a rendering image on oXygen Author mode should be
--------------------------
Blah-blah-blah....
a=b (1-1)
Blah-blah-blah.... and Cross-reference see Eq. (1-1)...
--------------------------
- a=b is image (equation.jpg)
- centering in independent line
- equation number is attached
- number format <chapter number>-<consecutive number>
- align with equation at center (vertically)
- right alignment (horizontally)
- Cross-refernce <xref href="Eq1" format="eq"> => Eq. (1-1)

I think I have to customize ".css" file for rendering on oXygen screen and modify xsl for generating pdf file.
First I'd like to view equation on oXygen.

Help please

Thank you

Re: Equation as Image

Posted: Wed Jul 13, 2011 11:30 am
by Radu
Dear Shingo,

Unfortunately Oxygen does not have support for displaying EPS images in the Author page. Maybe we'll address this limitation in a future version.
This does not mean that the image will not be shown when publishing to PDF.

When publishing the XML to PDF using the DITA OT and a commercial FO processor (as Apache FOP does not seem to support EPS images) probably the image will be displayed properly.

My suggestion to you would be to use an image format which also works in the XHTML output like PNG.

Regards,
Radu

Re: Equation as Image

Posted: Wed Jul 13, 2011 4:23 pm
by Shingo Suzuki
Hi, Radu
Thank you for quick reply

Graphic format is not essential of difficulty I am facing to.
I can prepare equations as png file.

I didn't know that figure number and xref to figure is not rendered on oXygen screen.
Then I realize that my request is excessive.

Thank you

Re: Equation as Image

Posted: Tue Jul 10, 2012 4:31 pm
by Radu
Hi,

Oxygen 14.0 which was released a couple of weeks ago should allow the possibility to view in the Author page the TIFF preview from an EPS image:

http://www.oxygenxml.com/doc/ug-oxygen/ ... pport.html

Regards,
Radu