KOMA-script scrreprt:章节标题大小自定义

KOMA-script scrreprt:章节标题大小自定义

这是我的一个持续性问题上一个主题我正在设置 LaTeX 来使用它来撰写我的论文scrreprt

我成功地实施了所有建议和建议的解决方案,并尝试进行修改以实现最终期望的美学改变,这是增加章节名称的大小

目前,我对章节和章节编号的大小非常满意,但我无法找到控制章节名称的正确方法。我用过,\addtokomafont{chapter}{\Huge}但没有看到太大的变化。我不知道如何使用\scalebox。我还研究过使用\othersectionlevelsformat{sectioning name }{}{counter output }KOMA-Script 手册 第 97 页指出\renewcommand可用于定义格式化命令,并且KOMA-Script类中的原始定义是:

\newcommand*{\partformat}{\partname~\thepart\autodot}
\newcommand*{\chapterformat}{%
\chapappifchapterprefix{\ }\thechapter\autodot\enskip}
\newcommand*{\othersectionlevelsformat}[3]{%
#3\autodot\enskip}

但是我无法有效地使用这个命令,请您帮忙,提前谢谢您。

请参阅以下我当前的MWE,提前感谢您的帮助。

\documentclass[
bibliography=totoc,
headings=big,
captions=tableheading,
chapterprefix=true% like in standard class "report"
]{scrreprt}
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{minitoc}
\usepackage{setspace}

\setcounter{secnumdepth}{3} % number subsubsections
\setcounter{tocdepth}{3} % list subsubsections

\begin{document}
\dominitoc
\tableofcontents

\addtokomafont{chapterprefix}{\raggedleft}

\addtokomafont{section}{\huge}
\addtokomafont{subsection}{\Large}
\addtokomafont{subsubsection}{\large}

\renewcommand*{\chapterformat}{%
\mbox{\scalebox{1.5}{\chapappifchapterprefix{\nobreakspace}}%
\scalebox{4}{\color{gray}\thechapter\autodot}\enskip}}

\setcounter{chapter}{6}\setcounter{page}{199}
\newpage\setcounter{page}{212}

\chapter{Conclusions}
\dictum[Sun Tzu]{If you know the enemy and you know yourself %\\
you need not fear the results of a hundred battles.}

\minitoc

\section{Summary of Achievements}
Text goes here

\subsection{Papers Submitted}
Text

\subsubsection{I want to go into the TOC}
Testing stuff out

\bibliographystyle{plain}
\bibliography{bibliography}

\end{document}

答案1

加载lmodern包,以便可以使用非常大的尺寸,然后使用类似

\addtokomafont{chapter}{\fontsize{30}{38}\selectfont}

结果如下:

在此处输入图片描述

完成 MWE:

\documentclass[
bibliography=totoc,
headings=big,
captions=tableheading,
chapterprefix=true% like in standard class "report"
]{scrreprt}
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{minitoc}
\usepackage{setspace}
\usepackage{lmodern}

\setcounter{secnumdepth}{3} % number subsubsections
\setcounter{tocdepth}{3} % list subsubsections

\begin{document}
\dominitoc
\tableofcontents

\addtokomafont{chapterprefix}{\raggedleft}
\addtokomafont{chapter}{\fontsize{30}{38}\selectfont}
\addtokomafont{section}{\huge}
\addtokomafont{subsection}{\Large}
\addtokomafont{subsubsection}{\large}

\renewcommand*{\chapterformat}{%
\mbox{\scalebox{1.5}{\chapappifchapterprefix{\nobreakspace}}%
\scalebox{4}{\color{gray}\thechapter\autodot}\enskip}}

\setcounter{chapter}{6}\setcounter{page}{199}
\newpage\setcounter{page}{212}

\chapter{Conclusions}
\dictum[Sun Tzu]{If you know the enemy and you know yourself %\\
you need not fear the results of a hundred battles.}

\minitoc

\section{Summary of Achievements}
Text goes here

\subsection{Papers Submitted}
Text

\subsubsection{I want to go into the TOC}
Testing stuff out

\bibliographystyle{plain}
\bibliography{bibliography}

\end{document} 

相关内容