BibTeX, biblatex and biberCitations, references, ampersand, and "and"

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
anettow
Posts: 5
Joined: Thu Oct 08, 2009 5:06 pm

Citations, references, ampersand, and "and"

Post by anettow »

Hi, all.

I am submitting to a journal that requires me to use "and" for in-text citations but an ampersand ("&") for the references. For example, they want:

citation:
"In a study of yadda yadda yadda, blah blah blah (Jones and Smith, 1995)."

reference:
"Jones, H. J. & Smith, D. B. 1995. A study about nothing. J. Silly. Sci. 8:54-67."

Is there a way for BibTex to distinguish between these two formats?

I used merlin to make the bibliography files, but I am not able to upload the .dbj and .bst files to this posting. In the .dbj file is the choice between

Code: Select all

Use word `and'
and

Code: Select all

amper
, which I assume refers to both the citation and the reference.

Thanks for your thoughts. Some day biological journal formats will make sense.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Citations, references, ampersand, and "and"

Post by kaiserkarl13 »

I'm fairly sure the "and" in the citation is generated by the \cite command (and thus by natbib or its equivalent), while the "&" is generated by BibTeX. So changing your .dbj file should produce precisely what you're looking for.
anettow
Posts: 5
Joined: Thu Oct 08, 2009 5:06 pm

Citations, references, ampersand, and "and"

Post by anettow »

Thanks for the suggestion. In my .dbj file I changed

Code: Select all

amper
to

Code: Select all

and
, so now I have '&' in my citations and 'and' in my references, which is the exact opposite of what I need.

Does natbib always have '&' in the citation? I'm trying some of the other styles, but most online information doesn't give the two-author example.
anettow
Posts: 5
Joined: Thu Oct 08, 2009 5:06 pm

Citations, references, ampersand, and "and"

Post by anettow »

For anyone else submitting to the Journal of Phycology, here's my hack.

In the .dbj file, for the <<AMPERSAND selection, I chose the varand, or \BIBand option:

Code: Select all

%<<AMPERSAND:
%  %:(def) Use word 'and' in author lists
%  amper,%. User ampersand in place of 'and'
varand,% Use \BIBand in place of 'and'
In the preamble:

Code: Select all

\providecommand{\BIBand}{and}
which sets all the in-text citations to 'and.'
Just before the bibliography:

Code: Select all

\renewcommand{\BIBand}{\&}
to get a '&' in the references.

If you have multiple chapters with their own reference sections, use

Code: Select all

\renewcommand(\BIBand){}
again to alternate between 'and' or '&'.

There must be a more elegant solution, and I love to hear more ideas.
Post Reply