왼쪽 정렬 섹션 제목

왼쪽 정렬 섹션 제목

나는 모든 섹션 제목을 가운데 정렬하는 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는 무엇을 하나요?

관련 정보