
私はすべてのセクションタイトルを中央揃えにするLaTeXテンプレートを使用しています。これらのセクションタイトルを左揃えにしたいのですが、方法がわかりません。試してみました
\begin{flushleft}
\section{\textbf{Introduction and Background}}
\end{flushleft}
しかし、セクションタイトルには影響がありません(つまり、中央に配置されています)。
\begin{flushleft}
\textbf{Introduction and Background}
\end{flushleft}
「概要と背景」という単語が左揃えになっていますが、これはもはやセクションのタイトルではないため、セクション番号を使用した番号付けがすべてめちゃくちゃになっています。
私は LaTeX を初めて使用するので、簡単に説明してください。
答え1
\documentclass{amsart}
\makeatletter
\def\specialsection{\@startsection{section}{1}%
\z@{\linespacing\@plus\linespacing}{.5\linespacing}%
% {\normalfont\centering}}% DELETED
{\normalfont}}% NEW
\def\section{\@startsection{section}{1}%
\z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
% {\normalfont\scshape\centering}}% DELETED
{\normalfont\scshape}}% NEW
\makeatother
\begin{document}
\section{Introduction and Background}
\end{document}
セクションタイトル内で書式マクロを使用する場合は、
\section{\textbf{Introduction and Background}}
一般的な変更を行うには推奨される方法ではありません。代わりに
\normalfont\scshape\bfseries
の定義では\section
(必ず太字の小文字大文字のフォントを使用してください)。
こちらもご覧ください\makeatletter と \makeatother は何をしますか?