> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/uk/zapitannya-ta-vidpovidi/04-can-i-add-inline-or-margin-comments-to-the-pdf.md).

# Чи можу я додавати вбудовані або коментарі на полях до PDF?

Так, ви можете використовувати [`todonotes` accents](https://ctan.org/pkg/todonotes?lang=en) (описано тут) або прочитайте нашу довідкову сторінку про [примітки на полях](/latex/uk/formatuvannya/15-margin-notes.md), де обговорюється [`\marginpar` команду](/latex/uk/formatuvannya/15-margin-notes.md#the-5cmarginpar-command) та [`marginnote` accents](/latex/uk/formatuvannya/15-margin-notes.md#an-alternative-to-5cmarginpar-the-marginnote-package).

## Підключення пакета todonotes

Щоб використовувати `todonotes` пакет, додайте такий рядок до преамбули вашого документа:

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

Функція `colorinlistoftodos` опція додає маленькі кольорові квадрати до списку нотаток todo (див. нижче), допомагаючи розрізняти різні типи.

* **Примітка**: Читачам наполегливо рекомендується переглянути [`todonotes` документації](http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf) для отримання інформації про параметри пакета, корисні команди та корисні приклади.

Скористайтеся такою командою, щоб додати коментар:

```latex
\todo{Це коментар, який з’явиться на полі}
```

## Приклад використання пакета todonotes

Нижче наведено базовий приклад, щоб допомогти вам почати: він демонструє різні стилі нотаток і створює список нотаток todo за допомогою команди

```latex
\listoftodos[Title of your list...]
```

яка приймає необов’язковий аргумент, укладений у `[...]`, що використовується для набору заголовка списку нотаток.

```latex
\documentclass[a4paper]{article}
\usepackage[colorlinks]{hyperref}
\usepackage[colorinlistoftodos]{todonotes}
\begin{document}
\listoftodos[A list of things I need to finish]

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]{Нотатка todo з іншим кольором.}%
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]{Нотатка todo, яка відображається лише на полі й не у
списку todo.}%
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]{Вбудовані нотатки todo.}%
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

Цей приклад дає такий результат:

![Демонстрація пакета todonotes в Overleaf](/files/99db1507b40ac3f761b2344d24d7c66e0bc8a4e6)

## Додаткове читання

* Функція [`todonotes` документації](http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf) містить інформацію про параметри пакета, корисні команди та корисні приклади.
* Довідкова сторінка Overleaf про [примітки на полях](/latex/uk/formatuvannya/15-margin-notes.md) обговорює [`\marginpar` команду](/latex/uk/formatuvannya/15-margin-notes.md#the-5cmarginpar-command) та [`marginnote` accents](/latex/uk/formatuvannya/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://ayakaleaf-pro.ayaka.space/latex/uk/zapitannya-ta-vidpovidi/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.
