我正在使用以下代码在我的书中写出示例和解决方案。但是,我想在标题后的新行开始示例。目前,这是我的输出。
\newtheoremstyle{examplestyle}% name of the style
{}% Space above
{}% Space below
{\normalfont}% Body font (not in italics)
{}% Indent amount
{\bfseries}% Theorem head font (bold)
{.}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning 'normal')
% Use the custom style for questions
\theoremstyle{examplestyle}
\newtheorem{example}{Example}[chapter]