根据给定条件进行论文格式化

根据给定条件进行论文格式化

我想在我的论文中设置这些属性。

  • 章节标题:全部大写—14 号字体,粗体
  • 章节标题:标题大小写-12 字体大小,粗体
  • 子节标题:句子大小写-12 字体大小,粗体
  • 文本:句子大小写 - 12 字体大小

它是否正确?

\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\large\bfseries}{\thechapter}{14pt}{\large}
\titleformat{\section}
{\normalfont\bfseries}{\thesection}{12pt}{}
\titleformat{\subsection}
{\normalfont\bfseries}{\thesubsection}{12pt}{}
\titleformat{\subsubsection}
{\normalfont\bfseries}{\thesubsubsection}{12pt}{}

答案1

答案是这个答案

对于您需要的文本

 \documentclass[12pt]{report}

对于其他标题

\documentclass[12pt]{report}
\usepackage{blindtext} % just for test text
\usepackage{titlesec}


\newcommand{\chapfnt}{\fontsize{14}{17}}
\newcommand{\secfnt}{\fontsize{12}{14}}
\newcommand{\ssecfnt}{\fontsize{12}{14}}

\titleformat{\chapter}%[display]
{\normalfont\chapfnt\scshape}{\thechapter}{20pt}{\chapfnt}

\titleformat{\section}
{\normalfont\secfnt\bfseries}{\thesection}{1em}{}

\titleformat{\subsection}
{\normalfont\ssecfnt\bfseries}{\thesubsection}{1em}{}

\titlespacing*{\chapter} {0pt}{50pt}{40pt}
\titlespacing*{\section} {0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\titlespacing*{\subsection} {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\begin{document}
\blinddocument
\blinddocument

\end{document}

相关内容