Discussion:
citation style with parentheses around each reference number
(too old to reply)
n***@gmail.com
2008-01-12 22:35:50 UTC
Permalink
I'm preparing a manuscript to submit to a scientific journal which has
the following requirement for the appearance of reference citations:

"Reference call-out numbers in the text should be typed on the line,
in parentheses and underlined (example (1) (2) (3) (4)) in contrast to
the way they appear in the Journal."

[the numbers above are _underlined_ in the actual instructions].

I can't figure out how to achieve this (insane) format using bibtex,
with or without natbib, using standard citation commands. It also
isn't clear to me if the list of parenthesized references is itself in
parenthesized - ie ((1) (2) (3) (4)) versus (1) (2) (3) (4) - so I'll
probably need to figure out how to do both.

Can anyone offer advice or links to an appropriate reference?

Any help is appreciated...
vvvv
2008-01-12 23:39:20 UTC
Permalink
The "round" and "numbers" option to natbib create numbers with rounded
(as opposed to square or curly) parentheses around the citation. I
did notice that in the bibliography, there are square brackets. Is
that OK. Here is a complete example, but you have to put your bibtex
filename instead of "TheNameOfMyBibtexDatabase"



\documentclass[12pt]{book}
\usepackage[numbers,round]{natbib}
% I edited plainnat.bst to change " and " to " \& " in several places
\begin{document}

this is the body of my document with a citation: \cite{th:bcconfined},
this is another cite \cite{gb:boxcox}
\bibliographystyle{plainnat}
\bibliography{TheNameOfMyBibtexDatabase}
\end{document}
n***@gmail.com
2008-01-13 00:20:46 UTC
Permalink
Post by vvvv
\usepackage[numbers,round]{natbib}
Thanks for this, but I'm also looking to add parentheses around each
numeral in the list. For example, given the citation

\citep{ref1,ref2}

my understanding is that your example would generate

(1,2)

but I'm looking for ((1)(2)) with the added requirement that each
numeral be underlined.
Tom Micevski
2008-01-13 01:35:11 UTC
Permalink
Post by n***@gmail.com
Post by vvvv
\usepackage[numbers,round]{natbib}
Thanks for this, but I'm also looking to add parentheses around each
numeral in the list. For example, given the citation
\citep{ref1,ref2}
my understanding is that your example would generate
(1,2)
but I'm looking for ((1)(2)) with the added requirement that each
numeral be underlined.
does this give the "double brackets" that you are after? (i've no idea
about the underlining)
\citep{ref1}\citep{ref2}
Donald Arseneau
2008-01-13 02:02:13 UTC
Permalink
Post by n***@gmail.com
"Reference call-out numbers in the text should be typed on the line,
in parentheses and underlined
\usepackage{cite}
\renewcommand\citeleft{} % No brackets around group
\renewcommand\citeright{}
\renewcommand\citepunct{\ } % space, no comma, between numbers
\renewcommand\citeform[1]{(#1)} % parentheses around each number

This may result in (1)-(5) for contiguous ranges. If that is not
allowed,
then

\usepackage[nocompress]{cite}

Donald Arseneau ***@triumf.ca
n***@gmail.com
2008-01-13 04:26:40 UTC
Permalink
Post by Donald Arseneau
\usepackage{cite}
\renewcommand\citeleft{} % No brackets around group
\renewcommand\citeright{}
\renewcommand\citepunct{\ } % space, no comma, between numbers
\renewcommand\citeform[1]{(#1)} % parentheses around each number
This may result in (1)-(5) for contiguous ranges.  If that is not
allowed,
then
\usepackage[nocompress]{cite}
Donald,

I realize that I provided incomplete information: I'm using a
stylesheet that relies on natbib (apparently incompatible with cite),
and I use \citep{} frequently in the text. Otherwise your solution
would have solved my problem. (Tom: thanks also for your response -
it's very sensible, but requires manual sorting of the references
within the citation).

I looked more closely at the natbib docs, and I came up with a nearly
complete solution:

\usepackage[sort]{natbib}
\newcommand{\citenumfont}[1]{\underline{#1}}
\bibpunct{(}{)}{)(}{n}{}{}

Now \citep{ref2,ref1,ref3} generates (1)( 2)( 3) with the numerals
underlined. But for clarity, that's (1)(_2)(_3) [underscore=space]

Here's where I'm stuck: how do I get rid of that space that's added by
default after the citation separator ")("?
vvvv
2008-01-13 05:09:30 UTC
Permalink
to remove that extra space inside the parentheses, I used two,
separate \cite commands with no space in between. Here is a complete
example that shows various formats:

\documentclass[12pt]{book}
\usepackage[sort]{natbib}
\newcommand{\citenumfont}[1]{\underline{#1}}
\bibpunct{(}{)}{)(}{n}{}{}
\begin{document}

this is a citation: \cite{th:bcconfined}, this is another cite
\cite{gb:boxcox}. this has two in one \cite{th:bcconfined,gb:boxcox}.

This is two separate cites: \cite{th:bcconfined}\cite{gb:boxcox}.
\bibliographystyle{plainnat}
\bibliography{MyBibDatafileName}
\end{document}
n***@gmail.com
2008-01-13 05:32:08 UTC
Permalink
Post by vvvv
to remove that extra space inside the parentheses, I used two,
separate \cite commands with no space in between.  Here is a complete
<snip>
Post by vvvv
This is two separate cites: \cite{th:bcconfined}\cite{gb:boxcox}.
Hi vvvv -
Thanks for the reply - I agree that two separate cites gives the
correct visual appearance, but it means that I would need to manually
sort the citations to have them appear in the correct order (refs are
numbered according to the order of appearance in the manuscript).
Joseph Wright
2008-01-13 07:52:46 UTC
Permalink
Post by n***@gmail.com
Post by vvvv
to remove that extra space inside the parentheses, I used two,
separate \cite commands with no space in between. Here is a complete
<snip>
Post by vvvv
This is two separate cites: \cite{th:bcconfined}\cite{gb:boxcox}.
Hi vvvv -
Thanks for the reply - I agree that two separate cites gives the
correct visual appearance, but it means that I would need to manually
sort the citations to have them appear in the correct order (refs are
numbered according to the order of appearance in the manuscript).
Add

\makeatletter
\let\***@space\relax
\makeatother

after \begin{document}

Joseph Wright
n***@gmail.com
2008-01-13 17:26:28 UTC
Permalink
Post by Joseph Wright
Add
\makeatletter
\makeatother
after \begin{document}
Joseph Wright
Joseph -
Thank you - this did the trick. One last question: I use another
directive *before* \begin{document}

\makeatletter % Reference list option change
\renewcommand\@biblabel[1]{#1.} % from [1] to 1.
\makeatother

What's the difference? How do I know where a directive needs to go
relative to \begin{document}?

Anyway, this question is academic - my problem is solved. Thanks for
the assistance from this group.

Noah
Donald Arseneau
2008-01-14 06:58:32 UTC
Permalink
Post by n***@gmail.com
\newcommand{\citenumfont}[1]{\underline{#1}}
\bibpunct{(}{)}{)(}{n}{}{}
Now \citep{ref2,ref1,ref3} generates (1)( 2)( 3) with the numerals
underlined. But for clarity, that's (1)(_2)(_3) [underscore=space]
Natbib's \citenumfont corresponds to cite's \citeform. Despite the
name you can use it to apply arbitrary formatting. Try this:

\newcommand{\citenumfont}[1]{(\underline{#1})}
\bibpunct{}{}{}{n}{}{}

You see? The parentheses are part of the \citenumfont formatting now.

Donald Arseneau ***@triumf.ca

Continue reading on narkive:
Loading...