#1798 False warning for underscores outside math environment
None
fixed
nobody
None
1
2016-06-09
2016-06-07
Anonymous
No
When underscores are used outside the math environment, a warning appears "math command outside math env". This happens in e.g. \label{fig:foo_vs_bar}. Can this be fixed? It annoys me.
labels are usually detected correctly and not checked for tex syntax.
So your problem comes from something different.
Please provide an example which shows the problem. Which OS, which version of txs ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry, I should have been more clear. I does not happen at every position of the document, but in the scope of \afterpage. This is some example code:
The underscores are marked red in the \label{} tag and in the \includegraphics{} tag. The word "landscape" in the \end{} tag is also marked red and when I hover my mouse a tooltip says: "closing environment which has not been opened".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
labels are usually detected correctly and not checked for tex syntax.
So your problem comes from something different.
Please provide an example which shows the problem. Which OS, which version of txs ?
I'm sorry, I should have been more clear. I does not happen at every position of the document, but in the scope of \afterpage. This is some example code:
The underscores are marked red in the
\label{}
tag and in the\includegraphics{}
tag. The word "landscape" in the\end{}
tag is also marked red and when I hover my mouse a tooltip says: "closing environment which has not been opened".The internal afterpage.cwl is incompatible with additions to the cwl language. Will be fixed in the next release.
As a workaround, create file
[settings-dir]/completion/user/afterpage.cwl
with the following content:FAQ: Where are the settings stored
Last edit: Tim Hoffmann 2016-06-09
Ok, it doesn't really bother me, I just wanted to report it so it can be fixed.
Thanks, then.