I want to format the toc-chapter numbers indpendent of the chapter numbers in the text. The chapter number for the appendix should be in small caps. However, I've modified the \chapterformat
in a \EuRoman
font. Thus, using \renewcommand*{\thechapter}{\textsc{\alph{chapter}}}
changes the appearance of the chapter heading in the text.
What the heading should look like:
What the toc should look like:
MWE:
\documentclass[10pt, oneside, numbers=noenddot, listof=totoc, toc=indentunnumbered]{scrbook}
\usepackage{anyfontsize}
\usepackage{newpxmath}
\usepackage{microtype}
\DeclareMathAlphabet\EuRoman{U}{eur}{m}{n}
\SetMathAlphabet\EuRoman{bold}{U}{eur}{b}{n}
\newcommand{\eurom}{\EuRoman}
\usepackage[osf]{newpxtext} \linespread{1.05}
\usepackage[left=32.5mm, right=25mm, top=25mm, bottom=20mm]{geometry}
\renewcommand*{\chapterformat}{\textls*[-30]{\Huge\fontfamily{pplx}\selectfont$\eurom\thechapter$}}
\setkomafont{chapter}{\huge\fontfamily{qpl}\selectfont\normalfont\lsstyle\scshape}
\addtokomafont{chapterentry}{\normalfont\lsstyle\scshape}
\DeclareTOCStyleEntries[raggedpagenumber=true, linefill=\qquad, pagenumberbox=\mbox]{tocline}{chapter,section,subsection}
\begin{document}
\tableofcontents
\appendix
% \renewcommand*{\thechapter}{\textsc{\alph{chapter}}}
\chapter{test}
\section{test}
\end{document}
\thechapter
formatting instructions, and specially not instructions meant only for one location. Beside this: why on earth are you setting the chapter number in math mode??\newcommand\eurom{\usefont{U}{eur}{b}{n}}
(or m instead of the b if it shouldn't be bold) should work too.\renewcommand*{\thechapter}{\textsc{\alph{chapter}}}
in order to use small caps in the toc changes the chapter number to a lower case letter, because small caps don't seem to exist in this font. How can I adjust the toc numbers font independent of the chapter numbers?