> 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/questions-and-answers/04-can-i-add-inline-or-margin-comments-to-the-pdf.md).

# pdf에 인라인 또는 여백 주석을 추가할 수 있나요?

네, 다음을 사용할 수 있습니다 [`todonotes` 패키지](https://ctan.org/pkg/todonotes?lang=en) (여기에 설명되어 있거나) 또는 다음에 대한 도움말 페이지를 읽어 보세요 [여백 메모](/latex/ko/formatting/15-margin-notes.md), 여기서는 다음을 다룹니다 [`\marginpar` 명령을 사용합니다](/latex/ko/formatting/15-margin-notes.md#the-5cmarginpar-command) 와 [`marginnote` 패키지](/latex/ko/formatting/15-margin-notes.md#an-alternative-to-5cmarginpar-the-marginnote-package).

## todonotes 패키지 로드

다음을 사용하려면 `todonotes` 패키지를 사용하려면 문서 서문에 다음 줄을 추가하세요:

```latex
\usepackage[colorinlistoftodos]{todonotes}
```

다음 `colorinlistoftodos` 옵션은 할 일 노트 목록에 작은 색상 사각형을 추가합니다(아래 참조). 이를 통해 서로 다른 유형을 구분하는 데 도움이 됩니다.

* **참고**: 독자 여러분께서는 다음을 살펴보시기를 강력히 권장합니다 [`todonotes` 문서](http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf) 패키지 옵션, 유용한 명령 및 도움이 되는 예제에 대한 정보를.

주석을 추가하려면 다음 명령을 사용하세요:

```latex
\todo{이것은 여백에 나타날 주석입니다}
```

## todonotes 패키지를 사용하는 예제

아래는 시작하는 데 도움이 되는 기본 예제입니다. 여러 노트 스타일을 보여 주며, 다음 명령을 통해 할 일 노트 목록을 생성합니다

```latex
\listoftodos[목록 제목...]
```

여기에는 다음으로 둘러싸인 선택적 인수가 사용되며 `[...]`, 이는 노트 목록의 제목을 조판하는 데 사용됩니다.

```latex
\documentclass[a4paper]{article}
\usepackage[colorlinks]{hyperref}
\usepackage[colorinlistoftodos]{todonotes}
\begin{document}
\listoftodos[제가 마무리해야 할 항목 목록]

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla
\todo{일반 todonotes.} urna. Maecenas interdum nunc in augue.
Mauris quis massa in ante tincidunt mollis. Proin imperdiet.
Donec porttitor pede id est. Sed in ante. Integer id arcu. Nam
lectus nisl, posuere sit amet, imperdiet ut, tristique ac, lorem.
In erat. In commodo enim. \todo[color=blue!40]{다른 색상의 todonote.}%
Phasellus libero ipsum, tempor a, pharetra consequat, pellentesque
sit amet, sem. Praesent ut augue luctus elit adipiscing ultricies.
Vestibulum suscipit cursus leo. Nullam molestie justo.

Morbi dui. Morbi convallis mi sed sem. Nulla convallis lacus vitae
risus. Phasellus adipiscing. Nullam tortor. Sed laoreet aliquam
ante. Vestibulum diam. Pellentesque nec leo. Pellentesque velit.
\todo[nolist]{여백에만 표시되고
할 일 목록에는 표시되지 않는 todonote.}%
Praesent congue mi eu ipsum cursus fringilla. Etiam leo erat,
tristique et, pharetra eget, mollis vitae, velit. In hac habitasse
\todo[size=\small, color=green!40]{작은 글꼴 크기의 메모.}%
platea dictumst. In quam nibh, facilisis et, laoreet non, facilisis
tempus, justo. Class aptent taciti sociosqu ad litora torquent per
conubia nostra, per inceptos himenaeos.

\todo[inline]{테스트 테스트}

Donec nulla lectus, faucibus sit amet, auctor non, consectetuer
quis, pede. Nullam dictum. Nullam suscipit, ligula in scelerisque
\todo[noline]{본문으로 연결되는 선이 없는 메모.}%
posuere, sapien purus rutrum magna, vitae pharetra leo quam vel
tortor. Donec eleifend condimentum sapien. Etiam sed orci. Aliquam
\todo[inline, color=red!50]{인라인 todonotes.}%
tempor. Pellentesque egestas tortor id eros. Donec mauris justo,
commodo id, pellentesque id, eleifend non, mi. Duis venenatis
sagittis metus. Donec tempus metus id lacus. Praesent vel diam.
Morbi nec ante. Vestibulum varius felis ac lacus. Nulla vitae neque
\todo[inline, color=green!40]{본문으로 연결되는 선이 없는 메모.}%
in nibh bibendum volutpat. Quisque accumsan diam. Aenean ultricies
nisl ac lacus. Aliquam posuere. Aenean venenatis tortor in felis.
\end{document}
```

이 예제를 Overleaf에서 열기

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

![Overleaf에서 todonotes 패키지 시연](/files/e63f6f47cb61c7331829518fd2f22145d6e54a97)

## 추가 읽을거리

* 다음 [`todonotes` 문서](http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf) 패키지 옵션, 유용한 명령 및 도움이 되는 예제에 대한 정보가 있습니다.
* 다음에 대한 Overleaf 도움말 페이지 [여백 메모](/latex/ko/formatting/15-margin-notes.md) 다음을 다룹니다 [`\marginpar` 명령을 사용합니다](/latex/ko/formatting/15-margin-notes.md#the-5cmarginpar-command) 와 [`marginnote` 패키지](/latex/ko/formatting/15-margin-notes.md#an-alternative-to-5cmarginpar-the-marginnote-package).


---

# 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/questions-and-answers/04-can-i-add-inline-or-margin-comments-to-the-pdf.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.
