> 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/sv/referenser-och-kallhanvisningar/04-bibtex-bibliography-styles.md).

# Bibtex-bibliografistilar

## Introduktion och exempel

När du använder [BibTeX](/latex/sv/referenser-och-kallhanvisningar/01-bibliography-management-with-bibtex.md), anges bibliografistilen och bibliograffilen importeras med följande två kommandon:

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

där `bibfile` är namnet på bibliografin `.bib` filen, utan filändelsen, och `stylename` är ett av värdena som visas i [tabellen nedan](#table-of-stylename-values).

Här är ett exempel som du kan öppna i Overleaf — `.bib` filen skapas åt dig:

```latex
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
%Inkluderar "Referenser" i innehållsförteckningen
\usepackage[nottoc]{tocbibind}

%Titel, datum och författare till dokumentet
\title{Bibliography management: BibTeX}
\author{Overleaf}

%Början av dokumentet
\begin{document}

\maketitle

\tableofcontents

\medskip

\section{First Section}
Det här dokumentet är ett exempel på BibTeX som används i bibliografihantering. Tre poster citeras: \textit{The \LaTeX\ Companion}-boken \cite{latexcompanion}, Einstein-artikeln \cite{einstein} och Donald Knuths webbplats \cite{knuthwebsite}. De \LaTeX\-relaterade posterna är \cite{latexcompanion,knuthwebsite}.

\medskip

%Ställer in bibliografistilen till UNSRT och importerar
%bibliograffilen "sample.bib".
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
```

[Öppna i Overleaf (en lämplig .bib-fil genereras)](<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>)

## Tabell över värden för stilmallen

| stylename | utdata                                                                     |
| --------- | -------------------------------------------------------------------------- |
| `abbrv`   | ![BibtexStylesEx1.png](/files/da25881320078eed720cfb95dbac2fa7c8cf82b3)    |
| `acm`     | ![BibtexStylesEx2.png](/files/d94847b5b5be99b05cc2610477589e0c6de74ba8)    |
| `alpha`   | ![BibtexStylesEx3.png](/files/b58cfe8304f3a6972e52554138c1efc590dcb5cb)    |
| `apalike` | ![BibtexStylesEx4.png](/files/bb16c58bb579395dc2dbd12429a891aa86015aa3)    |
| `ieeetr`  | ![BibtexStylesEx5.png](/files/45bd82e2e6a54f5844502153e15a9f3284d9a5c6)    |
| `plain`   | ![BibtexStylesEx6new.png](/files/8fc91c656ed11dae89e4ead3fa847685685eb961) |
| `siam`    | ![BibtexStylesEx7.png](/files/dbbda91ef2cf51d40b49da67b57b5535c3d787a6)    |
| `unsrt`   | ![BibtexStylesEx8.png](/files/115ce48382c9ae748646223bff2e4e66def6d42e)    |

## Vidare läsning

För mer information, se:

* [Bibliografihantering med BibTeX](/latex/sv/referenser-och-kallhanvisningar/01-bibliography-management-with-bibtex.md)
* [BibTeX-dokumentation på CTAN-webbplatsen](http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/)
* [Dokumentation för paketet tocbind](ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/tocbibind/tocbibind.pdf)
* [Hantering av bibliografi med natbib](/latex/sv/referenser-och-kallhanvisningar/02-bibliography-management-with-natbib.md)
* [Hantering av bibliografi med biblatex](/latex/sv/referenser-och-kallhanvisningar/03-bibliography-management-with-biblatex.md)
* [Innehåll](/latex/sv/dokumentstruktur/02-table-of-contents.md)
* [Hantering i ett stort projekt](/latex/sv/dokumentstruktur/07-management-in-a-large-project.md)
* [LaTeX-projekt med flera filer](/latex/sv/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/sv/referenser-och-kallhanvisningar/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.
