这是我的一个持续性问题上一个主题我正在设置 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}