The chapter-entry font is resized correctly in the TOC, but the section-entries are in too big a font. You would think that a call to \addtokomafont{sectionentry} would be the answer, but it doesn't work in scrbook, and I want this to be a book. Perhaps it's possible to make scrartcl act like a book, but I don't know how to do it.
MWE (I've included the calls to \RedeclareSectionCommand in case they affect the other aspects of the document.):
Code: Select all
% !TEX TS-program = XeLaTeX
\documentclass[12pt,twoside,openany,cleardoublepage=plain]{scrbook}
\usepackage[
paperwidth=6in,
paperheight=9in,
inner=0.6in,
outer=0.6in,
bindingoffset=0.15in,
top=0.5in,
bottom=0.5in,
headsep=0.1in,
footskip=0in,
%showframe,
twoside]{geometry}
\pagestyle{empty}
\usepackage{fontspec}
\setmainfont{Junicode}
\usepackage[automark]{scrlayer-scrpage}
\addtokomafont{disposition}{\normalfont\small\rmfamily}
\BeforeStartingTOC[toc]{\addtokomafont{disposition}{\small\rmfamily}}
\addtokomafont{chapter}{\normalfont\normalsize\rmfamily\bfseries}
\addtokomafont{section}{\normalfont\normalsize\rmfamily\bfseries}
\clearpairofpagestyles
\ihead*{\pagemark}
\RedeclareSectionCommand[beforeskip=0pt,afterskip=\baselineskip,innerskip=0pt,afterindent=false]{chapter}
\RedeclareSectionCommand[beforeskip=\baselineskip,afterskip=\baselineskip,afterindent=false]{section}
\RedeclareSectionCommand[beforeskip=\baselineskip,afterskip=\baselineskip,afterindent=false]{subsection}
\def\thechapter{\Roman{chapter}}
\def\thesection{\Roman{section}}
\begin{document}
\tableofcontents
\newpage
\addchap{bla1}
some writing
more writing
more writing
more writing
more writing
more writing
more writing
more writing
more writing
more writing
\section*{this shouldn't show up in the TOC}
\addchap{somechap1}
some more writing
some more writing
some more writing
some more writing
some more writing
some more writing
some more writing
some more writing
some more writing
\section{some section1}
foo
some more writing
some more writing
some more writing
some more writing
some more writing
\section{A REALLY REALLY REALLY REALLY LONG SECTION HEADING}
bar
\end{document}