如何制作副标题?

如何制作副标题?

对于书中的一些结构元素,我需要在第二行添加一些信息。它应该是关于这部分是什么的信息(“(文章)”或“(故事)”),或者关于某个人或某个地方的信息,即

这座城市最杰出的人物

约翰·J·约翰逊

目前我所能想到的就是

\newcommand{\chapsubhead}[1]{%
  \\{#1}%
}

但这并不能在所有情况下都完全满足我的要求。

应该如何做/改变?

更新代码示例:

\documentclass{book}

\newcommand{\chapsubhead}[1]{%
  \\{#1}%
}

\begin{document}

\section*{The most remarcable man in town\chapsubhead{John 'Jay' Johnsom}}

John 'Jay'Johnson was the most remarkable man in town, maybe in the
whole country. Just one simple trait among all his qualities would
have set him apart from the rest of unremarcable humanity - and it
did!

Not a single living thing has ever witnessed Jay
farting. Never. Not. One. Time.

\end{document}

我想要的(非常粗略): Libre Office Writer 屏幕截图

我擅自将我想要的两种类型的副标题都包括在内。

答案1

您可以使用类似以下 MWE 的命令:

\documentclass{book}

\newcommand{\chapsubhead}[1]{{\Large #1 \vspace{2ex}}}
\newcommand{\chaptype}[1]{{\Large \itshape (#1) \vspace{2ex}}}
\begin{document}

\section*{The most remarcable man in town}
\chapsubhead{John 'Jay' Johnsom}

John 'Jay'Johnson was the most remarkable man in town, maybe in the
whole country. Just one simple trait among all his qualities would
have set him apart from the rest of unremarcable humanity - and it
did!

Not a single living thing has ever witnessed Jay
farting. Never. Not. One. Time


\section*{The most remarcable man in town}
\chaptype{essay}

John 'Jay'Johnson was the most remarkable man in town, maybe in the
whole country. Just one simple trait among all his qualities would
have set him apart from the rest of unremarcable humanity - and it
did!

Not a single living thing has ever witnessed Jay
farting. Never. Not. One. Time.

\end{document}

在此处输入图片描述

相关内容