fix latex escaping

* src/ltlvisit/print.cc: Property output the double
quotes in latex mode, not only sclatex.
* src/misc/escape.cc: Fix LaTeX escape to work in math mode.
* src/tests/latex.test: Add a test.
* wrap/python/tests/formulas.ipynb: Adjust expected output
* NEWS: Mention the fix.
This commit is contained in:
Alexandre Duret-Lutz 2015-08-13 17:25:00 +02:00
parent 21ff2d0415
commit 2eab0344b9
5 changed files with 14 additions and 9 deletions

View file

@ -54,13 +54,13 @@ namespace spot
switch (i)
{
case '~':
os << "\\textasciitilde";
os << "\\text{\\textasciitilde}";
break;
case '^':
os << "\\textasciicircum";
os << "\\text{\\textasciicircum}";
break;
case '\\':
os << "\\textbackslash";
os << "\\text{\\textbackslash}";
break;
case '&':
case '%':