add tag
hsigrist
I'm using the `tabularray` package in LaTeX with the following code:

```
\begin{verbatim}
\begin{tblr}{hlines,vlines,cells={c,$}}
% table content
\end{tblr}
\end{verbatim}
```
I noticed that the `$` in `cells={c,$}` makes Vim think that all the following text is in math mode. This is inconvenient because syntax highlighting and editing behave as if I'm still inside a math environment.
Top Answer
samcarter
`$` is actually the same as `mode=math`, so you could use

```
\begin{tblr}{hlines,vlines,cells={c,mode=math}}
test\\
\end{tblr}
```

for the same result, but without confusing vim.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.