Add \ to & in LaTex-Export

0 votes
asked Nov 2, 2017 in Bug by Dresaan (400 points)
In LaTex, '&' and '\' are command chars. So they have to be escaped.

The sample:

class SomeClass{

Something & something other with a \\ does not work

}

throws an latex exception caused by the & and the \ just disappears.

Both should get an '\' prefixed to escape it so that they are generated as "\&" and "\\".

The bug is propably on every text regardless of what diagram type or element.

1 Answer

0 votes
answered Nov 3, 2017 by plantuml (295,800 points)
selected Nov 3, 2017 by Dresaan
 
Best answer
Thanks for the feedback.

It's fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if you find other issues with LaTex !
commented Nov 3, 2017 by Dresaan (400 points)
Seems to work. Thank you :-)
...