Equation as Image

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Shingo Suzuki
Posts: 6
Joined: Sat Jun 25, 2011 3:14 am

Equation as Image

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Equation as Image

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Shingo Suzuki
Posts: 6
Joined: Sat Jun 25, 2011 3:14 am

Re: Equation as Image

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Equation as Image

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply