Sample BibTeX File Download
Eleven .bib files for testing LaTeX builds, reference managers and bibliography tools. Ten are valid and one contains four deliberate mistakes.
Eleven bibliography files, one behaviour each
Smallest useful file: one article
One @article entry with only the four fields the BibTeX manual requires for that type: author, title, journal and year. Use it to confirm an importer or a LaTeX build reads a .bib file at all.
@article{mensah2024tides,
author = {Ada Mensah},
title = {Tidal Patterns in Shallow Estuaries},
journal = {Journal of Coastal Studies},
year = {2024}
}
One entry of each of the 14 standard types
An article, book, booklet, conference, inbook, incollection, inproceedings, manual, mastersthesis, misc, phdthesis, proceedings, techreport and unpublished entry, each with its required fields. Use it to see which types your software maps correctly.
@article{okafor2023soil,
author = {Tomas Okafor and Lena Fischer},
title = {Soil Moisture Sensing with Low-Cost Probes},
journal = {Field Instruments Review},
year = {2023},
volume = {18},
number = {2},
pages = {101--118}
}
@book{raman2021maps,
author = {Priya Raman},
title = {Reading Old Maps},
publisher = {Harbour Press},
year = {2021},
address = {Lisbon},
edition = {Second}
}
@booklet{larsen2019trail,
title = {A Short Guide to the Northern Trail},
author = {Emil Larsen},
howpublished = {Printed by the local walking club},
year = {2019}
}
@conference{sato2022bridges,
author = {Hana Sato},
title = {Monitoring Footbridges with Phone Sensors},
booktitle = {Proceedings of the Small Structures Meeting},
year = {2022}
}
@inbook{haddad2020rivers,
author = {Dalia Haddad},
title = {Rivers of the Coastal Plain},
chapter = {4},
pages = {77--102},
publisher = {Delta Books},
year = {2020}
}
@incollection{castell2018archives,
author = {Bruno Castell},
title = {Parish Archives as Weather Records},
booktitle = {Sources for Climate History},
editor = {Farah Qureshi},
publisher = {Northgate Academic},
year = {2018},
pages = {33--58}
}
@inproceedings{chen2024routing,
author = {Rui Chen and Goran Petrov},
title = {Routing Deliveries on Hilly Street Networks},
booktitle = {Proceedings of the Urban Logistics Workshop},
year = {2024},
pages = {12--20}
}
@manual{gridtool2025,
title = {GridTool Reference Manual},
organization = {Open Mapping Collective},
edition = {3.2},
year = {2025}
}
@mastersthesis{qureshi2017wells,
author = {Farah Qureshi},
title = {Water Quality in Shallow Village Wells},
school = {University of Northfield},
year = {2017}
}
@misc{petrov2023notes,
author = {Goran Petrov},
title = {Notes on Calibrating a Rain Gauge},
howpublished = {Unpublished lab notes},
year = {2023}
}
@phdthesis{fischer2022glaciers,
author = {Lena Fischer},
title = {Seasonal Movement of Small Alpine Glaciers},
school = {Eastbrook Institute of Technology},
year = {2022},
type = {Ph.D. dissertation}
}
@proceedings{logistics2024,
title = {Proceedings of the Urban Logistics Workshop},
year = {2024},
editor = {Ada Mensah},
publisher = {Harbour Press}
}
@techreport{mensah2021sensors,
author = {Ada Mensah and Hana Sato},
title = {Battery Life of Field Sensors in Cold Weather},
institution = {Northfield Environmental Lab},
year = {2021},
number = {TR-21-07}
}
@unpublished{okafor2025draft,
author = {Tomas Okafor},
title = {A Simple Model of Hillside Erosion},
note = {Draft manuscript, not yet submitted},
year = {2025}
}
Author names in every accepted form
The three ways BibTeX reads a name, plus particles such as van der and de la, a Jr part, hyphenated first names, a list cut short with and others, and an organisation protected by double braces.
@article{names-first-von-last,
author = {Ludwig van der Berg and Maria de la Cruz},
title = {Names Written as First von Last},
journal = {Journal of Name Handling},
year = {2020}
}
@article{names-last-first,
author = {van der Berg, Ludwig and de la Cruz, Maria},
title = {Names Written as von Last, First},
journal = {Journal of Name Handling},
year = {2021}
}
@article{names-with-junior,
author = {Whitfield, Jr, Harold and Osei, III, Kwame},
title = {Names Written as von Last, Jr, First},
journal = {Journal of Name Handling},
year = {2022}
}
@article{names-hyphen-and-others,
author = {Jean-Luc Moreau and Ana-Maria Ionescu and others},
title = {Hyphenated First Names and a Truncated Author List},
journal = {Journal of Name Handling},
year = {2023}
}
@techreport{names-organisation,
author = {{Open Mapping Collective}},
title = {An Organisation as the Author},
institution = {Open Mapping Collective},
year = {2024}
}
Accents, special letters, protected capitals and symbols
Accented letters written as LaTeX commands inside braces, letters such as ß and Ø, capitals protected with braces so a style cannot lowercase them, an escaped ampersand and percent sign, and inline math.
@article{godel-style-accent,
author = {Bj{\"o}rn M{\"u}ller and Ren{\'e} Lef{\`e}vre},
title = {Accents Written the Way the {BibTeX} Manual Describes},
journal = {Zeitschrift f{\"u}r Beispiele},
year = {2021}
}
@book{special-letters,
author = {{\O}ystein Str{\o}m and Jos{\'e} Mu{\~n}oz and {\L}ukasz Wi{\'s}niewski},
title = {Stra{\ss}e, {\AE}on and Other Special Letters},
publisher = {Nordlys Forlag},
year = {2019}
}
@article{protected-capitals,
author = {Chen, Rui},
title = {Sequencing {DNA} in the Field: Results from {N}orthern {K}enya},
journal = {Portable Lab Methods},
year = {2023}
}
@article{symbols-and-math,
author = {Haddad, Dalia},
title = {Cost \& Yield at 5\% Slope: Estimating $\alpha$ and $\beta$},
journal = {Hillside Farming Letters},
year = {2022},
pages = {7--19}
}
@string macros, month abbreviations and joined values
Three @string definitions used as field values, the built-in month macros, and two values built with the # concatenation character. A reader that ignores macros shows jcs where the journal name should be.
@string{jcs = "Journal of Coastal Studies"}
@string{fir = "Field Instruments Review"}
@string{hp = "Harbour Press"}
@article{macro-journal,
author = {Ada Mensah},
title = {Salt Marsh Recovery after Storm Surges},
journal = jcs,
year = 2022,
month = mar
}
@article{macro-joined,
author = {Tomas Okafor},
title = {A Probe for Frozen Ground},
journal = fir # ", Short Communications",
year = 2023,
month = "15~" # nov
}
@book{macro-publisher,
author = {Priya Raman},
title = {Charts of the Outer Harbour},
publisher = hp,
address = "Lisbon",
year = 2020
}
Two papers that inherit fields through crossref
Two @inproceedings entries point at one @proceedings entry and take its year, editor and publisher from it. The shared entry comes last in the file, which the manual says is required.
@inproceedings{sato2024cables,
author = {Hana Sato},
title = {Tension Loss in Footbridge Cables},
pages = {45--52},
crossref = {structures2024}
}
@inproceedings{petrov2024decks,
author = {Goran Petrov and Lena Fischer},
title = {Timber Decks after Twenty Winters},
pages = {53--61},
crossref = {structures2024}
}
@proceedings{structures2024,
title = {Proceedings of the Small Structures Meeting},
booktitle = {Proceedings of the Small Structures Meeting},
year = {2024},
editor = {Dalia Haddad},
publisher = {Northgate Academic},
address = {Aarhus}
}
@preamble, comments and an entry in parentheses
A @preamble that defines a LaTeX command, a @comment block, free text between entries, and one entry delimited by parentheses with quoted values. All of it is legal, and all of it confuses simple parsers.
This line is outside any entry, so BibTeX treats it as a comment.
@preamble{ "\newcommand{\noopsort}[1]{} " }
@comment{
The entry below was checked against the printed volume in 2025.
}
@book{larsen2016coast,
author = {Emil Larsen},
title = {The {\noopsort{1}}Coast Path},
publisher = {Delta Books},
year = {2016}
}
Notes between entries are ignored as well.
@article(castell2019tiles,
author = "Bruno Castell",
title = "Glazed Tiles of the Old Port",
journal = "Building History Notes",
year = 2019
)
DOI, URL and other fields that exporters add
Entries carrying doi, url, urldate, issn, isbn, keywords, abstract, file and timestamp. None of these are in the standard field list. Standard styles ignore them; reference managers rely on them.
@article{fischer2024meltwater,
author = {Lena Fischer and Hana Sato},
title = {Meltwater Timing in a Small Alpine Catchment},
journal = {Mountain Hydrology},
year = {2024},
volume = {12},
pages = {201--219},
doi = {10.5555/mh.2024.0117},
url = {https://example.com/mh/2024/0117},
issn = {0000-0000},
keywords = {snowmelt, runoff, alpine},
abstract = {We record the daily timing of meltwater in one small catchment over three seasons.}
}
@misc{mapping2025dataset,
author = {{Open Mapping Collective}},
title = {Footpath Survey Dataset},
year = {2025},
howpublished = {Online dataset},
url = {https://example.org/datasets/footpaths},
urldate = {2025-09-14},
note = {Version 2.1},
language = {english}
}
@book{raman2023atlas,
author = {Priya Raman},
title = {A Pocket Atlas of Tide Mills},
publisher = {Harbour Press},
year = {2023},
isbn = {978-0-00-000000-2},
file = {raman2023atlas.pdf},
timestamp = {2025-02-03}
}
Duplicates and clashing keys for testing clean-up
Seven entries with every kind of overlap: the same key twice, the same DOI under a different key, the same title and year under two keys and two entry types, and one key shared by two different works.
@article{mensah2024tides,
author = {Ada Mensah},
title = {Tidal Patterns in Shallow Estuaries},
journal = {Journal of Coastal Studies},
year = {2024},
doi = {10.5555/jcs.2024.0031}
}
@article{mensah2024tides,
author = {Mensah, Ada},
title = {Tidal Patterns in Shallow Estuaries},
journal = {Journal of Coastal Studies},
year = {2024},
volume = {31},
pages = {88--104}
}
@article{Mensah:2024,
author = {A. Mensah},
title = {Tidal patterns in shallow estuaries},
journal = {J. Coast. Stud.},
year = {2024},
doi = {https://doi.org/10.5555/JCS.2024.0031}
}
@article{okafor2023,
author = {Tomas Okafor and Lena Fischer},
title = {Soil Moisture Sensing with Low-Cost Probes},
journal = {Field Instruments Review},
year = {2023}
}
@inproceedings{okafor-probes,
author = {Okafor, T. and Fischer, L.},
title = {{Soil} moisture sensing with low-cost probes},
booktitle = {Field Instruments Review},
year = {2023}
}
@book{raman2021,
author = {Priya Raman},
title = {Reading Old Maps},
publisher = {Harbour Press},
year = {2021}
}
@article{raman2021,
author = {Priya Raman},
title = {Dating a Chart from Its Compass Rose},
journal = {Map History Quarterly},
year = {2021}
}
A realistic reference list of 25 entries
Twenty-five articles, books and conference papers with unique keys, the size of a typical paper's bibliography. Use it for sorting, searching and import timing.
@book{mensah2012tide,
author = {Mensah, Ada},
title = {Measuring Tide Gauges},
publisher = {Harbour Press},
year = {2012}
}
@inproceedings{okafor2019dune,
author = {Okafor, Tomas and Qureshi, Farah},
title = {Mapping Dune Grass},
booktitle = {Proceedings of the Shoreline Research Meeting},
year = {2019},
pages = {11--20}
}
@article{raman2012river,
author = {Raman, Priya and Okafor, Tomas},
title = {Modelling River Deltas},
journal = {Mountain Hydrology},
year = {2012},
volume = {5},
number = {3},
pages = {126--138},
doi = {10.5555/sample.2012.1002}
}
@article{larsen2019harbour,
author = {Larsen, Emil and Castell, Bruno},
title = {A Survey of Harbour Walls},
journal = {Map History Quarterly},
year = {2019},
volume = {6},
number = {4},
pages = {139--151},
doi = {10.5555/sample.2019.1003}
}
@book{sato2012salt,
author = {Sato, Hana},
title = {Long-Term Change in Salt Marshes},
publisher = {Delta Books},
year = {2012}
}
@inproceedings{haddad2019estuary,
author = {Haddad, Dalia and Sato, Hana},
title = {Measuring Estuary Birds},
booktitle = {Proceedings of the Shoreline Research Meeting},
year = {2019},
pages = {15--24}
}
@article{castell2012coastal,
author = {Castell, Bruno and Petrov, Goran},
title = {Mapping Coastal Fog},
journal = {Field Instruments Review},
year = {2012},
volume = {9},
number = {3},
pages = {178--190},
doi = {10.5555/sample.2012.1006}
}
@article{chen2019sea,
author = {Chen, Rui and Raman, Priya},
title = {Modelling Sea Ice Edges},
journal = {Mountain Hydrology},
year = {2019},
volume = {10},
number = {4},
pages = {191--203},
doi = {10.5555/sample.2019.1007}
}
@book{qureshi2012lighthouse,
author = {Qureshi, Farah},
title = {A Survey of Lighthouse Records},
publisher = {Northgate Academic},
year = {2012}
}
@inproceedings{petrov2019storm,
author = {Petrov, Goran and Mensah, Ada},
title = {Long-Term Change in Storm Surges},
booktitle = {Proceedings of the Shoreline Research Meeting},
year = {2019},
pages = {19--28}
}
@article{fischer2012shingle,
author = {Fischer, Lena and Haddad, Dalia},
title = {Measuring Shingle Beaches},
journal = {Journal of Coastal Studies},
year = {2012},
volume = {13},
number = {3},
pages = {230--242},
doi = {10.5555/sample.2012.1010}
}
@article{moreau2019seagrass,
author = {Moreau, Jean-Luc and Fischer, Lena},
title = {Mapping Seagrass Beds},
journal = {Field Instruments Review},
year = {2019},
volume = {14},
number = {4},
pages = {243--255},
doi = {10.5555/sample.2019.1011}
}
@book{mensah2012cliff,
author = {Mensah, Ada},
title = {Modelling Cliff Erosion},
publisher = {Harbour Press},
year = {2012}
}
@inproceedings{okafor2019tide,
author = {Okafor, Tomas and Qureshi, Farah},
title = {A Survey of Tide Gauges},
booktitle = {Proceedings of the Shoreline Research Meeting},
year = {2019},
pages = {23--32}
}
@article{raman2012dune,
author = {Raman, Priya and Okafor, Tomas},
title = {Long-Term Change in Dune Grass},
journal = {Portable Lab Methods},
year = {2012},
volume = {17},
number = {3},
pages = {282--294},
doi = {10.5555/sample.2012.1014}
}
@article{larsen2019river,
author = {Larsen, Emil and Castell, Bruno},
title = {Measuring River Deltas},
journal = {Journal of Coastal Studies},
year = {2019},
volume = {18},
number = {4},
pages = {295--307},
doi = {10.5555/sample.2019.1015}
}
@book{sato2012harbour,
author = {Sato, Hana},
title = {Mapping Harbour Walls},
publisher = {Delta Books},
year = {2012}
}
@inproceedings{haddad2019salt,
author = {Haddad, Dalia and Sato, Hana},
title = {Modelling Salt Marshes},
booktitle = {Proceedings of the Shoreline Research Meeting},
year = {2019},
pages = {27--36}
}
@article{castell2012estuary,
author = {Castell, Bruno and Petrov, Goran},
title = {A Survey of Estuary Birds},
journal = {Map History Quarterly},
year = {2012},
volume = {21},
number = {3},
pages = {334--346},
doi = {10.5555/sample.2012.1018}
}
@article{chen2019coastal,
author = {Chen, Rui and Raman, Priya},
title = {Long-Term Change in Coastal Fog},
journal = {Portable Lab Methods},
year = {2019},
volume = {22},
number = {4},
pages = {347--359},
doi = {10.5555/sample.2019.1019}
}
@book{qureshi2012sea,
author = {Qureshi, Farah},
title = {Measuring Sea Ice Edges},
publisher = {Northgate Academic},
year = {2012}
}
@inproceedings{petrov2019lighthouse,
author = {Petrov, Goran and Mensah, Ada},
title = {Mapping Lighthouse Records},
booktitle = {Proceedings of the Shoreline Research Meeting},
year = {2019},
pages = {31--40}
}
@article{fischer2012storm,
author = {Fischer, Lena and Haddad, Dalia},
title = {Modelling Storm Surges},
journal = {Mountain Hydrology},
year = {2012},
volume = {25},
number = {3},
pages = {386--398},
doi = {10.5555/sample.2012.1022}
}
@article{moreau2019shingle,
author = {Moreau, Jean-Luc and Fischer, Lena},
title = {A Survey of Shingle Beaches},
journal = {Map History Quarterly},
year = {2019},
volume = {26},
number = {4},
pages = {399--411},
doi = {10.5555/sample.2019.1023}
}
@book{mensah2012seagrass,
author = {Mensah, Ada},
title = {Long-Term Change in Seagrass Beds},
publisher = {Harbour Press},
year = {2012}
}
Invalid on purpose: four common mistakes
The first entry is fine. The next four each contain one mistake: a missing comma between fields, an unbalanced brace, an empty citation key, and a key that was already used. Use it to see how your software reports bad input.
@article{valid-first,
author = {Ada Mensah},
title = {This Entry Is Fine},
journal = {Journal of Coastal Studies},
year = {2024}
}
@article{missing-comma,
author = {Tomas Okafor}
title = {No Comma after the Author Field},
journal = {Field Instruments Review},
year = {2023}
}
@book{unbalanced-brace,
author = {Priya Raman},
title = {A Title with an Extra {Open Brace},
publisher = {Harbour Press},
year = {2021}
}
@article{,
author = {Hana Sato},
title = {An Entry with No Citation Key},
journal = {Small Structures Letters},
year = {2022}
}
@article{valid-first,
author = {Lena Fischer},
title = {A Second Entry That Reuses the First Key},
journal = {Mountain Hydrology},
year = {2024}
}
Download by Size (10KB - 1MB)
Need a practical file size for load testing? Download generated dummy files near the selected size. Container formats such as XLSX and DOCX may vary slightly because of compression.
10 KB
Small sample for basic testing
100 KB
Medium sample for throughput testing
1 MB
Large sample for benchmark testing
The parts of one BibTeX entry
Every reference in a .bib file has the same four parts. This is the first sample, taken apart.
| Text | What it is |
|---|---|
| @article | The entry type. It decides which fields are required and how a style prints the reference. |
| {mensah2024tides, | The citation key. This is the name you put in a \cite command, so it has to be different for every entry. |
| author = {Ada Mensah}, | A field: a name, an equals sign and a value, followed by a comma. The value sits in braces or in double quotes. |
| year = {2024} | The last field. A number may also be written with no braces or quotes. |
| } | The closing brace that ends the entry. One missing or extra brace anywhere above it breaks the entry. |
The 14 standard entry types and the fields each one requires
This table follows BibTeXing , the manual by Oren Patashnik that ships with BibTeX. A standard style warns when a required field is missing. The all-types sample has exactly these fields filled in.
| Type | Used for | Required fields |
|---|---|---|
| @article | An article from a journal or magazine | author, title, journal, year |
| @book | A book with an explicit publisher | author or editor, title, publisher, year |
| @booklet | A printed and bound work without a named publisher | title |
| @conference | The same as inproceedings | author, title, booktitle, year |
| @inbook | A part of a book, such as a chapter or a page range | author or editor, title, chapter and/or pages, publisher, year |
| @incollection | A part of a book that has its own title | author, title, booktitle, publisher, year |
| @inproceedings | An article in conference proceedings | author, title, booktitle, year |
| @manual | Technical documentation | title |
| @mastersthesis | A Master's thesis | author, title, school, year |
| @misc | Anything that fits nowhere else | none |
| @phdthesis | A PhD thesis | author, title, school, year |
| @proceedings | The proceedings of a conference | title, year |
| @techreport | A report published by a school or institution | author, title, institution, year |
| @unpublished | A document with an author and title that was not formally published | author, title, note |
The manual adds a practical note: no scheme with this few types fits every source, so @misc with a howpublished or note field is a normal choice for datasets, web pages and software.
Three ways to write an author's name
BibTeX splits each name into first, von, last and Jr parts, and it accepts three layouts. The name-forms sample uses all of them.
First von Last, as inLudwig van der Bergvon Last, First, as invan der Berg, Ludwigvon Last, Jr, First, as inWhitfield, Jr, Harold
Several authors are joined with the word and, never with commas. A list that is too long can end with and others, which the standard styles print as et al. Lowercase words such as van and de are read as the von part, which is why the comma forms are safer for unusual surnames.
An organisation needs a second pair of braces, as in {{Open Mapping Collective}}. Without them, BibTeX reads the last word as a surname and the rest as first names.
Accents and capitals: what the braces are for
Inside a value, braces do two separate jobs. The accents sample shows both.
Accented and special letters
The manual's way to write an accented letter is the LaTeX command inside its own braces: {\"o} or {\"{o}}. The braces have to enclose the whole accented character, the backslash has to be the first thing inside them, and they must not be wrapped in another pair apart from the field's own. Written this way, BibTeX counts the group as one letter when it sorts and builds labels.
Protected capitals
Styles are free to lowercase a title. Anything you put in braces is left alone, so {DNA} stays DNA and {K}enya keeps its capital K. A whole title wrapped in a second pair of braces is protected entirely, which also stops a style from applying its own capitalisation rules.
Macros, month names and joined values
An @string command gives a name to a piece of text, so a long journal title is typed once. The name is then used as a field value with no braces or quotes around it:
@string{jcs = "Journal of Coastal Studies"}
journal = jcs,The # character joins pieces into one value, and the pieces can be macros or quoted text. In the macros sample, fir # ", Short Communications" becomes "Field Instruments Review, Short Communications", and "15~" # nov combines a day with the built-in month macro. Standard styles define three-letter macros for the months, which is why month = mar has no quotes.
The same file has a second special command. @preamble holds LaTeX code that is copied into the output, usually to define a command the entries use. It appears in the preamble sample together with a comment block and an entry delimited by parentheses.
Cross references, and why the shared entry goes last
When several papers come from one volume, the volume can be described once. Each paper gets a crossref field naming the volume's key and inherits the fields it is missing, such as the year and the publisher.
The manual sets one condition: the entry being referred to must come later in the file than every entry that refers to it. Putting shared entries at the end is the simple way to meet it. A sorted or merged bibliography can break this rule without anyone noticing, so the cross-reference sample is a good file to run through any tool that reorders entries.
BibTeX facts from the manual
| File extension | .bib |
| Kind of file | Plain text, edited in any text editor |
| Current version | BibTeX 0.99e, maintained by Oren Patashnik |
| Manual | BibTeXing, dated 8 February 1988 |
| Standard entry types | 14, counting conference as an alias of inproceedings |
| Value delimiters | Braces or double quotes; numbers and macro names need none |
| Special commands | @string, @preamble and @comment |
| Joining values | The # character |
| Unknown fields | Allowed, and ignored by the standard styles |
| Comments | Any text outside an entry |
The program and its documentation are on CTAN .
List the entries of a sample in Python
This uses version 1 of the bibtexparser package, the same parser that checked every file on this page. It was run against the all-types sample.
import bibtexparser
with open("sample-all-standard-entry-types.bib", encoding="utf-8") as f:
library = bibtexparser.load(f)
for entry in library.entries:
print(entry["ENTRYTYPE"], entry["ID"], "-", entry["title"])It prints 14 lines, one per entry, starting with the article and ending with the unpublished draft. Run it on the invalid sample and it returns fewer entries than the file contains, which is the quickest sign that something in a .bib file is broken.
Questions about BibTeX test files
What is a .bib file?
A .bib file is a plain text database of references in BibTeX format. Each reference is an entry with a type such as @article, a citation key, and a list of fields. LaTeX reads the file through BibTeX or a compatible program and prints only the entries a document cites.
Which entry types does BibTeX define?
The BibTeX manual lists 14: article, book, booklet, conference, inbook, incollection, inproceedings, manual, mastersthesis, misc, phdthesis, proceedings, techreport and unpublished. Conference is the same as inproceedings. The second sample on this page has one entry of each.
Should field values use braces or double quotes?
Either works. A value can be wrapped in braces or in double quotes, and a number can be written with no delimiter at all. The samples here mostly use braces, and the macros sample and the parenthesis entry show quotes and bare numbers.
Why do the capital letters in my title turn into lowercase?
Many bibliography styles convert titles to lowercase after the first word. To keep a capital, put it in braces, as in {DNA} or {K}enya. The accents sample has a title with protected capitals so you can see whether your style and your software respect them.
How do I write accented characters in BibTeX?
The manual's method is a LaTeX accent command inside its own pair of braces, such as {\"o} for an o with an umlaut. The braces must enclose the whole accented character and start with the backslash, and they must not sit inside another pair of braces other than the field's own.
What happens to fields such as doi and url?
An entry may contain any field. The manual says fields that the standard styles do not recognise are ignored by those styles, so a doi or url does no harm. Other styles and most reference managers do use them, which is why exports are full of them.
Can I put comments in a .bib file?
Yes. BibTeX treats any text that is not inside an entry as a comment, and it also accepts an @comment command. To switch an entry off, the manual suggests removing the @ sign in front of its type.
How do I find duplicate references in a .bib file?
Look for three things: the same citation key used twice, the same DOI under different keys, and the same title and year under different keys. The duplicates sample contains all three, and the BibTeX merger on this site detects each one and reports what it removed.
Where to take these files next
- BibTeX merger: combine several .bib files and remove duplicates. The duplicates sample and the invalid sample are made for it.
- BibTeX tools: everything on this site for .bib files.
- Large text file viewer: open the 1 MB bibliography without loading it into an editor.
- All sample files for other formats.