3

When using cleveref in combination with German theorem names from amsthm, referenced theorem names are not capitalized (but they should be).

Referenced chapter names are capitalized as expected.

MWE:

\documentclass[ngerman]{scrbook}

\usepackage{amsthm}
\usepackage{cleveref}

\theoremstyle{plain}
\newtheorem{thm}{Satz}


\begin{document}

\chapter{First chapter / Erstes Kapitel} \label{c}

\begin{thm} \label{t}
    Important theorem.
\end{thm}

From \cref{t} in \cref{c} we can deduce that \LaTeX{} is great.

\end{document}
2
  • 1
    Using \Cref{t} helps. Or use the capitalise option
    – user31729
    Commented Jun 14, 2017 at 9:21
  • German is a unique language in that it keeps the uppercase initial for nouns. For other languages it can be a stylistic decision: in English it's common to see “in Theorem 1.2”, which would be not so good in Italian, where “nel teorema 1.2” should be preferred. For German as the main language, the capitalise option seems the best choice.
    – egreg
    Commented Jun 14, 2017 at 9:31

1 Answer 1

3

Either use the capitalise option which makes recommended for the German language or on a local base use \Cref{t} if used in a document with multiple languages, where capitalized names would look awkward in languages other than German.

If capitalise is not used, cleveref automatically applies \MakeLowercase for the given theorem etc. name, so Satz becomes satz in \cref.

\cref{c} shows up with Kapitel just because \crefname{chapter} is defined with Kapitel already in cleveref.sty when ngerman is recognized as language setting -- this predefinition is of course not possible for new entities (with rather uncommon names)

I don't recommend such short label names such as t or c, however.

\documentclass[ngerman]{scrbook}

\usepackage{amsthm}

\usepackage[capitalise]{cleveref}

\theoremstyle{plain}
\newtheorem{thm}{Satz}

\begin{document}

\chapter{First chapter / Erstes Kapitel} \label{c}

\begin{thm} \label{t}
    Important theorem.
\end{thm}

From \cref{t} in \cref{c} we can deduce that \LaTeX{} is great.

\end{document}

enter image description here

2
  • 1
    Thank you! I think the capitalise option is the way to go there. Longer label names are definitely better, I only used short ones for the MWE.
    – user61658
    Commented Jun 14, 2017 at 9:29
  • @jpmath: Yes, but you should not use it in multi-language documents
    – user31729
    Commented Jun 14, 2017 at 9:35

You must log in to answer this question.