# cleveref label ending with parenthesis not recognized [closed]

I'm not sure if this is intended but when I have a \cref label which ends with a closing parenthesis, the label is not recognized. For example:

\label{f:Data(SR2_M0.8)}


is not recognized. However, if a character is added so that the closing bracket is not the last character, for example:

\label{f:Dittmar(SR2_M0.8)a}


it is recognized.

Any ideas how to work around this issue? Also, is there a way to include a comma within a \cref label? For example:

\label{f:Dittmar(SR2,M0.8)}


EDIT: I realized that the reference shows up correctly in the produced document (which is what really matters), however, it is not recognized within the editor (TexStudio), ie. it is underlined and gives a 'label missing' warning. Interestingly this is not the case for a regular \ref label.

Minimal working example:

\documentclass[]{article}

\usepackage[capitalise]{cleveref}

\begin{document}

\section{x}
In \cref{e:equ(test)}

$$\label{e:equ(test)}$$

\end{document}


## closed as off-topic by user31729, Phelype Oleinik, Andrew, CarLaTeX, moeweMar 31 '18 at 6:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Community, Phelype Oleinik
If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to TeX SX! I have no problem with labels including parentheses. Could you post a full compilable, yet minimal, example reproducing the problem? – Bernard Apr 4 '17 at 22:44
• The label name with (...) either with or without additional characters works, but the cleveref documentation clearly says, that , aren't possible anly longer in a label name, since \cref{a,b} is interpreted as referring to two labels a and b, not to a,b. Replace , with ; and it works – user31729 Apr 5 '17 at 3:25
• I can confirm the problem described in your edit. I'm not really sure why that is, though. Have you tried raising this up to the TeXstudio team at Sourceforge? – Troy Apr 12 '17 at 5:06
• Your MWE compiles properly for me. What version of cleveref are you using? I have cleveref 2018/02/08 v0.21.1. – Andrew Mar 31 '18 at 4:53
• The MWE works for me without warning as well. From your question the only issue you have is with your editor's label/syntax highlighting. This is something that should be raised with the developers and should be reported as a bug or feature request. I'm therefore voting to close. – moewe Mar 31 '18 at 6:26