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.79k stars 344 forks source link

Glossaries labels suggestions are not shown if the \glsxtrnewsymbol command is used #1382

Closed chiavez closed 3 years ago

chiavez commented 3 years ago

If the command \glsxtrnewsymbol is used TeXstudio does not understand a glossary entry has been defined. Every label referenced with \gls() is said to be missing. The suggestions do not work.

This does not happen if the standard command \newglossaryentry{} is used.

Environment

Expected behaviour

TeXstudio recognizes that a glossary entry is being defined when \glsxtrnewsymbol is used. label suggestions are given

Actual behaviour

TeXstudio does not recognize that a glossary entry is being defined when \glsxtrnewsymbol is used. label suggestions are not given

How to reproduce

Define a glossary entry using \glsxtrnewsymbol eg:

\glsxtrnewsymbol [description={Stiffness matrix of an element}] {m:k:e} {\ensuremath{[K^e]}}

try reference it using \gls{m:k:e}

the referenced entry will be underlined and said to be missing.

sunderme commented 3 years ago

glossary cwl is incomplete you may want to overhaul the bit that you need (https://github.com/texstudio-org/texstudio/wiki/Frequently-Asked-Questions#what-are-cwl-files-good-for-and-how-do-they-work)