1. chapter_name章の見出しをとして揃えたいのですがcenter、どうすればいいでしょうか? ネットで答えを探しましたが、両方の要件を満たす答えは得られず、個別の答えしか得られませんでした。どうか助けてください。よろしくお願いします...
答え1
bookまたはreportクラスでtitlesecパッケージを使用する場合の例を次に示します。
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[block]
{\normalfont\Huge\bfseries\filcenter}
{\thechapter.}
{10pt}
{\Huge}
\titleformat{name=\chapter,numberless}[block]
{\normalfont\Huge\bfseries\filcenter}
{}
{0pt}
{\Huge}
\titlespacing*{\chapter} {0pt}{20pt}{20pt} %% adjust these as you like
\titlespacing*{name=\chapter,numberless} {0pt}{20pt}{20pt} %% adjust these as you like
\begin{document}
\tableofcontents
\chapter{Introduction}
\end{document}
番号なしの章

番号付き章



