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:
parent
21ff2d0415
commit
2eab0344b9
5 changed files with 14 additions and 9 deletions
|
|
@ -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 '%':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue