Skip to content

Do not escape TeX macros if string is marked properly -- "$...$" or "{...}"

Josef Kufner requested to merge jk/dia:fix-tex into master

Hello, here is a patch originally submitted in https://bugzilla.gnome.org/show_bug.cgi?id=778836:

Hello, this patch adds support to TeX strings in Dia for PGF export. If a string (label) starts and ends with '$', or is enclosed in {curly braces}, then LaTeX special characters are not escaped. This allows to enter math formulae with only a little risk of breaking other strings, like function_names in UML diagrams.

I believe it will solve most problems like #742018, #112377, #143414, and many other.

Special thanks to https://mail.gnome.org/archives/dia-list/2010-August/msg00020.html for pointing to the right place.

Edited by Josef Kufner

Merge request reports