자신의 챕터 및 섹션

자신의 챕터 및 섹션

아마 질문이 엄청나게 많을 거라는 걸 알아요좋다하지만 나 혼자서는 전체 내용을 알 수 없습니다.

다음과 같이 약간 더 큰 글꼴로 자신의 장이나 섹션을 정의하는 방법을 찾고 있습니다.

1.첫 번째 운동

1a.운동의 첫 번째 부분


  • 헤더(예: 장)에서 사용할 수 있습니다.

  • 자동 숫자 계산(1a. 1b. ...)

답변1

다음은 문제를 어느 정도 해결합니다.

당신이 사용하면 일이 매우 쉽습니다타이틀섹패키지.

다음은 관련 코드입니다. 장, 섹션, 하위 섹션의 번호 매기기를 제어하고 싶습니다(직접 추가했습니다). 그런 다음 표시 방법을 제어합니다. 아마도 간격도 제어하고 싶을 수도 있습니다.

귀하의 취향에 맞게 필요한 조정을 수행할 수 있습니다.

명령에 대한 자세한 내용은 섹션 3.1 및 3.2를 참조하세요.패키지 문서.


\documentclass{book}

\usepackage{times}

\usepackage{titlesec}

% Control number formats
\def\thesection{\arabic{chapter}\alph{section}}
\def\thesubsection{\arabic{chapter}\alph{section}(\roman{subsection})}

% Control display formats
\titleformat{\chapter}[block]{}{\large\thechapter.\ }{0.0mm}{\large}
\titleformat{\section}[block]{}{\large\thesection.\ }{0.0mm}{\large}
\titleformat{\subsection}[block]{}{\thesubsection.\ }{0.0mm}{}

% Control spacing
\titlespacing{\chapter}{0.0mm}{\bigskipamount}{\medskipamount}
\titlespacing{\section}{0.0mm}{\medskipamount}{\smallskipamount}
\titlespacing{\subsection}{0.0mm}{\smallskipamount}{\smallskipamount}

\parindent 0.0mm

\begin{document}

\chapter{First exercise}
This exercise in on\dots

\section{First part of exersice}
In the first part you need to answer\dots

\section{Second part of exersice}
The second part has a number of subparts\dots

\subsection{Second One}

Please tell us\dots

\subsection{Second Two}

And tell us\dots

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보