When typing equations, I cannot use commands that put accents on characters such as \dot{}, \vec{}, \Tilde{}, etc. I also cannot use \frac{}{}. When tying "\dot{x}", it compiles to just "dotx". These commands are also greyed out on the symbols palette.
I'm not sure if this issue is connected, but on the toolbar I only have three icons (the number equations icon is not there).
I thought it might be an issue with the files used in the configuration, but I created a document with Texmaker and was able to use \frac{}{}, \dot{}, etc. fine.
I am using TexMaths 0.51.1 and LibreOffice 7.3.7.2 and Ubuntu 22.04.
I have attached screenshots of the symbol palette, the toolbar and my configuration. Let me know if there's any other information I can provide.
Thanks,
Walden
Update: I realized that I am able to use accented characters, fractions, etc. when I am not in a text box, but within a textbox do not have access to these characters. I'm assuming this is not a bug, but is there a good workaround if I want to use in-text mathematical expressions (other than dragging them creating the svg image and dragging it to approximately the right location in the text)?
Hi,
Text mode has a number of limitations (due to LibreOffice limitations), as the doc explains (http://roland65.free.fr/texmaths/docs.html):
"Starting with version 0.51, TexMaths has two equation modes, depending on the position of the cursor in a Writer, Impress or Draw document. When the cursor is located inside a text box (in Impress this is where you type your text, in Draw you can enter a text box by double clicking on a form, and in Writer this is when a text box in inserted on the page), TexMaths automatically switches to Text Mode. Anywhere else, TexMaths uses the LaTeX mode.
In LaTeX mode, you get as usual your equation as a graphic image in PNG or SVG format. In Text mode, the equation is inserted as a set of characters using TexMaths fonts (these fonts are specific to TexMaths and are automatically installed when needed). This is because, due to a limitation in LibreOffice, it is not possible to insert graphics within a text box and so TexMaths has to insert equations as text.
The Text mode has some features and limitations that are explained lower."
And:
"In Text mode, it is only possible to generate simple equations with at most one level of subscript and superscript. Anything else is not supported. Note that in Impress, it is still possible to generate complex equations in LaTeX mode by putting the cursor outside text boxes and clicking on the TexMaths Equation icon."
First of all, thanks for this amazing tool, and implementing the Text Mode, which is great. But I don't understand why it is possible to write, for example, \vec{P} in Writer and not in Impress (using Text Mode). Would it be possible to use whatever trick you used for Writer in Impress? Also, the behavior of TexMaths in Impress is different from Writer: if I highlight the text I want to convert and click on the TM icon, the TM window comes up but there is no text in the box, I have to write it again and run it for the equation to appear embedded in the text. In Writer, clicking the TM button converts the highlighted text automatically with no window appearing. It would be nice if both Writer and Impress behaved the same way and had the same capabilities (if it is possible). I am using TM 0.51.1, LO 7.4.7 on Ubuntu 20.04.
Hi Aran,
from version 0.51, TexMaths has two modes : LaTeX mode and Text Mode.
In LaTeX mode, equations are rendered as graphic images. LaTeX Mode cannot be used within a text box (in Writer, Impress or Draw)
In Text mode, equations are rendered as text. Text mode can only be used within a text box (in Writer, Impress or Draw).
In Writer (and only in Writer) and in LaTeX mode (when the cursor in not within a text box), you can enter equations either by clicking on the TexMaths icon, or by typing your LaTeX code and clicking on the TexMaths icon (this method is called Text to LaTeX ).
In Writer, if the cursor is within a text box, you can only use Text Mode and so, Text to LaTeX method does not work in that case.
The equation \vec{P} simply cannot be used in Text Mode, in Writer, Impress or Draw.
If you type \vec{P} in a Writer document (but not within a Text box) and click on the TexMaths icon, then you'll get your equation rendered as a graphic image, because you are in LaTeX mode. And if you do this, you use the Text to LaTeX method.
To summarize:
- cursor within a text box => Text Mode
- cursor not within a text box => LaTeX mode
I hope this clarifies the issue.
RB