ToC 外观有待定制/优化

ToC 外观有待定制/优化

不幸的是,我的 ToC 最近遇到了一个小问题。我最近在互联网上搜索也同样没有成功。这就是我向您寻求帮助的原因,我希望有技术娴熟的人有时间与我一起解决这个问题。

具体来说,我希望目录、目录、目录、缩写列表等之间的间距更小...我没有找到任何简单的解决方案来减少它们之间的间距,而不会影响第 1 章及后续章节的常规部分。总而言之,我认为最好将它们的格式与每章中的常规部分完全一样,以适应目录(垂直空间)的外观。现在它们被当作章节来处理。我通过调用例如 \renewcommand{\listtablename}{\normalfont\rmfamily Tabellenverzeichnis} 来强制它们不出现在螺栓字符中。

为了说明目的,我附加了一张您可以在下面找到的带评论的图片。

我认为,实施上述方法后,这将非常美观。如果您对我的方法有任何疑问,请随时提出替代方案!

提前谢谢您!

梅威瑟:

\documentclass[a4paper, twoside, BCOR=12mm, 12pt]{scrbook}

%%% PREAMBLE
\usepackage[ngerman]{babel}
\usepackage{siunitx}
\usepackage{setspace}   
\setstretch{1,25}

% Layout
\usepackage[
top=2.0cm,
bottom=2.5cm,
headheight=0.75cm,
headsep=1cm,
width=155mm
]{geometry}

\geometry{
bindingoffset=14mm,
%verbose,
includehead=true,
includefoot=false, 
%marginparsep=0.25cm,
%marginparwidth=1.5cm,
%showframe
}

\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearscrheadfoot
\automark[chapter]{chapter}                     
\renewcommand*{\headfont}{\normalfont}
\lehead{Seite~\pagemark}                                
\rohead{Seite~\pagemark}
\renewcommand*{\chaptermarkformat}{}
\setheadsepline{0.2pt}                              
\addtokomafont{pageheadfoot}{\footnotesize\rmfamily}        
\renewcommand*{\chapterpagestyle}{scrheadings}          

% ToC, LoF, LoT anpassen
\usepackage{tocloft}
\usepackage{titlesec,titletoc}  
\usepackage{minitoc}
\usepackage[nottoc]{tocbibind}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}                                    % tocdepth
\renewcommand*{\cftchapfont}{\bfseries}                 % TOC font 
\renewcommand*{\cftsecfont}{}
\renewcommand*{\cftsubsecfont}{}
\renewcommand*{\cftsubsubsecfont}{}
%\renewcommand*{\cftchappagefont}{}
\renewcommand*{\cftsecpagefont}{}
\renewcommand*{\cftsubsecpagefont}{}
\renewcommand*{\cftsubsubsecpagefont}{}

\renewcommand{\cftchapleader}{\bfseries \cftdotfill{3.5}}% TOC dots 
\renewcommand{\cftsecleader}{\cftdotfill{3.5}}
\renewcommand{\cftsubsecleader}{\cftdotfill{3.5}}
\renewcommand{\cftsubsubsecleader}{\cftdotfill{3.5}}
\renewcommand{\cftfigleader}{\cftdotfill{3.5}}
\renewcommand{\cfttableader}{\cftdotfill{3.5}}

\renewcommand{\cftbeforechapskip}{0.7cm}                    % TOC vertical 
\renewcommand{\cftbeforesecskip}{0.1cm}
\renewcommand{\cftbeforesubsecskip}{0.05cm}
\renewcommand{\cftbeforesubsubsecskip}{0.05cm}

\renewcommand{\cftchapnumwidth}{0.5cm}                  % TOC Indent between Number and character
\renewcommand{\cftsecnumwidth}{0.9cm}
\renewcommand{\cftsubsecnumwidth}{1.2cm}
\renewcommand{\cftsubsubsecnumwidth}{1.5cm}

\renewcommand{\cftaftertoctitle}{\hfill{\mdseries\normalsize Seite}}
\renewcommand{\cftafterloftitle}{\hfill{\mdseries\normalsize Seite}}
\renewcommand{\cftafterlottitle}{\hfill{\mdseries\normalsize Seite}}
\renewcommand*{\cftmarktoc}{}

\renewcommand{\cftbeforetoctitleskip}{15pt}
\renewcommand{\cftaftertoctitleskip}{-10pt}
\renewcommand{\cftbeforeloftitleskip}{7pt}
\renewcommand{\cftafterloftitleskip}{0.3cm}
\renewcommand{\cftbeforelottitleskip}{7pt}
\renewcommand{\cftafterlottitleskip}{0.3cm}

\titleformat{\chapter}[hang]{\fontsize{22pt}{16pt}\selectfont\sffamily\bfseries\raggedright}{\thechapter}{34pt}{}

\addtokomafont{chapter}{\large}
\titleformat{\section}[hang]{\fontsize{17pt}{30pt}\bfseries}{\thesection}{25pt}{}
\titleformat{\subsection}[hang]{\fontsize{14pt}{14pt}\bfseries}{\thesubsection}{17pt}{}
\titleformat{\subsubsection}[hang]{\normalsize\bfseries}{\thesubsubsection}{8pt}{}
\titlespacing*{\chapter}{0pt}{-10pt}{0pt}
\titlespacing{\section}{0pt}{12pt}{-5pt}
\titlespacing{\subsection}{0pt}{8pt}{-5pt}
\titlespacing{\subsubsection}{0pt}{8pt}{-5pt}
\titlespacing{\paragraph}{0pt}{0pt}{0pt}
        

% Glossary Style
\usepackage[acronym, toc, section=chapter]{glossaries}

\usepackage{glossary-super}
\setlength{\glsdescwidth}{15cm}
\newglossary[slg]{symbolslist}{syi}{syg}{Symbolverzeichnis} %create add. symbolslist
\glsaddkey{unit}{\glsentrytext{\glslabel}}{\glsentryunit}{\GLsentryunit}{\glsunit}{\Glsunit}{\GLSunit}
\glssetnoexpandfield{unit}
\glsdisablehyper

% Print Glossary
%\loadglsentries[\acronymtype]{example-glossaries-acronym}% dummy entries
\newacronym{CLIK}{CLIK}{Closed-Loop Inverse Kinematic}
\newglossaryentry{Position}{name=${P=\left[P_x, P_y, P_z\right]^T}$,
    description={Positionsvektor in x-, y- und z-Richtung},
    unit={\si{\meter}}}
    
\makeglossaries

\usepackage{lipsum}
\usepackage{mdframed}

\begin{document}

%% Ein kleiner Abstand zu den Kapiteln im Inhaltsverzeichnis (toc)
\addtocontents{toc}{\protect\vspace*{\baselineskip}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%       Inhaltsverzeichnis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\tocloftpagestyle{scrheadings}
\rmfamily % Inhaltsverzeichnis in Arial
\renewcommand{\contentsname}{\rmfamily Inhaltsverzeichnis}

\fontsize{14bp}{\baselineskip}\selectfont
\begin{center}
\bfseries
\begin{mdframed}[backgroundcolor=white] %gray!5
\centering Thesis von Maximilian Mustermann
\end{mdframed}
\end{center}
\normalsize

\ihead{Inhaltsverzeichnis}
\pagenumbering{roman}
\tableofcontents
\cleardoublepage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%       Abkürzungen/Abbreviations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\glsgroupskip}{}
\ihead{Abkürzungs- und Notationsverzeichnis}
\let\cleardoublepage\clearpage
\setlength{\glsdescwidth}{0.82\linewidth}
\printglossary[
type=\acronymtype,
nonumberlist,               
title=Abkürzungen,
toctitle=\normalfont Abkürzungsverzeichnis,
%style=mystyle
]
%\addtocontents{toc}{\vspace{-15pt}}
\cleardoublepage
    
% Notationen
\ihead{Abkürzungs- und Notationsverzeichnis}
\printglossary[
nonumberlist,
title=Notationen,
toctitle=\normalfont Notationsverzeichnis,
%style=symbunitlong
]
%\addtocontents{toc}{\vspace{-15pt}}
\glsaddall
    
% ToF
\chapter*{\label{figure_index}Abbildungen}
\renewcommand{\listfigurename}{\normalfont\rmfamily Abbildungsverzeichnis} %\rmfamily
%\addtocontents{toc}{\vspace{-4pt}}
\ihead{Abbildungsverzeichnis}
%\renewcommand{\chapter}[2]{}
\listoffigures
\cleardoublepage
    

% ToT
\chapter*{\label{table_index}Tabellen}
\renewcommand{\listtablename}{\normalfont\rmfamily Tabellenverzeichnis}
%\addtocontents{toc}{\vspace{-15pt}}
\ihead{Tabellenverzeichnis}
%\renewcommand{\chapter}[2]{}
\listoftables
%\cftaddtitleline{toc}{chapter}{Contents-Example}{}%
\cleardoublepage

%%% Text
\rehead{\chaptername~\thechapter}       % Reset Headers
\lohead{\headmark}
\pagenumbering{arabic}                  % Reset Page-numbering

\chapter{Example Chapter}
\lipsum[1]
\section{Introduction}
\lipsum[2]
\chapter{Second Chapter}
\lipsum[1]
\section{Forther information}
\lipsum[2]
\section{Analysis of issues}
\lipsum[1]
\section{Problem solving process}
\lipsum[1]
\chapter{Summary}
\end{document}

在此处输入图片描述

来自德国的最诚挚问候!Max

相关内容