Bug 340261

Summary: Parsing of $ in tabu preamble as inline math start token
Product: [Applications] kile Reporter: loic.grobol
Component: editorAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED FIXED    
Severity: minor CC: andrew.crouthamel
Priority: NOR    
Version First Reported In: 2.9.60   
Target Milestone: ---   
Platform: Windows CE   
OS: Microsoft Windows   
URL: http://i.imgur.com/1kHzAUj.png
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description loic.grobol 2014-10-23 15:20:10 UTC
Using package tabu to typeset tables, one can ask an X column to be entirely in math mode using the shortcut X[$] for >{$}X<{$}. Sadly, Kile parses it as X[<start inline math> which makes it very inconvenient. A way to avoid that would be to treat the preamble of tabulars (or at least tabus) as verbatims.


Reproducible: Always
Comment 1 Andrew Crouthamel 2018-11-12 02:54:18 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 loic.grobol 2018-11-12 08:29:21 UTC
Yes, it still happens, here's a MWE

```
\documentclass[a4paper,10pt]{article}
\usepackage{tabu}

\begin{document}

\begin{tabu}{X[$]}
\end{tabu}

\end{document}
```
Comment 3 Andrew Crouthamel 2018-11-12 16:25:43 UTC
Thanks for the update!
Comment 4 Christoph Cullmann 2023-09-17 22:10:48 UTC
Git commit 80b312632182971f3480e147aa2c9d0ad9d73035 by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 18/09/2023 at 00:08.
Pushed by cullmann into branch 'master'.

LaTeX: fix conflict of tabu X[$] shortcut with math mode

M  +12   -0    autotests/folding/highlight.tex.fold
M  +12   -0    autotests/html/highlight.tex.dark.html
M  +12   -0    autotests/html/highlight.tex.html
M  +12   -0    autotests/input/highlight.tex
M  +12   -0    autotests/reference/highlight.tex.ref
M  +53   -0    data/syntax/latex.xml

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/80b312632182971f3480e147aa2c9d0ad9d73035