I'm using the \MakeUppercase command (from \textcase) (but also tried \MakeTextUppercase cos I thought the problem might be caused by the math-environment of the chapter number) and the \addtokomafont{chapter}{...} command to set up the Koma-script report class. My MWE is based on the following thread. Unfortunately, adding \MakeUppercase to \addtokomafont{chapter}{\normalsize\scshape} doesn't compile with the changed chapter format but it does without, does some one have an idea how to solve the problem?
\documentclass[
fontsize=12pt,
twoside,
a4paper,
parskip=half,
ngerman,
headings=big,
open=right
]
{scrreprt}
\usepackage[english,german]{babel}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{blindtext}
%\usepackage{showframe}
\DeclareMathAlphabet\EuRoman{U}{eur}{m}{n}
\SetMathAlphabet\EuRoman{bold}{U}{eur}{b}{n}
\newcommand{\eurom}{\EuRoman}
\usepackage{textcase}
\setkomafont{sectioning}{\rmfamily}
\setkomafont{caption}{\small}
\setkomafont{captionlabel}{\sffamily\bfseries\small}
\setkomafont{chapterentry}{\small\bfseries}
\setkomafont{chapter}{\normalsize}
\setkomafont{section}{\normalsize}
\setkomafont{subsection}{\normalsize}
\addtokomafont{chapter}{\normalsize\scshape}%%%%%%%%% \MakeUppercase
\addtokomafont{section}{\normalsize\scshape\MakeTextLowercase}
\addtokomafont{subsection}{\normalsize\itshape}
% Define own Chapter style
% Pretty chapter pages
%------------------------------------------
\definecolor{nicered}{rgb}{.647,.129,.149}
\usepackage{pdfpages}
\usepackage{etoolbox}
\usepackage{fancyhdr}
\makeatletter
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\setlength{\fboxsep}{0pt}%
\colorbox{white}{\color{black}$\eurom\thechapter$}}}%!!!!!Error?
\raisebox{\depth}{\usebox{\feline@chapter}}%
}
\renewcommand*{\chapterformat}{%
\sbox\feline@chapter{\feline@chapter@marker[1.61cm]}%
\makebox[0pt][l]{%
\makebox[\dimexpr\textwidth+\marginparsep+\wd\feline@chapter\relax][r]{%
\usebox\feline@chapter}}%
}
\makeatother
\preto\chapterheadendvskip{%
\vspace*{-\parskip}%
{\setlength\parfillskip{0pt plus 1fil}\rule{\textwidth}{.4pt}\par}%
}
\begin{document}
\tableofcontents
\chapter{Lorem ipsum dolor sit amet, consectetuer}
\blindtext[2]
\section{Lorem ipsum dolor sit amet, consectetuer}
\end{document}


\scr@makechapterheadand\scr@makeschapterhead… – cgnieder Sep 09 '15 at 20:36fontenc– is that on purpose? Also you loadgermaninstead ofngermanwithbabelwhich means you have old spelling instead of the new (no so new anymore) one. – cgnieder Sep 09 '15 at 20:41\MakeUppercaseas I thought (cos even be editing this part I still get the same error message). – jlk Sep 09 '15 at 21:02@followed by the user name. The problem is that after the chapter font is inserted what follows isn't the corresponding heading directly but a whole bunch of internal commands. So\MakeTextUppercase(or whatever) acts on a lot more than just the heading. – cgnieder Sep 10 '15 at 10:09