I'm using LuaLaTeX and wonder why I cannot label theorems with words containing umlauts. For example:
\documentclass[a4paper,12pt]{article}
\usepackage{luatextra}
\usepackage[utf8]{luainputenc}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\begin{document}
\begin{thm} {\bf Exämple's_theorem}
%\label{Exämple's theorem} % does not work
\label{Exaemple's_theorem} % does work
Lorem ipsum etc.
\end{thm}
\end{document}
Has anyone a clue why this is and - maybe how to resolve this ? I'm just curious for the underlying reason. Writing 'ae' instead of 'ä' is not a hard thing to do, so no solution is no problem.
Additionally lacheck says you shouldn't use spaces in labels, but there occurred no errors during compilation - another white spot in my knowing latex/luatex map.