Formulas in Impress

Is there any way to insert a LibreOffice Math formula inside a text object in Impress so that the formula is rendered correctly inside the text?

A Math formula is a graphical OLE object. You easily can convert it to curves or other graphic formats.
So it can’t be treated as a normal text. (This is in Writer as well.)
So my answer to your question is no.

1 Like

What do you mean by “rendered correctty inside the text”?

  • Do you need the formula object to reside fully inside the text object?
    This is more or less so “by design”, and should not be a problem at all.
  • Do you want a longish formula to break to new line at the text box edge, and “reflow” the break(s) if you resize the box?
    This will not happen. A formula breaking over several lines needs to be explicitly broken by the**newline** keyword, and grouping/bracketing across a newline needs special handling.
  • Is there some other element of rendering you need?
    Perhaps you could upload a file with what you have got, and explain to which extent it is not satisfactory. Actual content will relieve us from guessing and may speed up the process of solving your issue (or determining that it cannot be solved within the framework of Impress).

If you choose to upload a file, preferably attach it to the original question. Click the pencil icon at the question to start editing, and use the upload tool in the middle of the editor pane’s toolbar.

1 Like

I mean that the formula should be rendered as a part of the text:

…some text… formula … text continues…

Here is a demonstration what I mean:
formula-test.odp (28.2 KB)

I had to insert spaces to the text box and place the formula into the empty space. Has anyone considered implementing formulas in text in Impress to behave as in Writer?

You can copy the whole paragraph in Writer and paste (as OLE object) in Impress. I have not mastered this.
image

1 Like

Thank you! Now it is clear what you want to do.

My observations:

  • It appears that embedding non-character objects “as character” into a text flow is indeed only available in Writer.
  • If you create the content in Writer, copy that and paste into Impress, the pasted object is an embedded Writer document, which makes it rather cumbersome to work with.
  • Also, sometimes the formula seems to be thrown off vertical alignment (“jagged baseline”) when Impress renders the writer document object.

Whether anyone on the developer side considered “streamlining” this behavior for text objects in other apps, I do not know. The issue tracker is the place for introducing such ideas for consideration. The problem you describe was already registered as a request 15 years ago in case #35033.

For the time being, it appears that your approach as demonstrated - manuallly insert space into the text to accomodate the formula object - is the optimal solution available.


The Writer object approach may also work if you set the Writer document to a small page size and zero margins. The “baseline drop” I mentioned only occurred rarely when I tested, so it may be something to do with my graphics hardware/drivers.
Take care of “drag mode” when working with embedded objects though, or you may distort the rendering (stretch/skew).

2 Likes

Workarounds
After this discussion and some interesting proposals I could suggest some other procedure:

  • Create your presentation in Writer. Choose the adequate page size.
  • For some cases you can give your presentation in full screen mode or print preview.
  • For other cases you could export your presentation as a pdf file; when giving your presentation you can switch to presentation mode (many pdf viewers can do this way).

HTH

2 Likes