> 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/formatting/09-multiple-columns.md).

# 다단

## 소개

두 단 문서는 매개변수 `\twocolumn` 를 document class 선언에 전달하면 쉽게 만들 수 있습니다. 열 배치에서 더 많은 유연성이 필요하거나 여러 열을 가진 문서를 만들고 싶다면, 패키지 `multicol` 가 이를 위한 명령 집합을 제공합니다. 이 글에서는 다음 패키지를 사용하는 방법을 설명합니다. `multicol` 패키지로, 다음의 기본 예제부터 시작합니다:

```latex
\documentclass{article}
\usepackage{blindtext}
\usepackage{multicol}
\title{다단 열 데모}
\author{Overleaf}
\date{2021년 4월}

\begin{document}
\maketitle

\begin{multicols}{3}
[
\section{첫 번째 섹션}
모든 인간의 일은 쇠퇴하기 마련이다. 운명이 부르면 군주도 따라야 한다.
]
\blindtext\blindtext
\end{multicols}

\end{document}
```

[이 예제를 `multicols` Overleaf의 예](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=multicols+package+demo\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%5Cusepackage%7Bmulticol%7D%0A%5Ctitle%7BMulticols+Demo%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7BApril+2021%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%0A%5Cbegin%7Bmulticols%7D%7B3%7D%0A%5B%0A%5Csection%7BFirst+Section%7D%0AAll+human+things+are+subject+to+decay.+And+when+fate+summons%2C+Monarchs+must+obey.%0A%5D%0A%5Cblindtext%5Cblindtext%0A%5Cend%7Bmulticols%7D%0A%0A%5Cend%7Bdocument%7D)

![3단 열 예제](/files/300a72d28e6e975ced003b4c468095d8366b266b)

패키지를 불러오려면 다음 줄을

```latex
\usepackage{multicol}
```

프리앰블에 추가합니다. 패키지를 불러온 후에는 환경 `multicols` 을 사용할 수 있습니다. 이 환경은 두 개의 매개변수를 받습니다:

* 열의 수. 이 매개변수는 중괄호 안에 전달해야 하며, 예제에서는 값이 3입니다.
* "헤더 텍스트"로, 대괄호 사이에 삽입됩니다. 이는 선택 사항이며 다단 텍스트의 상단에 표시됩니다. 여기에는 그림과 표 같은 떠다니는 요소를 제외하고 어떤 LaTeX 명령이든 사용할 수 있습니다. 예제에서는 섹션 제목과 짧은 문단이 여기에 설정됩니다.

태그 안에 포함된 텍스트는 `\begin{multicols}` 및 `\end{multicols}` 다단 형식으로 출력됩니다.

## 열 간격

열 간격은 다음에 의해 결정됩니다 `\columnsep`. 아래 예제를 보세요:

```latex
\documentclass{article}
\usepackage{blindtext}
\usepackage{multicol}
\setlength{\columnsep}{1cm}
\title{두 번째 multicols 데모}
\author{Overleaf}
\date{2021년 4월}

\begin{document}
\maketitle

\begin{multicols}{2}
[
\section{첫 번째 섹션}
모든 인간의 일은 쇠퇴하기 마련이다. 운명이 부르면 군주도 따라야 한다.
]
\blindtext\blindtext
\end{multicols}

\end{document}
```

[이 예제를 `multicols` Overleaf의 예](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=multicols+package+demo\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%5Cusepackage%7Bmulticol%7D%0A%5Csetlength%7B%5Ccolumnsep%7D%7B1cm%7D%0A%5Ctitle%7BSecond+multicols+Demo%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7BApril+2021%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%0A%5Cbegin%7Bmulticols%7D%7B2%7D%0A%5B%0A%5Csection%7BFirst+Section%7D%0AAll+human+things+are+subject+to+decay.+And+when+fate+summons%2C+Monarchs+must+obey.%0A%5D%0A%5Cblindtext%5Cblindtext%0A%5Cend%7Bmulticols%7D%0A%0A%5Cend%7Bdocument%7D)

![두 단 열 예제](/files/f2d7c0cc3f17b4b8f6be39498425805f5f3cb270)

여기서, 명령 `\setlength{\columnsep}{1cm}` 이 열 간격을 1cm로 설정합니다. 다음을 보세요 [LaTeX의 길이](/latex/ko/formatting/01-lengths-in-latex.md) 에서 사용 가능한 단위 목록을 보세요.

## 균형이 맞지 않는 열

기본 `multicols` 환경에서는 각 열에 같은 양의 텍스트가 들어가도록 열이 균형 있게 배분됩니다. 이 기본 형식은 별표가 붙은 환경 `multicols*`:

```latex
\documentclass{article}
\usepackage{blindtext}
\usepackage{multicol}
\setlength{\columnsep}{1cm}
\title{두 번째 multicols 데모}
\author{Overleaf}
\date{2021년 4월}
\begin{document}
\maketitle
\begin{multicols*}{3}
[
\section{첫 번째 섹션}
모든 인간의 일은 쇠퇴하기 마련이다. 운명이 부르면 군주도 따라야 한다.
]
\blindtext\blindtext
\end{multicols*}

\end{document}
```

[이 예제를 `multicols` Overleaf의 예](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=multicols+package+demo\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%5Cusepackage%7Bmulticol%7D%0A%5Csetlength%7B%5Ccolumnsep%7D%7B1cm%7D%0A%5Ctitle%7BSecond+multicols+Demo%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7BApril+2021%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0A%5Cbegin%7Bmulticols%2A%7D%7B3%7D%0A%5B%0A%5Csection%7BFirst+Section%7D%0AAll+human+things+are+subject+to+decay.+And+when+fate+summons%2C+Monarchs+must+obey.%0A%5D%0A%5Cblindtext%5Cblindtext%0A%5Cend%7Bmulticols%2A%7D%0A%0A%5Cend%7Bdocument%7D)

![3단 열 데모](/files/e2dd177ccbd895545b9265dfed3bffa6ef822da7)

이 예제를 Overleaf에서 열어 보면, 텍스트가 페이지 끝에 도달할 때까지 한 열에 출력되고, 그런 다음 다음 열에서 계속되며, 이런 식으로 이어지는 것을 볼 수 있습니다.

## 플로팅 요소 삽입

플로팅 요소(표와 그림)는 다단 문서에 다음을 사용하여 삽입할 수 있습니다 `wrapfig` 및 `wraptable`. 다음의 LaTeX 코드 조각은 완전한 LaTeX 문서는 아니지만, 플로팅 요소를 사용하는 방법을 보여줍니다. 아래 코드 아래의 링크를 사용하여 Overleaf에서 컴파일할 수 있는 전체 LaTeX 문서를 여세요.

```latex
\begin{multicols}{2}
[
\section{첫 번째 섹션}
모든 인간의 일은 쇠퇴하기 마련이다. 운명이 부르면 군주도 따라야 한다.
]

안녕하세요, 여기 의미 없는 텍스트가 있습니다. 이 텍스트는 보여 주어야 합니다
인쇄된 텍스트가 이 위치에서 어떻게 보일지 보여줍니다.
이 텍스트를 읽는다면, 아무 정보도 얻지 못할 것입니다. 정말인가요? 거기에
정보가 없나요?  있나요.

\vfill

\begin{wrapfigure}{l}{0.7\linewidth}
\includegraphics[width=\linewidth]{overleaf-logo}
\caption{이것은 Overleaf 로고입니다}
\end{wrapfigure}

이와 같은 더미 텍스트는 선택한 글꼴과, 어떻게
알파벳의 모든 글자를 포함해야 하며,
모두 담을 수 있는지...

\begin{wraptable}{l}{0.7\linewidth}
\centering
\begin{tabular}{|c|c|}
\hline
이름 & ISO \\
\hline
아프가니스탄 & AF \\
알란드 제도 & AX \\
알바니아    &AL  \\
알제리   &DZ \\
아메리칸사모아 & AS \\
안도라 & AD   \\
앙골라 & AO \\
\hline
\end{tabular}
\caption{표, 떠다니는 요소}
\label{table:ta}
\end{wraptable}

\end{multicols}
```

![MulticolumnsEx4OverleafV2.png](/files/f8209dbfdecb6c7975a2a25865ac2f093bb7d419)

[이 예제를 `multicols` Overleaf LaTeX 프로젝트의 예제](https://www.overleaf.com/project/new/template/19510?id=65969509\&templateName=A+multicols+demo\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

다음의 플로트 **multicol** 패키지는 현재 버전에서 제대로 지원되지 않습니다. 기존의 `figure*` 및 `table*` 환경은 삽입된 뒤 다음 페이지의 맨 위나 맨 아래에만 나타나며, 레이아웃을 깨뜨립니다. 여기 제시된 예제는 임시방편이지만, 몇 가지 거친 부분이 있을 수 있습니다. 예를 들어, 플로트 너비를 다음으로 설정하면 `\linewidth` 이상한 텍스트 겹침이 발생합니다. 그렇다 해도, 아래는 명령에 대한 간단한 설명입니다:

* `\usepackage{wrapfig}`. 패키지를 불러오려면 이 줄을 프리앰블에 넣으세요 **wrapfig**
* 환경 `wrapfigure` 는 텍스트에 감싸인 그림을 삽입합니다. 이 환경에 대한 자세한 정보와 추가 예제는 다음을 보세요 [이미지와 표 배치하기](/latex/ko/figures-and-tables/02-positioning-images-and-tables.md).
* 환경 `wraptable` 는 다음에 해당합니다 *wrapfigure* 하지만 표용입니다. 다음을 보세요 [이미지와 표 배치하기](/latex/ko/figures-and-tables/02-positioning-images-and-tables.md) 를 참조하세요.

## 세로 구분선 삽입

일부 문서에서는 가독성을 높이기 위해 열 구분선으로 세로 구분선을 삽입할 수 있습니다:

```latex
\documentclass{article}
\usepackage{blindtext}
\usepackage{multicol}
\usepackage{color}
\setlength{\columnseprule}{1pt}
\def\columnseprulecolor{\color{blue}}

\begin{document}

\begin{multicols}{3}
[
\section{첫 번째 섹션}
모든 인간의 일은 쇠퇴하기 마련이다. 운명이 부르면 군주도 따라야 한다.
]
안녕하세요, 여기 의미 없는 텍스트가 있습니다. 이 텍스트는 보여 주어야 합니다
인쇄된 텍스트가 이 위치에서 어떻게 보일지 보여줍니다.

이 텍스트를 읽는다면, 아무 정보도 얻지 못할 것입니다. 정말인가요? 거기에
정보가 없나요?  있나요.

\columnbreak
\blindtext
이것은 새 열에 들어갑니다. 여기 의미 없는 텍스트가 있습니다. 이 텍스트
는 이 위치에서 인쇄된 텍스트가 어떻게 보일지 보여줘야 합니다.

이 텍스트를 읽는다면, 아무 정보도 얻지 못할 것입니다. 정말인가요? 거기에
정보가 없나요?  있나요...
\end{multicols}

\blindtext

\end{document}
```

[이 예제를 `multicols` Overleaf의 예](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=multicols+package+demo\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bblindtext%7D%0A%5Cusepackage%7Bmulticol%7D%0A%5Cusepackage%7Bcolor%7D%0A%5Csetlength%7B%5Ccolumnseprule%7D%7B1pt%7D%0A%5Cdef%5Ccolumnseprulecolor%7B%5Ccolor%7Bblue%7D%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7Bmulticols%7D%7B3%7D%0A%5B%0A%5Csection%7BFirst+Section%7D%0AAll+human+things+are+subject+to+decay.+And+when+fate+summons%2C+Monarchs+must+obey.%0A%5D%0AHello%2C+here+is+some+text+without+a+meaning.++This+text+should+show+what+%0Aa+printed+text+will+look+like+at+this+place.%0A%0AIf+you+read+this+text%2C+you+will+get+no+information.++Really%3F++Is+there+%0Ano+information%3F++Is+there.%0A%0A%5Ccolumnbreak%0A%5Cblindtext%0AThis+will+be+in+a+new+column%2C+here+is+some+text+without+a+meaning.++This+text+%0Ashould+show+what+a+printed+text+will+look+like+at+this+place.%0A%0AIf+you+read+this+text%2C+you+will+get+no+information.++Really%3F++Is+there+%0Ano+information%3F++Is+there...%0A%5Cend%7Bmulticols%7D%0A%0A%5Cblindtext%0A%0A%5Cend%7Bdocument%7D)

![열 사이 구분선 예제](/files/d463cbef2c718ab999ccb7146a6e79991044f44c)

이 예제를 Overleaf에서 열면 열 구분선을 특정 색으로도 설정할 수 있음을 볼 수 있습니다. 아래는 각 명령에 대한 설명입니다:

**\usepackage{color}.**

이 줄은 문서에서 여러 색상을 사용할 수 있도록 프리앰블에 추가됩니다.

**\setlength{\columnseprule}{1pt}**

이것은 열 구분선으로 사용할 구분선의 너비를 결정하며, 기본값은 0입니다. 예제에서는 너비가 1pt인 구분선이 출력됩니다.

**\def\columnseprulecolor{\color{blue}}**

구분선의 색상은 파란색으로 설정됩니다. 색상 조작에 대한 자세한 내용은 LaTeX에서 색상 사용에 관한 글을 보세요.

**\columnbreak**

이 명령은 열 나누기 지점을 삽입합니다. 이 경우 텍스트의 동작은 예상과 다릅니다. 열 나누기가 삽입된 다음, 나누기 지점 앞의 문단들이 사용 가능한 모든 공간을 채우도록 고르게 분배됩니다. 예제에서는 두 번째 문단이 열의 아래쪽에 있고, 두 번째 문단과 첫 번째 문단 사이에 빈 공간이 삽입됩니다.

## 추가 읽을거리

자세한 내용은 다음을 참조하세요:

* [문단과 줄바꿈](/latex/ko/latex/02-paragraphs-and-new-lines.md)
* [굵게, 이탤릭체 및 밑줄](/latex/ko/latex/03-bold-italics-and-underlining.md)
* [목록](/latex/ko/latex/04-lists.md)
* [이미지 삽입](/latex/ko/more-topics/27-inserting-images.md)
* [표](/latex/ko/figures-and-tables/01-tables.md)
* [이미지와 표 배치하기](/latex/ko/figures-and-tables/02-positioning-images-and-tables.md)
* [LaTeX의 길이](/latex/ko/formatting/01-lengths-in-latex.md)
* [문단 서식](/latex/ko/formatting/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [페이지 크기 및 여백](/latex/ko/formatting/07-page-size-and-margins.md)
* [단면 및 양면 문서](/latex/ko/formatting/08-single-sided-and-double-sided-documents.md)
* [LaTeX에서 색상 사용](/latex/ko/formatting/13-using-colors-in-latex.md)
* [각주](/latex/ko/formatting/14-footnotes.md)
* [여백 주석](/latex/ko/formatting/15-margin-notes.md)
* [**multicols** 패키지 문서](http://mirrors.ctan.org/macros/latex/required/tools/multicol.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/formatting/09-multiple-columns.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.
