
我想使用更大的字體(14pt)來顯示零件的名稱和編號,目錄除外。我知道我必須使用該包,titlesec
但我不明白如何使用。這裡的不同班級有一個類似的問題:控製字體大小 \part。該軟體包sectsty
不適用於 amsart。
\documentclass[12pt]{amsart}
\newtheorem{thm}{Theorem}[section]
\renewcommand{\thethm}{\Roman{part}.\arabic{section}.\arabic{thm}}
\renewcommand{\thepart}{\Roman{part}}
\begin{document}
\setcounter{tocdepth}{1}
\tableofcontents
\part{blabla}
\section{blablabla}
\begin{thm}
The integer $1+1$ is finite.
\end{thm}
\begin{thm}
The integer $1+1$ is less than $1000$.
\end{thm}
\end{document}
答案1
與amsart
你不能使用titlesec
。
只需找到 的定義\part
並添加
\large
\let\@secnumfont\relax
(後者是為了在標題中使用粗體表示零件號)。
\documentclass[12pt]{amsart}
\makeatletter
\def\part{%
\@startsection{part}
{0}
{\z@}
{\linespacing\@plus\linespacing}
{.5\linespacing}
{\let\@secnumfont\relax\normalfont\large\bfseries\raggedright}%
}
\show\@seccntformat
\makeatother
\newtheorem{thm}{Theorem}[section]
\renewcommand{\thethm}{\Roman{part}.\arabic{section}.\arabic{thm}}
\renewcommand{\thepart}{\Roman{part}}
\begin{document}
\setcounter{tocdepth}{1}
\tableofcontents
\part{blabla}
\section{blablabla}
\begin{thm}
The integer $1+1$ is finite.
\end{thm}
\begin{thm}
The integer $1+1$ is less than $1000$.
\end{thm}
\end{document}