文件中間的粗體副標題

文件中間的粗體副標題

我看過很多關於添加字幕的帖子,但它們似乎只涉及在主標題正下方添加字幕,或添加較大的非粗體文字。例如,我嘗試過添加“標題”包並從那裡使用 \subtitle 。我嘗試將文檔類別更改為 scrartcl,其中 \subtitle 應該可以工作。它沒。我已經瀏覽了至少 10 個堆疊交換帖子,但似乎沒有任何效果。我只是想要一個粗體、稍大的文字、副標題,用於我的文件的一小部分,而無需創建單獨的乳膠文件。

答案1

字幕指令在KOMA腳本類別連結到\maketitle命令。要排版您描述的字幕類型,我建議使用命令\addsec或\,具體取決於您使用的文件類。它們還有帶有星號的版本,可確保您不會從運行標題中的分段命令中獲取任何文字。\addchap\minisec

addsec與 的格式相同\section,沒有任何編號。請參閱手動的第 105--107 頁了解您可以做什麼。

這是一個 MWE,輸出:

在此輸入影像描述

\documentclass{scrartcl}
\usepackage{lmodern}
\usepackage{scrlayer-scrpage}
\usepackage[babel=true]{microtype}
\usepackage{babel}
\usepackage{blindtext}

\KOMAoptions{headings=small,%
            captions=tableheading,%
    }

% Section
\let\raggedsection\flushleft

\begin{document}
\title{Capital Asset Prices}
\author{W.\,T.\,F.\,Dull}

\maketitle

\section{Recitals}
\label{sec:intro}

\textsc{One of the problems} which has plagued the world is bad typesetting of subtitles. Now we have KOMA-script to help us.

\blindtext[1]

\let\raggedsection\centering
\addsec{Form of subtitle -- centred}
\let\raggedsection\flushleft

\blindtext[1]

\addtokomafont{minisec}{\huge}
\minisec{Minisec}

\blindtext[1]

\end{document}

相關內容