Latex 章节和章节标题的字体大小

Latex 章节和章节标题的字体大小,latex,Latex,我试图使标题第1章在中间对齐,章节标题在左边对齐 \titleformat{\chapter}[display] {\large\bfseries}{\filcenter\chaptertitlename\ \thechapter} {20pt}{\MakeUppercase{#1}} \titlespacing*{\chapter} {0pt}{0pt}{20pt} %controls vertical margins on title 但是,我怎样才能改变字体大小呢?也就是说

我试图使标题第1章在中间对齐,章节标题在左边对齐

\titleformat{\chapter}[display]
  {\large\bfseries}{\filcenter\chaptertitlename\ \thechapter}
  {20pt}{\MakeUppercase{#1}}
\titlespacing*{\chapter}
  {0pt}{0pt}{20pt}  %controls vertical margins on title

但是,我怎样才能改变字体大小呢?也就是说,例如,我需要比标题简介小的第1章。

您可以通过在第1章前面添加命令来更改字体大小,如下所示:

\documentclass{book}

\usepackage[explicit]{titlesec}
\titleformat{\chapter}[display]
  {\large\bfseries}{\filcenter\chaptertitlename\ \thechapter}
  {20pt}{\Huge\MakeUppercase{#1}}
\titlespacing*{\chapter}
  {0pt}{0pt}{20pt}  %controls vertical margins on title

\usepackage{lipsum}

\begin{document}

\chapter{Introduction}

\lipsum[1]

\end{document}

您可以通过在1之前添加命令来更改字体大小,如下所示:

\documentclass{book}

\usepackage[explicit]{titlesec}
\titleformat{\chapter}[display]
  {\large\bfseries}{\filcenter\chaptertitlename\ \thechapter}
  {20pt}{\Huge\MakeUppercase{#1}}
\titlespacing*{\chapter}
  {0pt}{0pt}{20pt}  %controls vertical margins on title

\usepackage{lipsum}

\begin{document}

\chapter{Introduction}

\lipsum[1]

\end{document}
您可以制作一个显示您使用的documentclass和packages的图表吗?您可以制作一个显示您使用的documentclass和packages的图表吗?