lempeo · GitHub

Environment

  • TeXstudio: 4.8.4
  • Qt: 6.7.2
  • OS: MacOS Ventura 13.7 (22H123)
  • TeX distribution: TeX Live 2024

Expected/actual behavior

Labels are not detected by TeXStudio with memoir class. The declaration of the name of the label is not colored as it should, and the label doesn't appear in the structure panel. Any reference to this label shows "Label missing", whereas the compilation produces no error, and of course autocompletion doesn't work either.

How to reproduce

Compare this MWE:

\documentclass{article}
\begin{document}
Here is a label\label{labelname}.
Here is a reference to this label \ref{labelname}.
\end{document}

which works perfectly fine (also with book class);

To this one:

\documentclass{memoir}
\begin{document}
Here is a label\label{labelname}.
Here is a reference to this label \ref{labelname}.
\end{document}

which shows the problem.

Tested on a fresh TexStudio profile.

Read the original on github.com ↗