# Several LaTeX-Commands suddenly fail

Robert T. shared this problem 2 years ago
Solved

All my Geogebra-applets which use LaTeX-Syntax in text-objects today started having the same problem:

Some LaTeX-commands are not recognized any more in Geogebra Classic 5. One of them is \tfrac, another one is \raisebox. They are treated like wrong syntax.

This problem appears on all my computers,

• no matter if the OS is Windows 8.1 or Windows 10,
• no matter which version of Geogebra classic 5 (I tried some older versions too).

The problem does not appear with uploaded online applets in Geogebra tube.

The situation can easyly be reproduced:

Create a text object in Geogebra Classic 5, type \tfrac{3}{5} as text.

You should see a "tiny" fraction 3/5, but nothing appears.

Is it a Java-problem or a server-problem?

1

Today I found a work-around for the problem. It is definitely a bug in Geogebra-classic 5.0.487.0, NOT in older versions (I don't know what I did wrong last night when I tried the older versions).

In C:\Program Files (x86)\GeoGebra 5.0 I found the file jlatexmath.jar which obviously is the only candidate with "latex" in its name so I

• installed Geogebra-classic 5.0.485.0 (the last working version),
• copied jlatexmath.jar from the folder C:\Program Files (x86)\GeoGebra 5.0,
• installed the current version Geogebra-classic 5.0.487.0,
• replaced the new jlatexmath.jar with the old jlatexmath.jar from 5.0.485.0.

After this procedure the problem of failing tfrac-commands has disappeared.

I know it's not a clean solution, but at least I can continue programming geogebra applets :)

1

Sorry, it's a bug in that version. Please can you post the faulty .ggb files?

2

Fixed for 5.0.488.0. Please shout if you spot any more problems!

1

Regretfully today I recognized that the LaTeX-command \raisebox is still not working in Geogebra classic 5.0.488.0. \tfrac works properly though.

The raisebox command is fine for raising the label of the x-axis:

${\raisebox{3mm}[5mm]{\bf{x}}}$

1

Replacing jlatexmath.jar from 5.0.488.0 with jlatexmath.jar from 5.0.485.0 is still necessary if I want to see the correct interpretation of the LaTeX-command \raisebox on my local computer.

1

I confirm: in Geogebra classic 5.0.489.0 the \raisebox command works properly again. Thank you for fixing it!

1

Thank you very much for fixing that bug so quickly!