### [Issue] Automatic Math Formula Sizing

Posted:

**Sat Jul 05, 2008 4:02 pm**Dear OOo community forum,

I am trying to automatically produce documents in Open Document Format (ODF) and to open them in OOo Writer. Everything is working great, except for the size of the mathematical formula.

In the content.xml file, I put a MathML formula as suggested by jlundstocholm in this post http://idippedut.dk/post/2008/03/Now-I-get-it---ODF-and-MathML.aspx:

The problem is that I do not know the size of the formula, so I figured I would just remove the svg:width and svg:height attributes. This worked fine with OOo Writer 2.3 in Linux: it would automatically resize all formulas upon loading. Now that I have upgraded to OOo 2.4, it does not work so well anymore: all the equations are tiny and I do not know how to tell OOo Writer to scale them automatically. Nevertheless, the equations are there, and if I double-click on them, they are correctly resized; but I do not want to do that if the document contains hundreds of equations.

Do you know how to solve this problem? Is there a special attribute in draw:frame or draw:object that I can use for this?

Thanks in advance,

gvarek

I am trying to automatically produce documents in Open Document Format (ODF) and to open them in OOo Writer. Everything is working great, except for the size of the mathematical formula.

In the content.xml file, I put a MathML formula as suggested by jlundstocholm in this post http://idippedut.dk/post/2008/03/Now-I-get-it---ODF-and-MathML.aspx:

- Code: Select all Expand viewCollapse view
`<draw:frame`

draw:name="Objekt1"

text:anchor-type="as-char"

svg:width="2.972cm"

svg:height="1.138cm"

draw:z-index="0">

<draw:object>

<math:math>

[... MathML content here ...]

</math:math>

</draw:object>

</draw:frame>

The problem is that I do not know the size of the formula, so I figured I would just remove the svg:width and svg:height attributes. This worked fine with OOo Writer 2.3 in Linux: it would automatically resize all formulas upon loading. Now that I have upgraded to OOo 2.4, it does not work so well anymore: all the equations are tiny and I do not know how to tell OOo Writer to scale them automatically. Nevertheless, the equations are there, and if I double-click on them, they are correctly resized; but I do not want to do that if the document contains hundreds of equations.

Do you know how to solve this problem? Is there a special attribute in draw:frame or draw:object that I can use for this?

Thanks in advance,

gvarek