# Latex Thebibliography Title Size

When it comes to bibliography management packages, there are three main options in LaTeX: bibtex, natbib and biblatex. Biblatex is a modern program to process bibliography information, provides an easier and more flexible interface and a better language localization that the other two options. This article explains how to use biblatex to manage and format the bibliography in a LaTeX document.

## Introduction

A minimal working example of the biblatex package is shown below:

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage{biblatex}\addbibresource{sample.bib}   \begin{document} Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's book \cite{dirac} are physics related items.   \printbibliography   \end{document}

There are four bibliography-related commands in this example:

Imports the package biblatex.
Imports the bibtex data file sample.bib, this file is the one that includes information about each referenced book, article, etc. See the bibliography file section for more information.
This command inserts a reference within the document, [1] in this case, that corresponds to an element in the bibliography, "einstein" is a keyword corresponding to an entry in sample.bib.
Prints the list of cited references, the default title is "References" for the article document class and "Bibliography" for books and reports.

ShareLaTeX provides several templates with pre-defined styles to manage bibliography. See this link

Open an example of the biblatex package in ShareLaTeX

## Basic usage

Several parameters can be passed to the package importing statement, let's see

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage{comment}   \usepackage[ backend=biber, style=alphabetic, sorting=ynt ]{biblatex}\addbibresource{sample.bib}   \title{Bibliography management: \texttt{biblatex} package}\author{Share\LaTeX}\date{}   \begin{document}   \maketitle   Using \texttt{biblatex} you can display bibliography divided into sections, depending of citation type. Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's book \cite{dirac} are physics related items. Next, \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Donald Knuth's website \cite{knuthwebsite}, \textit{The Comprehensive Tex Archive Network} (CTAN) \cite{ctan} are \LaTeX\ related items; but the others Donald Knuth's items \cite{knuth-fa,knuth-acp} are dedicated to programming.   \medskip   \printbibliography

Some extra options, inside brackets and comma-separated, are added when importing biblatex:

Sets the backend to sort the bibliography, is the default one and recommended since it provides full localization for several commands and the styles for biber are easier to modify because they use standard LaTeX macros. The other supported backend is , which is a more traditional program; if set as backend will only used to sort the bibliography, so no bibtex styles can be used here.
Defines the bibliography style and the citation style, in this case . Depending on the style more citation commands might be available. See bibliography styles and citation styles for more information.
Determines the criteria to sort the bibliographic sources. In this case they are sorted by year, name and title. See the reference guide for a list of sorting options.

The rest of the commands were already explained at the introduction.

Open an example of the biblatex package in ShareLaTeX

## The bibliography file

The bibliography files must have the standard bibtex syntax

This file contains records in a special format, for instance, the first bibliographic reference is defined by:

This is the first line of a record entry, tells BibTeX that the information stored here is about an article. The information about this entry is enclosed within braces. Besides the entry types shown in the example (, , and ) there are a lot more, see the reference guide.
The label is assigned to this entry, is an identifier that can be used to refer this article within the document.
This is the first field in the bibliography entry, indicates that the author of this article is Albert Einstein. Several comma-separated fields can be added using the same syntax , for instance: title, pages, year, URL, etc. See the reference guide for a list of possible fields.

The information in this file can later be printed and referenced within a LaTeX document, as shown in the previous sections, with the command . Not all the information in the .bib file will be displayed, it depends on the bibliography style set in the document.

Open an example of the biblatex package in ShareLaTeX

## Customizing the bibliography

Biblatex allows high customization of the bibliography section with little effort. It was mentioned that several citation styles and bibliography styles are available, and you can also create new ones. Another customization option is to change the default title of the bibliography section.

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage{comment}   \usepackage[ backend=biber, style=alphabetic, sorting=ynt ]{biblatex}\addbibresource{sample.bib}   \title{Bibliography management: \texttt{biblatex} package}\author{Share\LaTeX}\date{}   \begin{document}   \maketitle   Using \texttt{biblatex} you can display bibliography divided into sections, depending of citation type. Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's book \cite{dirac} are physics related items. Next, \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Donald Knuth's website \cite{knuthwebsite}, \textit{The Comprehensive Tex Archive Network} (CTAN) \cite{ctan} are \LaTeX\ related items; but the others Donald Knuth's items \cite{knuth-fa,knuth-acp} are dedicated to programming.   \medskip   \printbibliography[title={Whole bibliography}]

The additional parameter passed inside brackets to the command is the one that changes the title.

The bibliography can also be subdivided into sections based on different filters, for instance: print only references from the same author, the same journal or similar title. Below an example.

\printbibliography[type=article,title={Articles only}]\printbibliography[type=book,title={Books only}]   \printbibliography[keyword={physics},title={Physics-related only}]\printbibliography[keyword={latex},title={\LaTeX-related only}]

Here, the bibliography is divided in 4 sections. The syntax of the commands used here is explained below:

Only prints entries whose type is "article", and sets the title "Articles only" for this section. The same syntax works for any other entry type.
Filters bibliography entries that include the word "physics" in any of the fields. Sets the title "Physics-related only" for said section.

Open an example of the biblatex package in ShareLaTeX

For the bibliography the be printed in the table of contents an extra option must be passed to

• The second case is that adds the title as a second level entry in the table of contents, in this example as a subsection nested in "Whole bibliography".

Open an example of the biblatex package in ShareLaTeX

## Reference guide

Supported entry types

 article book mvbook inbook bookinbook suppbook booklet collection mvcollection incollection suppcollection manual misc online patent periodical suppperiodical proceedings mvproceedings inproceedings reference mvreference inreference report set thesis unpublished custom conference electronic masterthesis phdthesis techreport

Supported entry fields (The printed information depends on the bibliography style)

 abstract afterword annotation annotator author authortype bookauthor bookpagination booksubtitle booktitle chapter commentator date doi edition editor editortype eid entrysubtype eprint eprinttype eprintclass eventdate eventtitle file foreword holder howpublished indextitle institution introduction isan isbn ismn isrn issue issuesubtitle issuetitle iswc journalsubtitle journaltitle label language library location mainsubtitle maintitle month note number organization origdate origlanguage origlocation origpublisher origtitle pages pagetotal pagination part publisher pubstate reprinttitle series shortauthor shortedition shorthand shorthandintro shortjournal shortseries shorttitle subtitle title translator type url venue version volume year

Bibliography sorting options

option description
sort by name, title, year
sort by name, year, title
sort by name, year, volume, title
sort by alphabetic label, name, year, title
sort by alphabetic label, name, year, volume, title
sort by year (descending), name, title
entries are processed in citation order

@article{einstein, author = "Albert Einstein", title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) [{On} the electrodynamics of moving bodies]", journal = "Annalen der Physik", volume = "322", number = "10", pages = "891--921", year = "1905", DOI = "http://dx.doi.org/10.1002/andp.19053221004", keywords = "physics" }   @book{dirac, title={The Principles of Quantum Mechanics}, author={Paul Adrien Maurice Dirac}, isbn={9780198520115}, series={International series of monographs on physics}, year={1981}, publisher={Clarendon Press}, keywords = {physics} }   @online{knuthwebsite, author = "Donald Knuth", title = "Knuth: Computers and Typesetting", url = "http://www-cs-faculty.stanford.edu/~uno/abcde.html", keywords = "latex,knuth" }   @inbook{knuth-fa, author = "Donald E. Knuth", title = "Fundamental Algorithms", publisher = "Addison-Wesley", year = "1973", chapter = "1.2", keywords = "knuth,programming" } ...

## REVTeX 4 - Frequently Asked Questions

REVTeX 4 Home

The current version is REVTeX 4.1 (patch level 2), released on August 11, 2010.

## Bugs/Workarounds

March 15, 2010: A new release of REVTeX 4.1 has been made public. The following bugs were addressed:

• Using the same \affiliation more than once results in some authors not getting any affiliation at all.
• reftest was left out of the distribution
• For RMP, the \cite command doesn't enclose the citation in parentheses properly.
• For RMP, the .bst files don't properly handle several cases including a book with editors, but no authors

In addition, there were many other improvements including the handling of footnotes, compatibility with packages such as lscape and hyperref, and punctuation in bibliographies. Also, the "long" version of the BibTeX style files have been removed from the distribution. The remaining style files have been enhanced to provide the same functionality when the longbibliography class option is used.

## Changes from REVTeX 4

The current release of REVTeX 4.1 may be download directly from this site as a zipfile: revtex4-1.zip. In addition, it may be found on CTAN in the latex/contrib/revtex directory.

Where do I get a TeX installation?

• TeX Live is available for many platforms from the TeX Live home page. It is updated annually and it is a rather comprehensive distribution. REVTeX 4.1 has been part of TeX Live starting with its 2010 distribution.
• MacTeX for Mac users is made available via the MacTeX package on the TUG site.
• MiKTeX is also a free Windows TeX installation. You might be interested in downloading the up-to-date MiKTeX installer. Choose either the basic system or the complete MiKTeX system.
• Scientific Word is another option for using LaTeX on Windows. It is available from Mackichan Software.
• PCTeX is still another option for Windows available from their website.

Is REVTeX 4.0 still available?

REVTeX 4.0 may still be needed for legacy documents. Most REVTeX 4 documents should run under REVTeX 4.1 as well. Many TeX distributions remove older packages, so you may need to install REVTeX 4 yourself. It can be downloaded as the zip file revtex4.zip. REVTeX 4 and REVTeX 4.1 can be installed side-by-side on the same computer without interfering each other. New documents should be created using REVTeX 4.1, especially if you are planning on submitting to an APS journal.

## Installing REVTeX 4

I have a TeX installation. How do I install REVTeX 4.1?

Many up-to-date TeX installations already include REVTeX 4.1. Installation for TeX Live and MikTeX is fairly straightforward because both use the standard TeX Directory Structure (TDS) layout for their files. See the README file included in the REVTeX 4.1 distribution for basic instructions. REVTeX 4.1 comes as a zip file using the same TDS layout. Usually one only need unzip the revtex4-1-tds.zip file in the proper place and run a program to update where TeX looks for files. See the README and the documentation for your TeX distribution on which program to run.

For other TeX distributions, please consult that distribution's documentation.

REVTeX 4 and 4.1 can be installed side-by-side on the same computer. The files in 4.1 are all versioned.

## Using REVTeX 4.1

Are there any templates to help with producing my paper?

REVTeX 4.1 comes with template files called apstemplate.tex for APS journals and aiptemplate.tex for AIP journals. They are located in the doc/latex/revtex/sample directory.

How do I achieve a one-column, double-spaced, 12 pt document?

Using \documentclass[preprint,...]{revtex4-1} gives 12 pt., one-column, double-spaced look used for the review/production process.

How do I make my paper look like the journal?

Using \documentclass[reprint,...]{revtex4-1} gives the look and feel of the journal (whether the journal is set in one or two columns). You may use the twocolumn class option to force a two-column layout.

How do I format a one-page comment or erratum?

Just format it as a regular article. REVTeX doesn't support comments or errata directly. It will be formatted in the production stage of the processing of the manuscript.

How do I change the numbering of pages?

The standard LaTeX 2e method should work: \setcounter[page]{321}. Any standard LaTeX2e manual should be able to help you with this.

How do I remove all page numbers?

You should be able to use the standard LaTeX 2e \pagestyle{empty}. Please consult any LaTeX 2e manual.

How do I choose the square bracket or superscript style for citations?

The citation style is set by the journal option you choose. For APS journals, only the prb option gives superscript-style citations.

Why is the compiler rejecting the \Bbb command and recommending the \mathbb command?

Be sure you are using the amssymb math package by specifing the amssymb class option:
\documentclass[...,amssymb,...]{revtex4-1}

How do I format long equations in a preprint format?

If you want them typeset with a certain set of line breaks, you should force the line breaks in your preprint style submission. Our typesetter is the final arbiter of how the math is set, so it may be changed in production. You may include a note in your cover letter indicating why you prefer to have the equations typeset with the line breaks. You will also be given the opportunity to comment on the formatting at the author proofs stage.

Why is there no top margin when I print?

The bounding box is cutting off the top of the page. Be sure that your dvips is configured to use letter size and not A4 size paper. If you are running Unix, try using the texconfig command to check and fix the default size.

Can I use REVTeX 4.1 to prepare a contribution to an AIP journal?

Yes, REVTeX 4.1 introduced full support for all AIP journals. Please consult Author's Guide to AIP Substyles for REVTeX 4.1. Questions regarding AIP journals should be sent to tex@aip.org.

How do I add line numbers to my document?

Use the linenumbers class option: \documentclass[...,linenumbers,...]{revtex4-1}. This will call in lineno.sty (and patch it to work with REVTeX 4.1).

## Page Length

Can I use REVTeX 4.1 to estimate the length of my submission?

Although using the reprint option in REVTeX 4.1 typesets the text area and font sizes appropriately for each journal, the formatting in REVTeX 4.1 is not exact enough for determining the final length of an article once it goes through journal production (which involves converting the article to XML). Different fonts and figure scalings are the largest sources of error. Use of Times-Roman fonts can partially mitigate the problem. Length estimates at APS are calculated as described in our Length Guide. For AIP length requirements, please consult their web site.

## Bugs/Workarounds

Why does \tag not work with hyperref?

This isn't really a REVTeX 4.1 bug. There is an incompatibility between AMSTeX's \tag command and hyperref. We don't know of a workaround.

## BibTeX

Is there any link to the BibTeX Guide mentioned in the REVTeX 4 documentation?

This was an error in the REVTeX 4 documentation and has been addressed in REVTeX 4.1. At this point in time, there is no separate BibTeX guide. A good LaTeX book will contain an intro to BibTeX and help you through the process. We can answer specific questions if you have them.

How do I put multiple references in the same bibliography entry?

Combining multiple references into a single bibliography entry when using BibTeX was one of the most common problems authors run into. During the development of REVTeX 4.1, we worked with Patrick Daly to add enhancements to his natbib package to make this straightforward. To combine two references together, prepend an * to the argument of the \cite command. For instance, if you want the bibitems with keys feynman and bohr combined into a single entry, use \cite{feynman,*bohr}. The references will be separated by a semicolon in a single entry.

Another feature of natbib and REVTeX 4.1 is to allow the prepending or appending of text to an entry in the bibliography. This is done via \cite{*[{prepended text}][{appended text}]key}. Note the use of the curly braces within the square bracket to avoid problems with the processing of the text. See the REVTeX 4.1 documentation for more information.

The natbib.sty files are available at CTAN in the macros latex/contrib/natbib directory.

Is it necessary to have the same citation order in a .bib file?

The order in the BibTeX entries in the .bib file is irrelevant. Only the order of the \cite commands matters.

How can I make the titles of cited journal articles appear in the bibliography?

REVTeX 4.1 calls in a default BibTeX Style (.bst) file for each supported journal. The .bst files support displaying the titles of cited journal articles in the bibliography. To display the titles, simply use the "longbibliography" class option. Consult the REVTeX 4.1 documentation for more information.

How do I include an accent in an author's name?

Try surrounding the entire name in an additional set of braces. Or, try isolating the accented letter as {\"u}.

How do I keep footnotes in order of appearance within the text instead of having them appear at the end of the bibliography?

REVTeX 4.1 uses the footnote style appropriate for the chosen journal. You can override the journal default by using the 'footinbib' or 'nofootinbib' options (see the command summary documentation included with REVTeX 4.1).

I received warning messages about missing references when I ran LaTeX on my file.

While in the directory containing the TeX files, run the following:

• latex file.tex
• bibtex file (creates the .bbl file)
• latex file.tex (runs latex on the .tex and .bbl files together)
• latex file.tex (second run of latex corrects the citations)

BibTeX will have created a .bbl file. When submitting to APS or AIP journals, we ask that you include the final .bbl directly into the main .tex file.

How do I get a truncated reference, e.g., "Ann Author et al." when there are 5 or more authors?

The BibTeX style files distributed with REVTeX 4.1 no longer truncate the author lists of references (REVTeX 4's .bst files would truncate the list if there were more than 10 authors). APS editors prefer full author lists be used for references with 15 or less authors. For longer lists, use the phrase "and others" in place of the authors you want to omit.

I received a fatal error: Warning--I didn't find a database entry for "endnote 1" ... you've exceeded BibTeX's wizard-defined function space 3000.

The REVTeX 4.1 BibTeX style files are fairly demanding but most up-to-date TeX installations come with a big enough space for BibTeX. Your TeX distrubtion's BibTeX may have have a command line flag or configuration parameter to increase this space.

## Figures

How do I include PostScript figures?

Assuming you are using REVTeX 4.1:

\usepackage{graphics} (or graphicx)
...
\begin{figure}
\caption{\label{foo} ....}
\includegraphics{foo.eps}
\end{figure}

Please see the "Documentation" section of the REVTeX 4 Home Page or any good book on LaTeX2e.

How do I generate a page that shows a list of figures with their captions?

Use the endfloats option and leave out the \includegraphics - this will list all of the figures at the end of the paper. APS no longer requires this so we don't support it particularly well. It is not needed for production or editorial purposes. It is better to have the figures in the text for the referees to see.

Can I place a caption in the second column next to a long, full-column-wide figure?

No, unfortunately the REVTeX 4.1 layout isn't that sophisticated.

When there are two figures on the same page, the second one doesn't seem to appear.

Please check your log file. You should be receiving error messages; i.e., could not place figure, or something similar. It should not just be ignoring the figure. You can try the floatfix option and see if that helps.

Is there a way to convert .jpg (.jpeg) files to .ps or .eps?

You can convert it to a similarly sized EPS file via a program called 'jpeg2ps.' The jpeg2ps program puts a simple PostScript Level II wrapper around the JPEG. The size shouldn't change at all. (You might try making sure that exporting Level II EPS.)

How do I get the LaTeX compiler to recognize the command \includegraphics?

You need to either use \usepackage{graphics} or \usepackage{graphicx}
Somewhere in your TeX distribution is a file called grfguide.ps or grfguide.dvi. You may want to read it to learn how to resize and reposition your graphics. Alternatively, search at CTAN for "grfguide" to locate a copy of the guide.

## Changes from REVTeX 4

What changes were made with upgrading from REVTeX 4 to REVTeX 4.1?

A complete list of specific differences between REVTeX 4 and REVTeX 4.1 is given in the REVTeX documentation included in the REVTeX 4.1 distribution. The file is whatsnew4-1.pdf in the doc/latex/revtex/auguide directory.

## Help with REVTeX 4.1

How can I get more help with REVTeX 4.1?