> 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/more-topics/50-wrapping-text-around-figures.md).

# 그림 주위에 텍스트 감싸기

때로는 텍스트의 흐름을 끊지 않도록 플로트(여기서는 그림) 주위로 텍스트를 감싸는 것이 바람직할 수 있습니다. LaTeX에는 이 작업을 수행할 수 있는 여러 패키지가 있지만, 대부분의 경우 어느 정도 수동 조정이 필요합니다.

### wrapfig 사용하기

사용하려면 *wrapfig*, 프리앰블에 다음 줄을 포함해야 합니다:

```latex
\usepackage{wrapfig}
```

이렇게 하면 *wrapfigure* 사용 가능한 환경이며, 우리는 *\includegraphics* 명령을 그 안에 넣어, 텍스트가 둘러싸는 그림을 만들 수 있습니다. 다음은 우리가 지정할 수 있는 방법입니다 *wrapfigure* 환경:

```latex
\begin{wrapfigure}[lineheight]{position}{width}
  ...
\end{wrapfigure}
```

다음 *위치* 매개변수에는 여덟 가지 가능한 값이 있습니다:

|    |   |                               |
| -- | - | ----------------------------- |
| r  | 오 | 텍스트의 오른쪽                      |
| l  | 왼 | 텍스트의 왼쪽                       |
| i  | I | 안쪽 가장자리—제본부 근처( *twoside* 문서) |
| 또는 | O | 바깥쪽 가장자리—제본부에서 먼 쪽            |

대문자 버전은 그림이 떠다니도록 허용합니다. 소문자 버전은 *정확히 여기*.

예시는 다음과 같습니다:

```latex
\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}
    \includegraphics[width=0.48\textwidth]{birds}
  \end{center}
  \caption{새들}
\end{wrapfigure}
```

포함된 이미지의 너비는 텍스트 너비를 기준으로 지정되었다는 점에 유의할 수 있습니다(*\textwidth*). 길이(높이, 너비 등)를 정의할 때는 상대 크기를 사용하는 것이 좋습니다. 특히 사용할 때는 *wrapfigure*.

위의 예시에서 그림은 텍스트 너비의 정확히 절반을 차지하며, 실제 이미지는 약간 더 작은 너비를 사용하므로 이미지와 텍스트 사이에 보기 좋은 작은 흰색 여백이 생깁니다. 이미지는 항상 wrap보다 더 작아야(덜 넓어야) 하며, 그렇지 않으면 텍스트를 침범하게 됩니다.

추가할 때 주의하세요 *wrapfigures* 를 페이지의 맨 위나 맨 아래 가까이에 매우 가깝게 배치하는 것은 종종 해결하기 어렵거나 거의 불가능한 원치 않는 효과를 일으킬 수 있으므로 주의해야 합니다. 사용하려고 하는 것은 권장되지 않습니다 *wrapfigures* 수식이나 절 제목과 함께 사용하는 것은 적절하지 않습니다. 또한 다음과 같은 목록에서도 사용할 수 없습니다: `itemize` 및 `enumerate` 환경을 사용합니다.

[Overleaf에서 예제 열기](https://www.overleaf.com/project/new/template/19663?id=66518064\&templateName=Example+of+positioning+tables+and+figures\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

### 흰색 여백이 있는 이미지 다루기

이미지에 원치 않는 흰색 여백이 있는 경우, 다음 옵션 중 하나를 사용하여 추가 공백을 제거할 수 있습니다:

* *잘라내기* \includegraphics를 사용할 때의 흰색 여백
* 다음 *picins* 패키지는 대신 사용할 수 있습니다 *wrapfigure*, 수동 조정 없이 바로 추가 흰색 여백을 제거합니다.
* 패키지 *floatflt* 또 다른 대안입니다.
* 사용하지 마십시오 *\begin{center}* 이미지를 가운데 정렬하기 위해 사용하면 추가 공백이 생깁니다. 다음을 사용하세요 *\centering* 대신 사용할 수 있습니다.
* 프로그램 *pdfcrop* (대부분의 TeX 설치에 포함되어 있으며) 흰색 여백을 영구적으로 제거하는 데 사용할 수 있습니다.


---

# 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/more-topics/50-wrapping-text-around-figures.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.
