# Can cleveref treat sections in other chapters as chapters?

I am using cleveref for my thesis. When referencing another chapter, if I put the label at the top of the chapter, it will say "chapter X", but if I put the label after defining a new section or subsection, it will say "section X.Y", etc.

For consistency it would be nice to have everything referred to as "chapter" in this case. Is it possible to get cleveref to refer to sections in other chapters as chapters?

(NB: The thing I'd really like to do which may be difficult would be to have this only work for other chapters, so if I reference section Y within the current chapter, it would still say "section." But I recognize this may be quite challenging!)

• Please provide a full MWE that shows what you're doing at the moment. Be sure to indicate which document class you use.
– Mico
Nov 11 '14 at 15:39

It is very easy, I use this for documents in Norwegian (agreements and memos):

%% Referanser
\RequirePackage{cleveref}
\IfLanguageName{norsk}{%
\Crefname{section}{Punkt}{Punktene}
\Crefname{subsection}{Punkt}{Punktene}
\crefname{section}{punkt}{punktene}
\crefname{subsection}{punkt}{punktene}
}{}


To have everything referred to as chapters, use:

%% References
\RequirePackage{cleveref}
\IfLanguageName{English}{%
\Crefname{section}{Chapter}{Chapters}
\Crefname{subsection}{Chapter}{Chapters}
\crefname{section}{chapter}{chapters}
\crefname{subsection}{chapter}{chapters}
}{}


To achieve you second goal, I would personally chosen a manual approach and use the classic reference system, i.e. when in the same chaper, I would have used:

... see subsection~\ref{sec:section-label-in-the-current-chapter}


Not very fancy, but easy and much better than a complicated macro. Sometimes the simple solution is the best.

• Thanks! Do you know if it's possible to have it distinguish between references within and outside the current chapter? It would be nice for sections within the current chapter to still be called "section."
Nov 11 '14 at 15:41
• @Adam, then you might have to specify a method to determine which chapter we are currently in. I can thing of a few ways. However, as a reader I might find it odd so see a reference to Chapter 4.5. In my book that is Section 4.5. Nov 11 '14 at 16:15
• @daleif thanks, I'm still wrestling with it myself. For me it's a bit strange to have the choice to refer to Chapter 4 or Section 4.5 if I want to be specific about where in Ch. 4 the thing I'm mentioning is located.