部品名と番号のフォントサイズの選択

部品名と番号のフォントサイズの選択

TOC を除いて、名前とパーツの番号に大きなフォント (14pt) を使用したいと思います。パッケージを使用する必要があることはわかっていますtitlesecが、方法がわかりません。別のクラスに関する同様の質問がここにあります。フォントサイズの制御 \partこのパッケージはsectstyamsart では動作しません。

\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追加するだけです

  1. \large
  2. \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}

ここに画像の説明を入力してください

関連情報