如何在论文文档类别中的章节标题后放置章节编号?

如何在论文文档类别中的章节标题后放置章节编号?

为什么论文文档类中的章节标题位于章节号下方?我的意思是我需要将章节标题和章节号放在一行中。 在此处输入图片描述

答案1

这是一个解决方案,使用带有显式选项的 titlesec 包:

\documentclass[11pt, twoside]{report}% http://ctan.org/pkg/amsproc

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[explicit]{titlesec}%
\usepackage{xcolor}

\titleformat{name=\chapter}[block]{\filcenter\color{blue}\normalfont\bfseries\huge\boldmath}{}{0ex}{#1\quad\fontsize{60}{72}\selectfont\thechapter}%



\begin{document}

\chapter{First Chapter}

Once upon a time, a long while ago, there were four little people whose names were Violet, Slingsby, Guy and Lionel,  and they all thought they should like to see the world. So they bought a large boat to sail quite round the world by sea, and then they were to come back on the other side by land. The boat was painted blue with green spots, and the sail was yellow with red stripes; and when they set off, they only took a small Cat to steer and look after the boat, besides an elderly Quangle-Wangle, who had to cook dinner and make the tea; for which purposes they took a large kettle.

\end{document} 

结果:

当然,你可以将 \filcenter 改为 \filleft 或 filright

相关内容