Once a while I bump into latex commands (I think are basic) that are not recognized by texstudio (most recently \trianglelefteq).
I'm not sure if this is the right place to request they would be.
Interesting, I "usepackage"s from an input file (ie \input{includes/base}). If I move the \usepackge command to the main latex the commands are indeed recognized... shouldn't texstudio follow used packages within \input files?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just checked, this also explains why autocompletion does not work for input files (ie although I added \newtheorem{conjecture}[theorem]{Conjecture} to an input file the word conjecture is not autocompleted within \begin{...}).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For now, i've updated amsmath.cwl acoordingly (hg 5689 (7c4239b4c43a)).
There are most certainly further commands missing or incorrectly specified. However, given the number of latex packages, we as core developers don't have the time to maintain all cwls. They need to be manually edited, checked and improved (e.g. for semantics). This can only be done by community contributions. Any help is welcome.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
\trianglelefteq is part of amssymb (not general latex).
It is recognized if usepackage{amssymb} is employed.
Interesting, I "usepackage"s from an input file (ie \input{includes/base}). If I move the \usepackge command to the main latex the commands are indeed recognized... shouldn't texstudio follow used packages within \input files?
I just checked, this also explains why autocompletion does not work for input files (ie although I added \newtheorem{conjecture}[theorem]{Conjecture} to an input file the word conjecture is not autocompleted within \begin{...}).
it does interpret included files if "automatically load included files" is activated.
Only loaded files are interpreted.
Great, thank you, I didn't notice this option.
\bmod is still oddly unrecognized though.
you are welcome to maintain the cwl-files in texstudio
For now, i've updated amsmath.cwl acoordingly (hg 5689 (7c4239b4c43a)).
There are most certainly further commands missing or incorrectly specified. However, given the number of latex packages, we as core developers don't have the time to maintain all cwls. They need to be manually edited, checked and improved (e.g. for semantics). This can only be done by community contributions. Any help is welcome.
Hi Tim,
I found another missing latex symbol (\divides) and I'd be happy to help with the maintenance.
Could you give me a starting point?
Last edit: Roy Ben-Ari 2016-01-26
See FAQ: Why does TeXstudio mark a command as unrecognized and the links therein.