Gå til indhold

How to Use BibTeX-Related Commands for LaTeX Documents

Dette indhold er ikke tilgængeligt i dit sprog endnu.

In order to use BibTeX in LaTeX, you need to know the following commands: \bibliographystyle{<style name>}, \bibliography{bib-file}, and \cite{KEY}. In this short guide post, we will discuss what each of these commands do and how to use them in your LaTeX documents.

Har du brug for en enkel løsning til at håndtere dine BibTeX-poster? Udforsk CiteDrive!

  • Webbaseret, moderne referencehåndtering
  • Samarbejd og del med forskerkolleger
  • Integration med Overleaf
  • Omfattende BibTeX/BibLaTeX-understøttelse
  • Gem artikler og websteder direkte fra din browser
  • Søg efter nye artikler i en database med titusindvis af referencer
Prøv CiteDrive ► Se demo

bibliographystyle

The citation style is defined by bibliographystyle{<style name>}. BibTeX style files control the appearance of the bibliography and citations. BibTeX style files have a .bst extension and contain instructions in a stack-based programming language that controls the formatting of bibliographical entries. By default, LaTeX offers plain, unsrt, alpha, and abbrv as styles. natbib and jurabib are two LaTeX packages that provide extensive natural science and humanities additions, for example.

bibliography

The bibliography is created in the document by the command \bibliography{bibfile} if the file name of the BibTeX file with literature records is bibfile.bib.

cite

In a LaTeX document, the command \cite{KEY} is replaced by the citation given in the BibTeX file with this ID, which, for example, is (Author, Year) in the final PDF.