On Wednesday, 14 December 2016 10:43:05 UTC, Anselm Haak wrote:
> I just had the same problem as Bart Baker. When adding tabularx, the given
> example produces the error (and can be compiled):
>
> ### Minimal working example
>
> ```tex
> \documentclass{scrartcl}
>
> \usepackage{tabularx}
>
> \begin{document}
>
> \newcolumntype{L}{>{$}c<{$}}
>
> This text is highlighted as if it was in mathmode, probably due to the wrong
> nesting of curly brackets and dollar signs within the newcolumntype command.
>
> \end{document}
> ```
Hi,
I also encountered this issue using the array package and defining a new column
type as follows:
\newcolumntype{C}[1]{>{\hfil$} p{#1} <{$\hfil}}
I found a workaround, though. If you use the LaTeX syntax for inline math
environment \( ... \) instead of $ ... $ then the syntax highlighting for the
document that follows is correct, i.e.
\newcolumntype{C}[1]{>{\hfil\(} p{#1} <{\)\hfil}}
Hope this helps!
James
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.