> 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/cs/odkazy-a-citace/06-natbib-citation-styles.md).

# Natbibové styly citací

Natbib používá citační styl spojený s odpovídajícím [stylem bibliografie](/latex/cs/odkazy-a-citace/04-bibtex-bibliography-styles.md#natbib-styles) pokud nejsou deklarovány žádné konkrétní citační příkazy. Existují některé další příkazy pro řízení některých parametrů interpunkce. Viz příklad níže:

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

%Importuje balíček natbib a nastaví bibliografický a citační styl
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={((},close={))}} %Příkazy související s citacemi

\title{Příklad Natbib}

\author{Tým Overleaf}

\begin{document}

\maketitle

\section{První sekce}
Tento dokument je příkladem se dvěma citovanými položkami: \textit{The \LaTeX\ Companion} kniha \cite[see][chap 2]{latexcompanion} a Einsteinův časopisecký článek \citep{einstein}.

%Importuje bibliografický soubor "sample.bib"
\bibliography{sample}

\end{document}
```

![CitationStylesEx1Overleaf.png](/files/7272b6b78d54d9a6c8f345055db4aa1a68c00754)

Konkrétní příkaz pro formátování citačního stylu je:

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

Parametry oddělené čárkami říkají LaTeXu, aby používal *authoryear* citační režim a používal dvojité závorky jako otevírací a uzavírací znaky. Následují různé parametry, které lze tomuto příkazu předat:

* Citační režim: `authoryear`, `číslování` nebo `super`.
* Závorky: `kulaté` nebo `hranaté`. Jakékoli jiné otevírací a uzavírací znaky můžete nastavit ručně pomocí `open={char}` a `close={char}`.
* Oddělovač citací: `středník`, `čárka`.
* Oddělovač mezi autorem a rokem: `aysep{char}`.
* Oddělovač mezi roky se stejným autorem: `yysep={char}`.
* Text před poznámkou za citací: `notesep={text}`.

Existují i další citační příkazy v závislosti na citačním režimu. Například ve výše uvedeném příkladu příkaz `\cite[see][chap 2]{latexcompanion}` má dva další parametry; první volitelný parametr *see* se vypíše před citační značkou a druhý volitelný parametr *chap 2* se vypíše za citační značkou. Níže je tabulka popisující některé další citační příkazy:

| příkaz          | popisu                                                                 |
| --------------- | ---------------------------------------------------------------------- |
| `\citet{}`      | Textová citace                                                         |
| `\citep{}`      | Závorková citace                                                       |
| `\citet*{}`     | Stejně jako `\citet` ale pokud je více autorů, vypíší se všechna jména |
| `\citep*{}`     | Stejně jako `\citep` ale pokud je více autorů, vypíší se všechna jména |
| `\citeauthor{}` | Vypíše pouze jméno autorů                                              |
| `\citeyear{}`   | Vypíše pouze rok publikace.                                            |

Další informace o ostatních příkazech v tomto příkladu naleznete v [Správa bibliografie s natbib](/latex/cs/odkazy-a-citace/02-bibliography-management-with-natbib.md)

[Otevřete příklad `natbib` balíčku na Overleafu](https://www.overleaf.com/project/new/template/19422?id=65532643\&templateName=Natbib+citation+styles+example\&latexEngine=\&texImage=texlive-full%3A2020.1\&mainFile=)

## Další čtení

* [Správa bibliografie s natbib](/latex/cs/odkazy-a-citace/02-bibliography-management-with-natbib.md)
* [Bibliografické styly Natbib](/latex/cs/odkazy-a-citace/05-natbib-bibliography-styles.md)
* [Dokumentace balíčku Natbib](http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/natbib/natbib.pdf)
* [Podpora mezinárodních jazyků](/latex/cs/jazyky/03-international-language-support.md)
* [Správa ve velkém projektu](/latex/cs/struktura-dokumentu/07-management-in-a-large-project.md)
* [Obsah](/latex/cs/struktura-dokumentu/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/cs/odkazy-a-citace/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.
