> 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/overleaf-learn-latex-pt/referencias-e-citacoes/04-bibtex-bibliography-styles.md).

# Estilos de bibliografia bibtex

## Introdução e exemplo

Ao usar [BibTeX](/latex/overleaf-learn-latex-pt/referencias-e-citacoes/01-bibliography-management-with-bibtex.md), o estilo da bibliografia é definido e o ficheiro de bibliografia é importado com os dois comandos seguintes:

```latex
  \bibliographystyle{stylename}
  \bibliography{bibfile}
```

onde `bibfile` é o nome da bibliografia `.bib` ficheiro, sem a extensão, e `stylename` é um dos valores apresentados na [tabela abaixo](#table-of-stylename-values).

Aqui está um exemplo que pode abrir no Overleaf — o `.bib` ficheiro é criado para si:

```latex
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
%Inclui "References" no índice
\usepackage[nottoc]{tocbibind}

%Título, data e autor do documento
\title{Gestão da bibliografia: BibTeX}
\author{Overleaf}

%Início do documento
\begin{document}

\maketitle

\tableofcontents

\medskip

\section{Primeira Secção}
Este documento é um exemplo de utilização do BibTeX na gestão da bibliografia. São citados três itens: o livro \textit{The \LaTeX\ Companion} \cite{latexcompanion}, o artigo de Einstein \cite{einstein} e o sítio web de Donald Knuth \cite{knuthwebsite}. Os itens relacionados com \LaTeX\ são \cite{latexcompanion,knuthwebsite}.

\medskip

%Define o estilo da bibliografia como UNSRT e importa o
%ficheiro de bibliografia "sample.bib".
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
```

[Abrir no Overleaf (é gerado um ficheiro .bib adequado)](<https://www.overleaf.com/docs?engine=\&snip_name\[]=main.tex\&snip\[]=\documentclass\[a4paper,10pt]{article}&#xA;\usepackage\[english]{babel}&#xA;%Includes+"References"+in+the+table+of+contents&#xA;\usepackage\[nottoc]{tocbibind}&#xA;&#xA;%Title,+date+an+author+of+the+document&#xA;\title{Bibliography+management:+BibTeX}&#xA;\author{Overleaf}&#xA;&#xA;%Begining+of+the+document&#xA;\begin{document}&#xA;&#xA;\maketitle&#xA;&#xA;\tableofcontents&#xA;&#xA;\medskip&#xA;&#xA;\section{First+Section}&#xA;This+document+is+an+example+of+BibTeX+using+in+bibliography+management.+Three+items+are+cited:+\textit{The+\LaTeX\\+Companion}+book+\cite{latexcompanion},+the+Einstein+journal+paper+\cite{einstein},+and+the+Donald+Knuth's+website+\cite{knuthwebsite}.+The+\LaTeX\\+related+items+are+\cite{latexcompanion,knuthwebsite}.+&#xA;&#xA;\medskip&#xA;&#xA;%Sets+the+bibliography+style+to+UNSRT+and+imports+the+&#xA;%bibliography+file+"sample.bib".&#xA;\bibliographystyle{unsrt}&#xA;\bibliography{sample}&#xA;\end{document}\&snip_name\[]=sample.bib\&snip\[]=@article{einstein,&#xA;++author+=+++++++"Albert+Einstein",&#xA;++title+=++++++++"{Zur+Elektrodynamik+bewegter+K{\\"o}rper}.+({German})&#xA;+++++++++++++++++\[{On}+the+electrodynamics+of+moving+bodies]",&#xA;++journal+=++++++"Annalen+der+Physik",&#xA;++volume+=+++++++"322",&#xA;++number+=+++++++"10",&#xA;++pages+=++++++++"891--921",&#xA;++year+=+++++++++"1905",&#xA;++DOI+=++++++++++"http://dx.doi.org/10.1002/andp.19053221004"&#xA;}&#xA;&#xA;@book{latexcompanion,&#xA;++++author++++=+"Michel+Goossens+and+Frank+Mittelbach+and+Alexander+Samarin",&#xA;++++title+++++=+"The+\LaTeX\\+Companion",&#xA;++++year++++++=+"1993",&#xA;++++publisher+=+"Addison-Wesley",&#xA;++++address+++=+"Reading,+Massachusetts"&#xA;}&#xA;+&#xA;@misc{knuthwebsite,&#xA;++++author++++=+"Donald+Knuth",&#xA;++++title+++++=+"Knuth:+Computers+and+Typesetting",&#xA;++++url+++++++=+"http://www-cs-faculty.stanford.edu/\\~{}uno/abcde.html"&#xA;}\&main_document=main.tex>)

## Tabela de valores de stylename

| stylename | saída                                                                      |
| --------- | -------------------------------------------------------------------------- |
| `abbrv`   | ![BibtexStylesEx1.png](/files/8315addf029009b7dbf3558711b19b387647b5d4)    |
| `acm`     | ![BibtexStylesEx2.png](/files/6940999df37f23c06464eba903d382355ebcf0ff)    |
| `alpha`   | ![BibtexStylesEx3.png](/files/2bc6bbdf784490ee1f49d74baf8913aeddf0facf)    |
| `apalike` | ![BibtexStylesEx4.png](/files/dbd496b6f7ef627d9ee0e5f9f43262ab5a54d05f)    |
| `ieeetr`  | ![BibtexStylesEx5.png](/files/60a69542e80771edb7f4532e1004b379e89f5baf)    |
| `plain`   | ![BibtexStylesEx6new.png](/files/9eb6eba22db5eee86967b16995b085f0d2f30963) |
| `siam`    | ![BibtexStylesEx7.png](/files/7f8ab5290178e278c78996211a7eb46b53ca2e0a)    |
| `unsrt`   | ![BibtexStylesEx8.png](/files/6beebfa97ae83733029a02f89c0121f114e78b76)    |

## Leitura adicional

Para mais informações, consulta:

* [Gestão de bibliografia com BibTeX](/latex/overleaf-learn-latex-pt/referencias-e-citacoes/01-bibliography-management-with-bibtex.md)
* [Documentação do BibTeX no site web CTAN](http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/)
* [Documentação do pacote tocbibind](ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/tocbibind/tocbibind.pdf)
* [Gestão de bibliografia com natbib](/latex/overleaf-learn-latex-pt/referencias-e-citacoes/02-bibliography-management-with-natbib.md)
* [Gestão de bibliografia com biblatex](/latex/overleaf-learn-latex-pt/referencias-e-citacoes/03-bibliography-management-with-biblatex.md)
* [Índice](/latex/overleaf-learn-latex-pt/estrutura-do-documento/02-table-of-contents.md)
* [Gestão num grande projeto](/latex/overleaf-learn-latex-pt/estrutura-do-documento/07-management-in-a-large-project.md)
* [Projetos LaTeX com vários ficheiros](/latex/overleaf-learn-latex-pt/estrutura-do-documento/08-multi-file-latex-projects.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/overleaf-learn-latex-pt/referencias-e-citacoes/04-bibtex-bibliography-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.
