# Latex Bibliography Two Column

By:

Two-column documents can be easily created passing the parameter to the document class statement. If you need more flexibility in the column layout, or to create a document with multiple columns, the package multicol provide a set of commands for that. This article explains how to import and use that package.

## Introduction

A flexible tool to handle multicolumn documents in LaTeX is multicol, below an example:

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage{multicol}   \begin{document}\begin{multicols}{3}[\section{First Section} All human things are subject to decay. And when fate summons, Monarchs must obey. ] Hello, here is some text without a meaning. This text should show what a printed text will look like at this place. If you read this text, you will get no information. Really? Is there no information? Is there... \end{multicols}   \end{document}

To import the package, the line

is added to the preamble. Once the package is imported, the environment can be used. The environment takes two parameters.

• Number of columns, this parameter must be passed inside braces. Its value is 3 in the example.
• "Header text", in between brackets. This is optional and will be displayed on top of the multicolumn text. Any LaTeX command can be used here, except floating elements such as figures and tables. In the example, the section title and a small paragraph are set here.

The text enclosed inside the tags and is printed in multicolumn format.

Open an example of the multicols package in ShareLaTeX

## Column separation

The column separation is determined by . See the example below:

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage{multicol}\setlength{\columnsep}{1cm}   \begin{document}\begin{multicols}{2}[\section{First Section} All human things are subject to decay. And when fate summons, Monarchs must obey. ] Hello, here is some text without a meaning. This text should show what a printed text will look like at this place. If you read this text, you will get no information. Really? Is there no information? Is there... \end{multicols}   \end{document}

Here, the command sets the column separation to 1cm. See Lengths in LaTeX for a list of available units.

Open an example of the multicols package in ShareLaTeX

## Unbalanced columns

In the default environment the columns are balanced so each one contains the same amount of text. This default format can be changed by the stared environment :

\begin{multicols*}{3}[\section{First Section} All human things are subject to decay. And when fate summons, Monarchs must obey. ] Hello, here is some text without a meaning. This text should show what a printed text will look like at this place. If you read this text, you will get no information. Really? Is there no information? Is there... \end{multicols*}   \end{document}

In this case the text is printed in a column till the end of the page is reached, then the in continues in the next column and so on.

Open an example of the multicols package in ShareLaTeX

## Inserting floating elements

Floating elements (tables and figures) can be inserted in a multicolumn document with and .

\begin{multicols}{2}[\section{First Section} All human things are subject to decay. And when fate summons, Monarchs must obey. ]   \Blindtext   Hello, here is some text without a meaning. This text should show what a printed text will look like at this place. If you read this text, you will get no information. Really? Is there no information? Is there.   \vfill   \begin{wrapfigure}{l}{0.7\linewidth}\includegraphics[width=\linewidth]{./lion-logo.png}\caption{This is the Share\LaTeX{} logo}\end{wrapfigure}   A blind text like this gives you information about the selected font, how the letters are written and an impression of the look. This text should contain all...   \begin{wraptable}{l}{0.7\linewidth}\centering\begin{tabular}{|c|c|}\hline Name & ISO \\\hline Afghanistan & AF \\ Aland Islands & AX \\ Albania &AL \\ Algeria &DZ \\ American Samoa & AS \\ Andorra & AD \\ Angola & AO \\\hline\end{tabular}\caption{Table, floating element}\label{table:ta}\end{wraptable}   \end{multicols}   \end{document}

Floats in the multicol package are poorly supported in the current version. Elements inserted with the conventional and environments will show up only at the top or bottom of the next page after they are inserted, and will break the layout. The example presented here is a workaround, but you may expect some rough edges. For instance, if the float width is set to it causes a weird text overlapping. This said, below is a brief description of the commands:

• . Put this line in the preamble to import the package wrapfig
• The environment is the equivalent to wrapfigure but for tables. See Positioning images and tables for more information.

Open an example of the multicols package in ShareLaTeX

## Inserting vertical rulers

A vertical ruler can be inserted as column separator to may improve readability in some documents:

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage{multicol}\usepackage{color}   \usepackage{comment}   \setlength{\columnseprule}{1pt}\def\columnseprulecolor{\color{blue}}   \begin{document}   \begin{multicols}{3}[\section{First Section} All human things are subject to decay. And when fate summons, Monarchs must obey. ]   Hello, here is some text without a meaning. This text should show what a printed text will look like at this place.   If you read this text, you will get no information. Really? Is there no information? Is there.   \columnbreak   This will be in a new column, here is some text without a meaning. This text should show what a printed text will look like at this place.   If you read this text, you will get no information. Really? Is there no information? Is there... \end{multicols}   Something else here. The text should not be multicolumned in this part   \end{document}

As you see, the column separator can be set to a specific colour also. Below a description of each command:

.
This line is inserted in the preamble to enable the use of several colours within the document.
This determines the width of the ruler to be used as column separator, it's set to 0 by default. In the example a column whose width is 1pt is printed.
The colour of the separator ruler is set to blue. See the article about using colours in LaTeX for more information on colour manipulation.
This command inserts a column break point, the behaviour of the text in this case is different from what you may expect. The column break is inserted, then the paragraphs before the break point are evenly distributed to fill all available space. In the example the second paragraph is at the bottom of the column and a blank space is inserted in between the second and the first paragraphs.

Open an example of the multicols package in ShareLaTeX

## 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?