> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ko/document-structure/01-sections-and-chapters.md).

# 섹션과 장

## 소개

문서는 보통 “논리적 구조”의 어떤 형태, 즉 내용을 체계화하기 위한 장, 절, 하위 절 등으로 나뉩니다. LaTeX는 문서 구조를 만들 수 있게 해 주며, 절 구분과 번호 매기기를 사용자 지정할 수도 있습니다. 문서를 구성하는 데 사용할 수 있는 명령은 사용 중인 문서 클래스에 따라 다르지만, 가장 간단한 구성 형식인 절 구분은 모든 형식에서 사용할 수 있습니다.

## 기본 예제

다음 기본 예제를 통해 `\section{*section title*}` 명령을 살펴보겠습니다. 이 명령은 새 절의 시작을 표시하며, 절의 이름은 `*section title*`입니다. 절 번호는 자동으로 매겨지며, 사용자 지정하거나 비활성화할 수 있습니다.

```latex
\documentclass{article}
\usepackage{blindtext}

\title{Sections and Chapters}
\author{Overleaf}
\date{\today}

\begin{document}
\maketitle
\section{Introduction}

이것은 첫 번째 절입니다.

\blindtext

\section{Second Section}
이것은 두 번째 절입니다

\blindtext
\end{document}
```

[Overleaf에서 이 예제를 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Basic+document+structure+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%0A%5Ctitle%7BSections+and+Chapters%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7B%5Ctoday%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%5Csection%7BIntroduction%7D%0A%0AThis+is+the+first+section.%0A%0A%5Cblindtext%0A%0A%5Csection%7BSecond+Section%7D%0AThis+is+the+second+section%0A%0A%5Cblindtext%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![섹션 및 장 예제](/files/737d746f299ae01697dcf6fad58654f49bf8b647)

## 문서의 절 구분

LaTeX는 문서의 장과 절을 구성하고, 번호를 매기고, 색인화할 수 있습니다. 문서 클래스에 따라 절을 정의할 수 있는 깊이는 최대 7단계입니다:

|    |                                 |
| -- | ------------------------------- |
| -1 | `\part{part}`                   |
| 0  | `\chapter{chapter}`             |
| 1  | `\section{section}`             |
| 2  | `\subsection{subsection}`       |
| 3  | `\subsubsection{subsubsection}` |
| 4  | `\paragraph{paragraph}`         |
| 5  | `\subparagraph{subparagraph}`   |

보통 `\section` 이 대부분의 문서에서 최상위 문서 명령입니다. 그러나 보고서나 책 같은 긴 문서에서는 이것이 `\chapter` 또는 `\part`.

## 번호가 매겨진 절과 번호가 없는 절

번호가 없는 장, 절, 하위 절 등을 만들려면 명령 끝, 여는 중괄호 앞에 별표(`*`)를 추가하세요. 이것들은 목차에 들어가지 않습니다. 다음은 앞의 첫 번째 예제를 이번에는 `\section*` 대신 사용한 예입니다. `\section`:

```latex
\documentclass{article}
\usepackage{blindtext}

\title{Sections and Chapters}
\author{Overleaf}
\date{\today}

\begin{document}
\maketitle
\section*{Introduction}

이것은 첫 번째 절입니다.

\blindtext

\section*{Second Section}
이것은 두 번째 절입니다

\blindtext
\end{document}
```

[Overleaf에서 이 예제를 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+with+unnumbered+sections\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%0A%5Ctitle%7BSections+and+Chapters%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7B%5Ctoday%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%5Csection%2A%7BIntroduction%7D%0A%0AThis+is+the+first+section.%0A%0A%5Cblindtext%0A%0A%5Csection%2A%7BSecond+Section%7D%0AThis+is+the+second+section%0A%0A%5Cblindtext%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![번호 없는 절의 예](/files/1125732571992ae6b6300a5aadb39896409d7132)

### 목차에서 번호 없는 절

목차에 번호 없는 절을 추가하려면 `\addcontentsline` 명령을 다음과 같이 사용하세요:

```latex
\addcontentsline{toc}{section}{Title of the section}
```

다음을 사용한 예는 다음과 같습니다. `\addcontentsline` 하지만 다음 문서를 참조하세요. [목차](/latex/ko/document-structure/02-table-of-contents.md) 자세한 정보와 예제는

```latex
\documentclass{article}
\title{Sections and Chapters}
\author{Overleaf}
\date{\today}

\begin{document}
\maketitle
\tableofcontents

\newcommand\shortlorem{Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}

\section{Introduction}
이것은 첫 번째 절입니다(번호 있음).

\shortlorem
\addcontentsline{toc}{section}{Unnumbered Section}
\section*{Unnumbered Section}
번호 없는 절

\shortlorem

\section{Second section}
두 번째 번호가 매겨진 절입니다.

\shortlorem
\end{document}
```

[Overleaf에서 이 예제를 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+of+unnumbered+sections+in+the+TOC\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Ctitle%7BSections+and+Chapters%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7B%5Ctoday%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%5Ctableofcontents%0A%0A%5Cnewcommand%5Cshortlorem%7BLorem+ipsum+dolor+sit+amet%2C+consectetur+adipiscing+elit%2C+sed+do+eiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.+Ut+enim+ad+minim+veniam%2C+quis+nostrud+exercitation+ullamco+laboris+nisi+ut+aliquip+ex+ea+commodo+consequat.%7D%0A%0A%5Csection%7BIntroduction%7D%0AThis+is+the+first+section+%28numbered%29.%0A%0A%5Cshortlorem%0A%5Caddcontentsline%7Btoc%7D%7Bsection%7D%7BUnnumbered+Section%7D%0A%5Csection%2A%7BUnnumbered+Section%7D%0AAn+unnumbered+section%0A%0A%5Cshortlorem%0A%0A%5Csection%7BSecond+section%7D%0AThe+second+numbered+section.%0A%0A%5Cshortlorem%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![TOC에서의 번호 없는 절](/files/55ac8941d666a0338a97813e2182f98f0f3cdec6)

## 책/보고서의 장과 절

앞서 언급했듯이 `\chapter` 는 책과 보고서에서 사용할 수 있습니다.

### report 클래스

아래에서 예제를 볼 수 있습니다. `보고서` Overleaf 문서에서 가져온 텍스트를 사용한 [LuaTeX 소개(1부): 그것은 무엇이며—무엇이 그렇게 다른가?](/latex/ko/in-depth-articles/07-an-introduction-to-luatex-part-1-what-is-it-and-what-makes-it-so-different.md)

```latex
\documentclass{report}
\title{Sections and Chapters}
\author{Overleaf}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\chapter{Lua\TeX 소개}

\section{그것은 무엇이며—무엇이 그렇게 다른가?}
Lua\TeX{}는 \textit{도구 모음}입니다. 즉, 다양한 문서를 구성(조판)하는 데 사용할 수 있는 정교한 소프트웨어 도구와 구성 요소를 포함하고 있습니다. 이 글의 부제는 Lua\TeX{}에 대해 두 가지 질문을 던집니다: 그것은 무엇이며—무엇이 그렇게 다른가? “그것은 무엇인가?”라는 질문에 대한 답은 분명해 보일 수 있습니다: “그것은 \TeX{} 조판 엔진입니다!” 실제로 그렇습니다. 그러나 더 넓은 관점에서, 그리고 이 글의 저자가 지지하는 관점은 Lua\TeX{}가 매우 다재다능한 \TeX 기반 문서 작성 및 엔지니어링 시스템이라는 것입니다.

\subsection{Lua\TeX 설명: 어디서 시작할까?}
Lua\TeX{}에 관한 이 첫 번째 글의 목표는 이 TeX 엔진이 무엇을 제공하는지, 그리고 왜/어떻게 그 설계가 사용자가 복잡한 조판 및 디자인 문제에 대한 다양한 해결책을 구축/설계/창조할 수 있게 하는지 이해할 수 있는 맥락을 제공하는 것입니다—아마도 어느 정도는 “미래 대응성”도 제공할 것입니다

\chapter{Lua\TeX: 배경과 역사}
\section{Introduction}
Lua\TeX{}는 \TeX{}의 용어로 보면, 10년 넘게 활발히 개발되어 왔음에도 “새내기”입니다.

\subsection{Lua\TeX: \TeX의 “블랙박스” 열기}
Knuth의 원래 \TeX{} 프로그램은 오늘날 사용되는 모든 현대 \TeX{} 엔진의 공통 조상이며, Lua\TeX{}는 사실상 가장 최근의 진화 단계입니다. pdf\TeX{} 프로그램에서 파생되었지만, 많은 추가 기능을 제공하는 강력한 소프트웨어 구성 요소가 더해졌습니다.
\end{document}
```

[Overleaf에서 이 예제를 열어 보세요( `lualatex`)](<https://www.overleaf.com/docs?engine=lualatex\&snip_name=Example+of+a+LaTeX+report\&snip=\documentclass{report}&#xA;\title{Sections+and+Chapters}&#xA;\author{Overleaf}&#xA;\date{\today}&#xA;\begin{document}&#xA;\maketitle&#xA;\tableofcontents&#xA;\chapter{An+Introduction+to+Lua\TeX}&#xA;&#xA;\section{What+is+it—and+what+makes+it+so+different?}&#xA;Lua\TeX{}+is+a+\textit{toolkit}—it+contains+sophisticated+software+tools+and+components+with+which+you+can+construct+(typeset)+a+wide+range+of+documents.+The+sub-title+of+this+article+also+poses+two+questions+about+Lua\TeX:+What+is+it—and+what+makes+it+so+different?+The+answer+to+“What+is+it?”+may+seem+obvious:+“It’s+a+\TeX{}+typesetting+engine!”+Indeed+it+is,+but+a+broader+view,+and+one+to+which+this+author+subscribes,+is+that+Lua\TeX{}+is+an+extremely+versatile+\TeX-based+document+construction+and+engineering+system.&#xA;&#xA;\subsection{Explaining+Lua\TeX:+Where+to+start?}&#xA;The+goal+of+this+first+article+on+Lua\TeX{}+is+to+offer+a+context+for+understanding+what+this+TeX+engine+provides+and+why/how+its+design+enables+users+to+build/design/create+a+wide+range+of+solutions+to+complex+typesetting+and+design+problems—perhaps+also+offering+some+degree+of+“future+proofing”+&#xA;&#xA;\chapter{Lua\TeX:+Background+and+history}&#xA;\section{Introduction}&#xA;Lua\TeX{}+is,+in+\TeX{}+terms,+“the+new+kid+on+the+block”+despite+having+been+in+active+development+for+over+10+years.&#xA;&#xA;\subsection{Lua\TeX:+Opening+up+\TeX’s+“black+box”}&#xA;Knuth’s+original+\TeX{}+program+is+the+common+ancestor+of+all+modern+\TeX{}+engines+in+use+today+and+Lua\TeX{}+is,+in+effect,+the+latest+evolutionary+step:+derived+from+the+pdf\TeX{}+program+but+with+the+addition+of+some+powerful+software+components+which+bring+a+great+deal+of+extra+functionality.&#xA;\end{document}>)

이 예제는 다음과 같은 출력을 생성합니다—여기서는 2–4페이지를 보여 줍니다. 페이지 이미지를 겹쳐서 표시를 쉽게 했습니다:

![전형적인 LaTeX 보고서](/files/4b1173554f7ed10d1a24540da2b6875d7f5a433c)

### book 클래스

다음 예제는 다음의 텍스트를 재현합니다. `보고서` 예제이지만 `\documentclass{book}`, 장, 절, 하위 절 및 하위 하위 절을 포함합니다. Overleaf에서 예제를 열면 `\subsubsection` 로 생성된 하위 하위 절이 *번호가 매겨지지 않는다는 것을 볼 수 있습니다. 이것은* book `클래스의 설계에 따른 것입니다. 이 동작을 바꾸고 싶다면, 문서 서문에 다음 명령을 추가하세요:` \setcounter{secnumdepth}{3}

```latex
\setcounter{secnumdepth}{3}
```

```latex
\documentclass{book}
\title{Sections and Chapters}
\author{Overleaf}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\part{Lua\TeX 역사}

\chapter{Lua\TeX 소개}

\section{그것은 무엇이며—무엇이 그렇게 다른가?}
Lua\TeX{}는 \textit{도구 모음}입니다. 즉, 다양한 문서를 구성(조판)하는 데 사용할 수 있는 정교한 소프트웨어 도구와 구성 요소를 포함하고 있습니다. 이 글의 부제는 Lua\TeX{}에 대해 두 가지 질문을 던집니다: 그것은 무엇이며—무엇이 그렇게 다른가? “그것은 무엇인가?”라는 질문에 대한 답은 분명해 보일 수 있습니다: “그것은 \TeX{} 조판 엔진입니다!” 실제로 그렇습니다. 그러나 더 넓은 관점에서, 그리고 이 글의 저자가 지지하는 관점은 Lua\TeX{}가 매우 다재다능한 \TeX 기반 문서 작성 및 엔지니어링 시스템이라는 것입니다.

\subsection{Lua\TeX 설명: 어디서 시작할까?}
Lua\TeX{}에 관한 이 첫 번째 글의 목표는 이 TeX 엔진이 무엇을 제공하는지, 그리고 왜/어떻게 그 설계가 사용자가 복잡한 조판 및 디자인 문제에 대한 다양한 해결책을 구축/설계/창조할 수 있게 하는지 이해할 수 있는 맥락을 제공하는 것입니다—아마도 어느 정도는 “미래 대응성”도 제공할 것입니다

\chapter{Lua\TeX: 배경과 역사}
\section{Introduction}
Lua\TeX{}는 \TeX{}의 용어로 보면, 10년 넘게 활발히 개발되어 왔음에도 “새내기”입니다.

\subsection{Lua\TeX: \TeX의 “블랙박스” 열기}
Knuth의 원래 \TeX{} 프로그램은 오늘날 사용되는 모든 현대 \TeX{} 엔진의 공통 조상이며, Lua\TeX{}는 사실상 가장 최근의 진화 단계입니다. pdf\TeX{} 프로그램에서 파생되었지만, 많은 추가 기능을 제공하는 강력한 소프트웨어 구성 요소가 더해졌습니다.

\subsubsection{Lua\TeX{}가 \texttt{\string\directlua}를 처리하는 방법: 첫 번째 살펴보기}
\verb|\directlua{<code>}|에 제공된 ⟨code⟩는 먼저 위에서 논의한 과정과 계산을 사용해 토큰으로 변환되며, 그 토큰 시퀀스는 토큰 목록에 저장됩니다.
\end{document}
```

[출력을 보려면 **Overleaf에서 이 예제를 여세요** ( `**lualatex**`)](<https://www.overleaf.com/docs?engine=lualatex\&snip_name=Example+of+a+LaTeX+book\&snip=\documentclass{book}&#xA;\title{Sections+and+Chapters}&#xA;\author{Overleaf}&#xA;\date{\today}&#xA;\begin{document}&#xA;\maketitle&#xA;\tableofcontents&#xA;\part{History+of+Lua\TeX}&#xA;&#xA;\chapter{An+Introduction+to+Lua\TeX}&#xA;&#xA;\section{What+is+it—and+what+makes+it+so+different?}&#xA;Lua\TeX{}+is+a+\textit{toolkit}—it+contains+sophisticated+software+tools+and+components+with+which+you+can+construct+(typeset)+a+wide+range+of+documents.+The+sub-title+of+this+article+also+poses+two+questions+about+Lua\TeX:+What+is+it—and+what+makes+it+so+different?+The+answer+to+“What+is+it?”+may+seem+obvious:+“It’s+a+\TeX{}+typesetting+engine!”+Indeed+it+is,+but+a+broader+view,+and+one+to+which+this+author+subscribes,+is+that+Lua\TeX{}+is+an+extremely+versatile+\TeX-based+document+construction+and+engineering+system.&#xA;&#xA;\subsection{Explaining+Lua\TeX:+Where+to+start?}&#xA;The+goal+of+this+first+article+on+Lua\TeX{}+is+to+offer+a+context+for+understanding+what+this+TeX+engine+provides+and+why/how+its+design+enables+users+to+build/design/create+a+wide+range+of+solutions+to+complex+typesetting+and+design+problems—perhaps+also+offering+some+degree+of+“future+proofing”+&#xA;&#xA;\chapter{Lua\TeX:+Background+and+history}&#xA;\section{Introduction}&#xA;Lua\TeX{}+is,+in+\TeX{}+terms,+“the+new+kid+on+the+block”+despite+having+been+in+active+development+for+over+10+years.&#xA;&#xA;\subsection{Lua\TeX:+Opening+up+\TeX’s+“black+box”}&#xA;Knuth’s+original+\TeX{}+program+is+the+common+ancestor+of+all+modern+\TeX{}+engines+in+use+today+and+Lua\TeX{}+is,+in+effect,+the+latest+evolutionary+step:+derived+from+the+pdf\TeX{}+program+but+with+the+addition+of+some+powerful+software+components+which+bring+a+great+deal+of+extra+functionality.&#xA;&#xA;\subsubsection{How+Lua\TeX{}+processes+\texttt{\string\directlua}:+A+first+look}&#xA;The+⟨code⟩+provided+to+\verb|\directlua{\<code\>}|+is+first+converted+to+tokens+using+the+processes+and+calculations+discussed+above;+that+sequence+of+tokens+is+stored+in+a+token+list.&#xA;\end{document}>)

## 장과 절 사용자 지정

다음을 사용할 수 있습니다. [`titlesec`](https://ctan.org/pkg/titlesec?lang=en) 패키지를 사용하면 장, 절, 하위 절의 스타일을 쉽게 사용자 지정할 수 있습니다.

```latex
\documentclass[a4paper,12pt]{book}
\usepackage[T1]{fontenc}
\usepackage{titlesec}

\titleformat
{\chapter} % command
[display] % shape
{\bfseries\Large\itshape} % format
{Story No. \ \thechapter} % label
{0.5ex} % sep
{
    \rule{\textwidth}{1pt}
    \vspace{1ex}
    \centering
} % before-code
[
\vspace{-0.5ex}%
\rule{\textwidth}{0.3pt}
] % after-code

\titleformat{\section}[wrap]
{\normalfont\bfseries}
{\thesection.}{0.5em}{}

\titlespacing{\section}{12pc}{1.5ex plus .1ex minus .2ex}{1pc}

\begin{document}
\chapter{시작해 봅시다}
\section{첫 번째 시도}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris...

\section{두 번째 시도}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris...

\end{document}
```

[이 `titlesec` 예제를 Overleaf에서 여세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=titlesec+example\&snip=%5Cdocumentclass%5Ba4paper%2C12pt%5D%7Bbook%7D%0A%5Cusepackage%5BT1%5D%7Bfontenc%7D%0A%5Cusepackage%7Btitlesec%7D%0A%0A%5Ctitleformat%0A%7B%5Cchapter%7D+%25+command%0A%5Bdisplay%5D+%25+shape%0A%7B%5Cbfseries%5CLarge%5Citshape%7D+%25+format%0A%7BStory+No.+%5C+%5Cthechapter%7D+%25+label%0A%7B0.5ex%7D+%25+sep%0A%7B%0A++++%5Crule%7B%5Ctextwidth%7D%7B1pt%7D%0A++++%5Cvspace%7B1ex%7D%0A++++%5Ccentering%0A%7D+%25+before-code%0A%5B%0A%5Cvspace%7B-0.5ex%7D%25%0A%5Crule%7B%5Ctextwidth%7D%7B0.3pt%7D%0A%5D+%25+after-code%0A%0A%0A%5Ctitleformat%7B%5Csection%7D%5Bwrap%5D%0A%7B%5Cnormalfont%5Cbfseries%7D%0A%7B%5Cthesection.%7D%7B0.5em%7D%7B%7D%0A%0A%5Ctitlespacing%7B%5Csection%7D%7B12pc%7D%7B1.5ex+plus+.1ex+minus+.2ex%7D%7B1pc%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cchapter%7BLet%27s+begin%7D%0A%5Csection%7BFirst+Attempt%7D%0A%0ALorem+ipsum+dolor+sit+amet%2C+consectetur+adipiscing+elit%2C+sed+do+%0Aeiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.+Ut+%0Aenim+ad+minim+veniam%2C+quis+nostrud+exercitation+ullamco+laboris...%0A%0A%5Csection%7BSecond+attempt%7D%0A%0ALorem+ipsum+dolor+sit+amet%2C+consectetur+adipiscing+elit%2C+sed+do+%0Aeiusmod+tempor+incididunt+ut+labore+et+dolore+magna+aliqua.+Ut+%0Aenim+ad+minim+veniam%2C+quis+nostrud+exercitation+ullamco+laboris...%0A%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![Titlesecolv2.png](/files/4cf1207dcbf9b73b53c4344db15e6b592305fc2d)

### titlesec 명령

두 가지 일반적인 명령이 있습니다:

```latex
 \titleformat{<command>}[<shape>]{<format>}{<label>}{<sep>}{<before-code>}[<after-code>]
```

여기서 `[<shape>]` 와 `[<after-code>]` 는 선택적 매개변수이며, 다음과 같습니다:

* `<command>` 재정의할 섹션 명령어입니다: `\part`, `\chapter`, `\section`, `\subsection`, `\subsubsection`, `\paragraph` 또는 `\subparagraph`.
* `<shape>` 섹션 단락의 모양입니다. 가능한 값은 다음과 같습니다: `hang`, `block`, `display`, `runin`, `leftmargin`, `rightmargin`, `drop`, `wrap` 와 `frame`.
* `<format>` 제목, 레이블, 텍스트에 적용할 형식입니다. 예를 들면 `\normalfont\Large\bfseries`
* `<label>` 섹션 레이블을 지정합니다.
* `<sep>` 레이블과 제목 본문 사이의 수평 간격이며, 길이여야 하고 비어 있으면 안 됩니다.
* `<before-code>` 제목 본문 앞에 오는 코드입니다.
* `<after-code>` 제목 본문 뒤에 오는 코드입니다.

와

```latex
 \titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}
```

여기서:

* `<left>` 왼쪽 여백을 늘립니다.
* `<before-sep>` 제목 앞의 세로 공간입니다.
* `<after-sep>` 제목과 비섹션 텍스트 사이의 간격입니다.

이 명령의 별표 버전(`\titlespacing*`)은 제목 뒤에 오는 문단의 들여쓰기를 없앱니다.

## 추가 읽을거리

자세한 정보는 다음을 참조하세요:

* [LaTeX에서 문서 만들기](/latex/ko/latex/01-learn-latex-in-30-minutes.md)
* [굵게, 이탤릭체, 밑줄](/latex/ko/latex/03-bold-italics-and-underlining.md)
* [목차](/latex/ko/document-structure/02-table-of-contents.md)
* [절과 수식 상호 참조](/latex/ko/document-structure/03-cross-referencing-sections-equations-and-floats.md)
* [대규모 프로젝트에서의 관리](/latex/ko/document-structure/07-management-in-a-large-project.md)
* [여러 파일로 이루어진 LaTeX 프로젝트](/latex/ko/document-structure/08-multi-file-latex-projects.md)
* [하이퍼링크](/latex/ko/document-structure/09-hyperlinks.md)
* [페이지 번호 매기기](/latex/ko/formatting/03-page-numbering.md)
* [단면 인쇄 및 양면 인쇄 문서](/latex/ko/formatting/08-single-sided-and-double-sided-documents.md)
* [다단](/latex/ko/formatting/09-multiple-columns.md)
* [카운터](/latex/ko/formatting/10-counters.md)
* [글꼴 크기, 글꼴 패밀리, 스타일](/latex/ko/fonts/01-font-sizes-families-and-styles.md)
* [`titlesec` 패키지 매뉴얼](http://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ko/document-structure/01-sections-and-chapters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
