I'm new to LaTeX and after spending a whole day of googling, I can't really find a solution to this problem. It might be simple, but I have no clue.
I'm using a class, not created by me, with the following code:
\pretocmd{\@chapter}{\begingroup\smallspacing}{}{}
\apptocmd{\@chapter}{\endgroup}{}{}
here's a basic example of a document using that class:
\chapter{Intro}
\label{ch:intro}
This is the Intro
\chapter{First}
This references \ref{ch:intro}
This outputs an empty reference. The problem is that the \label has to be placed between the \begingroup and \endgroup but I have no idea how to do this since the definitions are inside the class. Any ideas on how to do this?
\chapter{\label{ch:intro}Intro}? – siracusa Jun 17 '17 at 06:59labelsis not meant for the\labelcommand! – Jun 17 '17 at 07:43\@makechapterheadinstead (and\@makeschapterhead). – egreg Jun 17 '17 at 19:34\@makechapterheadnow it's not. – Felipe Jun 17 '17 at 19:35