> 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/otazky-a-odpovedi/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.md).

# V šabloně IEEE pro časopisy se snažím používat bibtex pro své odkazy

Mnoho autorů používajících jednu ze šablon časopisů IEEE žádá o pomoc s přidáním svých odkazů pomocí bibtexu. Zejména po nahrání souborů IEEEexample.bib a IEEEabrv.bib do složky bibtex/bib může být obtížné docílit kompilace dokumentu. Zde je souhrn našich odpovědí, který by měl snad pomoci, pokud jste v podobné situaci, a vyúsťuje v příklad, který můžete použít jako šablonu pro začátek.

Za prvé, pokud jste nahráli soubory IEEEtran.cls a IEEEtran.bst, doporučuje se je smazat, protože jsou ve skutečnosti zabudované ve writeLaTeX — nemusíte je do projektu zahrnovat a obvykle je nejlepší používat vestavěnou verzi.

Pokud potřebujete vytvořit složku bibtex/bib, můžete tak učinit prostřednictvím nabídky Project v editoru — jakmile nabídku otevřete, ikony pro vytváření složek a souborů jsou vpravo nahoře.

Bibliografie generovaná bibtexem pochází z příkazů \bibliography a \bibliographystyle, a za předpokladu, že používáte soubory IEEEexample.bib a IEEEabrv.bib ve složce bibtex/bib, měly by být tyto příkazy změněny na:

```latex
\bibliography{bibtex/bib/IEEEabrv.bib,bibtex/bib/IEEEexample.bib}{}
\bibliographystyle{IEEEtran}
```

To říká bibtexu, aby načetl dva soubory .bib a použil styl bibliografie IEEEtran pro formátování odkazů.

Poznámka: Původní příkazy v šabloně byly:

```latex
\bibliography{mybib.bib}{}
\bibliographystyle{plain}
```

což řeklo bibtexu, že chcete pro odkazy použít soubor s názvem mybib.bib s jednoduchým (vestavěným) stylem.

Nakonec je častá chyba, která nastane po celém tomto nastavení, když v dokumentu není žádný příkaz \cite, který by odkazoval na některý záznam v souboru bib. V níže uvedeném příkladu jsme přidali jeden z IEEEexample.bib:

```latex
\cite{IEEEhowto:IEEEtranpage}
```

aby se to zkompilovalo. Jakmile začnete přidávat své vlastní citace, budete ho chtít smazat.

[Tady je příklad na Overleafu, připravený a nastavený k použití.](https://www.overleaf.com/latex/templates/ieee-for-journals-template-with-bibtex-example-files-included/hjbyjvncdmpx)

Pro více informací o bibtexu doporučujeme LaTeX wikiknihu \[[kapitola o správě bibliografie](http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management)].


---

# 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/otazky-a-odpovedi/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.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.
