Public bug reported:

Create an empty latex document
Insert some math environments using the old and discouraged $math$ and $$math$$ 
notation.
You will see the expressions properly highlighted as math (in my system theme 
it is a light purple color).

Now use the new \(math\) and \[math\] notation.
The text will not be highlighted as math, it seems that \(\) and \[\] are not 
recognized as math environment tokens by the highlighting engine.

Here is my example document to reproduce the bug:

\documentclass{article}

\begin{document}
    $x+y=23$ should be the same as \(x+y=23\)
    
    And $$z=1$$ should be the same as \[z=1\]
\end{document}

** Affects: gtksourceview (Ubuntu)
     Importance: Undecided
         Status: New

-- 
incorrect latex math highlighting
https://bugs.launchpad.net/bugs/152716
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to