> 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/uk/posilannya-ta-cituvannya/06-natbib-citation-styles.md).

# Стилі цитування Natbib

Natbib використовує стиль цитування, пов’язаний із відповідним [стилем бібліографії](/latex/uk/posilannya-ta-cituvannya/04-bibtex-bibliography-styles.md#natbib-styles) якщо не оголошено спеціальних команд цитування. Є також деякі додаткові команди для керування параметрами пунктуації. Дивіться приклад нижче:

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

%Імпортує пакет natbib і встановлює стилі бібліографії та цитування
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={((},close={))}} %Команди, пов’язані з цитуванням

\title{Приклад Natbib}

\author{Команда Overleaf}

\begin{document}

\maketitle

\section{Перший розділ}
Цей документ є прикладом із двома цитованими пунктами: книга \textit{The \LaTeX\ Companion} \cite[див.][розд. 2]{latexcompanion} та стаття Ейнштейна \citep{einstein}.

%Імпортує файл бібліографії "sample.bib"
\bibliography{sample}

\end{document}
```

![CitationStylesEx1Overleaf.png](/files/4ca6e88bbc37fb5d604beaa15e94b37da1141b18)

Спеціальна команда для форматування стилю цитування така:

```latex
\setcitestyle{authoryear, open={((},close={))}
```

Параметри, розділені комами, вказують LaTeX використовувати *authoryear* режим цитування та використовувати подвійні дужки як відкривальні й закривальні знаки. Різні параметри, які можна передати цій команді, такі:

* Режим цитування: `authoryear`, `номерів` або `super`.
* Дужки: `круглі` або `квадратні`. Ви можете вручну встановити будь-які інші відкривальні та закривальні символи за допомогою `open={char}` та `close={char}`.
* Розділювач цитат: `крапка з комою`, `кома`.
* Розділювач між автором і роком: `aysep{char}`.
* Розділювач між роками зі спільним автором: `yysep={char}`.
* Текст перед післяприміткою: `notesep={text}`.

Існують також інші додаткові команди цитування залежно від режиму цитування. Наприклад, у наведеному вище прикладі команда `\cite[see][chap 2]{latexcompanion}` має два додаткові параметри; перший необов’язковий параметр *see* друкується перед позначкою цитати, а другий необов’язковий параметр *chap 2* друкується після позначки цитати. Нижче наведено таблицю з описом деяких додаткових команд цитування:

| команду         | опис                                                                   |
| --------------- | ---------------------------------------------------------------------- |
| `\citet{}`      | Текстова цитата                                                        |
| `\citep{}`      | Цитата в дужках                                                        |
| `\citet*{}`     | Так само, як `\citet` але якщо є кілька авторів, друкуються всі імена  |
| `\citep*{}`     | Те саме, що й `\citep` але якщо є кілька авторів, друкуються всі імена |
| `\citeauthor{}` | Друкує лише ім’я автора(ів)                                            |
| `\citeyear{}`   | Друкує лише рік публікації.                                            |

Щоб дізнатися більше про решту команд у цьому прикладі, дивіться [Керування бібліографією з natbib](/latex/uk/posilannya-ta-cituvannya/02-bibliography-management-with-natbib.md)

[Відкрийте приклад `natbib` пакета в Overleaf](https://www.overleaf.com/project/new/template/19422?id=65532643\&templateName=Natbib+citation+styles+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

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

* [Керування бібліографією з natbib](/latex/uk/posilannya-ta-cituvannya/02-bibliography-management-with-natbib.md)
* [Стилі бібліографії Natbib](/latex/uk/posilannya-ta-cituvannya/05-natbib-bibliography-styles.md)
* [Документація пакета Natbib](http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/natbib/natbib.pdf)
* [Підтримка міжнародних мов](/latex/uk/movi/03-international-language-support.md)
* [Керування у великому проєкті](/latex/uk/struktura-dokumenta/07-management-in-a-large-project.md)
* [Зміст](/latex/uk/struktura-dokumenta/02-table-of-contents.md)


---

# 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/uk/posilannya-ta-cituvannya/06-natbib-citation-styles.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.
