> 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/da/referencer-og-citationer/04-bibtex-bibliography-styles.md).

# Bibtex-bibliografistilarter

## Introduktion og eksempel

Når du bruger [BiBTeX](/latex/da/referencer-og-citationer/01-bibliography-management-with-bibtex.md), opsættes bibliografistilen, og bibliografifilen importeres med de følgende to kommandoer:

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

hvor `bibfile` er navnet på bibliografien `.bib` filen, uden filendelsen, og `stylename` er en af de værdier, der vises i [tabellen nedenfor](#table-of-stylename-values).

Her er et eksempel, som du kan åbne i Overleaf— `.bib` filen oprettes for dig:

```latex
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
%Inkluderer "References" i indholdsfortegnelsen
\usepackage[nottoc]{tocbibind}

%Titel, dato og forfatter til dokumentet
\title{Bibliography management: BibTeX}
\author{Overleaf}

%Begyndelsen af dokumentet
\begin{document}

\maketitle

\tableofcontents

\medskip

\section{First Section}
Dette dokument er et eksempel på BibTeX, der bruges i bibliografihåndtering. Tre emner citeres: bogen \textit{The \LaTeX\ Companion} \cite{latexcompanion}, tidsskriftsartiklen om Einstein \cite{einstein} og Donald Knuths websted \cite{knuthwebsite}. De LaTeX-relaterede emner er \cite{latexcompanion,knuthwebsite}.

\medskip

%Sætter bibliografistilen til UNSRT og importerer
%bibliografifilen "sample.bib".
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
```

[Åbn i Overleaf (en passende .bib-fil genereres)](<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>)

## Tabel over værdier for stylenavne

| stylename | resultat                                                                   |
| --------- | -------------------------------------------------------------------------- |
| `abbrv`   | ![BibtexStylesEx1.png](/files/cbf2cb9439fce358289fd2eae1490757f987961e)    |
| `acm`     | ![BibtexStylesEx2.png](/files/0717c3b96cdf4348456a4552d8f335e7f5170779)    |
| `alpha`   | ![BibtexStylesEx3.png](/files/3f0f91bb5b0b1e4acd65a894b431e5afe49906fe)    |
| `apalike` | ![BibtexStylesEx4.png](/files/c7ee406fd51c70d327266687a22c4c0cdbc208ae)    |
| `ieeetr`  | ![BibtexStylesEx5.png](/files/f0440d756d059581487f974bdc5a3f373deb687e)    |
| `plain`   | ![BibtexStylesEx6new.png](/files/54416f460bd6eb7238c7ea0a082b4dbbc1bd0c4d) |
| `siam`    | ![BibtexStylesEx7.png](/files/7a669b226aba5c2c6eab5054b283e8a6947772fb)    |
| `unsrt`   | ![BibtexStylesEx8.png](/files/34c020472c3ca4143af1207dfd46df6e568a9564)    |

## Yderligere læsning

For mere information se:

* [Bibliografihåndtering med BibTeX](/latex/da/referencer-og-citationer/01-bibliography-management-with-bibtex.md)
* [BibTeX-dokumentation på CTAN-webstedet](http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/)
* [tocbind-pakkens dokumentation](ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/tocbibind/tocbibind.pdf)
* [Bibliografihåndtering med natbib](/latex/da/referencer-og-citationer/02-bibliography-management-with-natbib.md)
* [Bibliografihåndtering med biblatex](/latex/da/referencer-og-citationer/03-bibliography-management-with-biblatex.md)
* [Indholdsfortegnelse](/latex/da/dokumentstruktur/02-table-of-contents.md)
* [Håndtering i et stort projekt](/latex/da/dokumentstruktur/07-management-in-a-large-project.md)
* [LaTeX-projekter med flere filer](/latex/da/dokumentstruktur/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/da/referencer-og-citationer/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.
