Suppose we were using small caps (rather than, e.g., bold face) to format a sectioning level in our TOC, say, section.
Consequently, we would use the appropriate alternative spelling of the section titles, to make sure the TOC entries will appear in small-caps only (rather mixed with upper-case letters, which looks clumsy) -- as, so far, there's no such thing as an upper- or lower-case command that can be used functionally identically to (and in combination with) the text style commands we already have (there's no \lcshape\scshape).
\section[lorem ipsum]{Lorem Ipsum}
But how to proceed with things like the names of \listoffigures and the likes? What would be the most elegant way to patch them before they get written to the TOC file?
\documentclass[listof=totoc]{scrartcl}
\usepackage{tocstyle,blindtext}
\settocfeature[toc][1]{entryhook}{\normalfont\scshape}
\setkomafont{section}{\normalfont\itshape}
\begin{document}
\tableofcontents
\section[lorem ipsum]{Lorem Ipsum}
\blindtext
\begin{figure}
\dots
\caption{\dots}\label{fig1}
\end{figure}
\blindtext
\listoffigures
\end{document}



\lowercase, or rather of the fact that it can be used that conveniently in this specific situation. Will run a real-world test to see how robust it is. I expect problems with certain characters (ligatures, German "ß" et al.), but in my current situation, that will certainly suffice. – Nils L Jul 05 '18 at 20:15\MakeLowercaseand how it works, but I guess implementing it for the purpose at hand will be a bit more tricky. – Nils L Jul 05 '18 at 20:21\MakeLowercaseanswer? I'll happily delete my answer. – samcarter_is_at_topanswers.xyz Jul 05 '18 at 20:21\lowercaseby\MakeLowercasein the above answer. – David Carlisle Jul 05 '18 at 20:27\MakeLowercase:-) – David Carlisle Jul 05 '18 at 20:36\MakeLowercasesolution breaks as soon ashyperrefcomes into play. But\lowercaseseems to work well even in a fairly complex project I'm working on. – Nils L Jul 06 '18 at 06:31