
TOC を除いて、名前とパーツの番号に大きなフォント (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}