Bug in RotateText()?

hjbortol shared this problem 2 years ago
Solved

Hi!


I'm trying to use RotateText() with a math expression. The text is displayed correctly at the Algebra Window but, in the View Windows, the LaTeX command \rotatebox{} appears. Is this a bug?

Another question: why, in text1, the math formula is not displayed using the usual LaTeX fonts?


Thanks, Humberto.

Comments (5)

photo
1

Please post your .ggb file

photo
1

Please use FormulaText instead of the dollars:

RotateText(FormulaText("\int_{a}^{b} e^{-x^2} \, dx"), α)


(RotateText prepends rotatebox{ and appends } to your text so if you use $ it will have some unwanted switches between textmode and math mode)

photo
1

Here it is!

photo
1

Zbynek, your suggestion worked! However, the rendered text is not typeset in Computer Modern fonts as usual math text does. Is there a way to make RotateText + FormulaText render math text using Computer Modern fonts? Thanks!

/nfZzWjatLa21yCYAAHY+PlxFIN+R8BOre5t+MR6eWLvnafU33P0qe5sAACg7fJTvpja+k65AZBMAALtagdmkSSQSiUSRPxV3M2QTAADYBsXKJjORTQAAYBuQTeYhmwAA2NXIJvOQTQAA7Gpkk3nIJgAAdjWyyTzVtVd48ODBgwcPHrv6sd01cc92azYBAACYjGwCAADIS77ZBAAAgC39Px3jqsdE59QoAAAAAElFTkSuQmCC

photo
2

intenta


RotateText(FormulaText("\int_{a}^{b} e^{-x^2} \, dx"), α)


y

text2 = "\int_{a}^{b}{ e^{-x^2}}" as Latex

then RotateText(text2, α)


saludos

Files: foro.ggb
© 2020 International GeoGebra Institute