I have read on
https://en.wikibooks.org/wiki/LaTeX/Fonts
that there is no variant of \scshape for upper case. Also there seem to be problems with upper case that are addressed by the textcase package. However, using its \MakeTextUppercase does not work for me since it garbles my cross references.
I must have missed something or why is it possible to get small caps out of the box but not upper case? This is quite incredible. (I know that one could create a new \nameref command to get around the problem but that isn't feasible for me.)
Here are two examples:
Works great with \scshape:
\documentclass{scrartcl}
\usepackage{hyperref}
\usepackage{textcase}
\setkomafont{section}{
\normalfont
\scshape
}
\begin{document}
\section{Test \nameref{sec:test2}}
\section{Test2}\label{sec:test2}
\end{document}
Doesn't work with \MakeTextUppercase:
\documentclass{scrartcl}
\usepackage{hyperref}
\usepackage{textcase}
\setkomafont{section}{
\normalfont
\MakeTextUppercase
}
\begin{document}
\section{Test \nameref{sec:test2}}
\section{Test2}\label{sec:test2}
\end{document}
\scshapeuses a different font; there is no “all caps” font. – egreg Jun 10 '18 at 14:02\scshapenot be used for all caps? It is a real bummer in LaTeX that such a simple functionality is so problematic. – Daniel Jun 10 '18 at 14:05aa small caps font, as its name implies has a small A in the slot foraso to use the same mechanism would require a new font. But jou can use\section{Test \NoCaseChange\nameref{sec:test2}}or variants – David Carlisle Jun 10 '18 at 14:30\NoCaseChangesuggestion seems to suggest the opposite. – Daniel Jun 10 '18 at 17:54sec:tex2uppercasing otherwise the reference doesn't resolve, but then you getTest2so you need to uppercase the result of\namerefkoma sectioning defeated me on that initially but I'll look later. – David Carlisle Jun 10 '18 at 18:03