What Are .bst and .bbx Files? Understanding LaTeX Bibliography Styles
When you set a bibliography style in LaTeX, you're pointing to a style file that controls how references are formatted. The BibTeX system uses .bst files, while biblatex uses .bbx and .cbx files. Understanding these files helps you troubleshoot formatting issues and customize your bibliography. Bibby AI includes all common style files and lets you preview how different styles format your references before committing to one.
Understand .bst Files (BibTeX Styles)
A .bst file is a BibTeX Style file written in a stack-based postfix language. It controls how entries in your .bib file are formatted in the bibliography output:
% .bst files are used with the BibTeX system (natbib or basic LaTeX)
% You reference them with \bibliographystyle:
\bibliographystyle{plainnat}
% This loads the file: plainnat.bst
% Common .bst files:
% plain.bst — Numeric citations, sorted alphabetically
% unsrt.bst — Numeric citations, in citation order
% abbrv.bst — Like plain, but abbreviated first names
% plainnat.bst — For natbib, author-year support
% unsrtnat.bst — For natbib, citation order
% abbrvnat.bst — For natbib, abbreviated names
% IEEEtran.bst — IEEE style
% ACM-Reference-Format.bst — ACM style
% Where are they stored?
% Usually in your TeX distribution:
% /usr/share/texlive/texmf-dist/bibtex/bst/
% Or in your project folder (for custom or journal-provided .bst files)
% To find a .bst file on your system:
% Terminal: kpsewhich plainnat.bstUnderstand .bbx and .cbx Files (biblatex Styles)
biblatex splits styling into two files: .bbx (bibliography formatting) and .cbx (citation formatting). This separation makes customization more modular:
% biblatex uses TWO types of style files:
% .bbx — Bibliography Body style (how entries look in the reference list)
% .cbx — Citation Body style (how citations look inline in the text)
% When you write:
\usepackage[style=authoryear]{biblatex}
% biblatex loads:
% authoryear.bbx — formats the bibliography
% authoryear.cbx — formats inline citations
% You can mix them independently:
\usepackage[
bibstyle=numeric, % Bibliography looks numeric
citestyle=authoryear % But inline citations are author-year
]{biblatex}
% Common biblatex styles (each has .bbx + .cbx pair):
% numeric — [1], [2], [3]
% authoryear — (Smith, 2024)
% authortitle — Smith, "Deep Learning..."
% verbose — Full citation on first use, short after
% apa — APA 7th edition (requires biblatex-apa)
% ieee — IEEE format (requires biblatex-ieee)
% chicago-authordate — Chicago style
% Where are they stored?
% /usr/share/texlive/texmf-dist/tex/latex/biblatex/bbx/
% /usr/share/texlive/texmf-dist/tex/latex/biblatex/cbx/Using Custom or Journal-Provided Style Files
Many journals provide custom style files. Here's how to use them with both systems:
% USING A CUSTOM .bst FILE (BibTeX/natbib):
% Step 1: Place the .bst file in your project root (same folder as .tex)
% Step 2: Reference it by name (without .bst extension):
\bibliographystyle{my-journal-style}
\bibliography{references}
% USING A CUSTOM .bbx/.cbx FILE (biblatex):
% Step 1: Place both .bbx and .cbx files in your project root
% Step 2: Reference the style by name:
\usepackage[style=my-journal-style]{biblatex}
\addbibresource{references.bib}
% CUSTOMIZING AN EXISTING biblatex STYLE:
% You don't need to edit .bbx files directly.
% Use biblatex's customization commands in your preamble:
\usepackage[style=numeric]{biblatex}
% Change formatting without touching .bbx files:
\DeclareFieldFormat{title}{\textit{#1}} % Italicize titles
\DeclareFieldFormat{journaltitle}{\textbf{#1}} % Bold journal names
\renewcommand*{\bibfont}{\small} % Smaller bibliography font
\setlength{\bibitemsep}{0.5\baselineskip} % Space between entries
\addbibresource{references.bib}💡 Tips
- •Never edit standard .bst or .bbx files — instead, copy them to your project folder and modify the copy.
- •If a journal provides a .bst file, you must use BibTeX/natbib — .bst files are not compatible with biblatex.
- •biblatex's .bbx/.cbx split means you can change how citations look inline without affecting the bibliography, and vice versa.
- •Bibby AI bundles all standard style files — you don't need to install them separately or worry about missing styles.
Try This in Bibby AI
Write LaTeX faster with AI auto-complete and instant compilation.
Start Writing Free