texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.84k stars 346 forks source link

incorrect "cols in tabular missing" #3881

Closed pagenum closed 4 days ago

pagenum commented 6 days ago

Environment

Expected behavior

No highlight for "\\"

Actual behavior

Highlighted "\\", mouse move onto "\\", a message :"cols in tabular missing" showed

How to reproduce

\begin{NiceTabular}{|m[l]{185pt}|m[c]{110pt}|c|c|m[c]{42pt}|m[c]{42pt}|}
            \Hline
            1 & 1 & 1 & 1 & 1 & 1 \\
            \Hline
        \end{NiceTabular}
sunderme commented 6 days ago

the issue is the m[c] definition. If you can provide the package and a clean definition on how this is supposed to work, I may add it to txs.

pagenum commented 5 days ago

the issue is the m[c] definition. If you can provide the package and a clean definition on how this is supposed to work, I may add it to txs.

https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/nicematrix/nicematrix.pdf

sunderme commented 5 days ago

would you please point out where that is described ?

muzimuzhi commented 4 days ago

In the table preambles of nicematrix table environments, specifiers | (vertical table line), p{...}, b{...}, m{...}, V{...}, and X{....} all accept an optional argument.

texdoc nicematrix (v6.29b, 2024-11-12)

texdoc nicematrix-code

sunderme commented 4 days ago

a bit subtle as documentation goes, but okay.