GeneralHow can I cite in this format: [number - authors, year; ...]

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

How can I cite in this format: [number - authors, year; ...]

Post by Monkey D »

From http://www.sci.usq.edu.au/staff/roberts ... xxref.html (offline now, so use google cache http://66.102.9.104/search?q=cache:TWXj ... =clnk&cd=4)

I see I can do citations like: (Roberts & Cronin, 1996)
I would like to know if it's possible to do it like this: [1 - Roberts & Cronin, 1996]. The difference are the square brakets and the index of the reference in the bibliography.

I would like to have my references indexed, but at the same time show the author's name and publication year automatically.

I remember using a program (from CPAN maybe) that interactively asked the user the format of its bibliography. I can't remember its name now and don't know if it can be usefull or not here...


Thank you! :geek:

deadlines.... deadlines.... the deadlines are coming... :o

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

seano
Posts: 12
Joined: Tue Jan 29, 2008 3:38 pm

How can I cite in this format: [number - authors, year; ...]

Post by seano »

Loading the natbib package with the numbers option should enable this kind of referencing. i.e.

Code: Select all

\usepackage[numbers]{natbib}
I'll have to leave it up to you to work out the exact formatting though...

Check out the natbib documentation, I think that will give you all of the code that you need.
Donald E. Knuth said that TeX was intended for the creation of beautiful books.
The plethora of confused, frustrated PhD students trying to use it must therefore be seen as an unintentional side effect.
Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

How can I cite in this format: [number - authors, year; ...]

Post by Monkey D »

(for future reference)

It seems I can't get exactly what I want.
I'm using:
\usepackage[square, sort, authoryear]{natbib}
\bibliographystyle{plainnat}

I checked natnotes.pdf (from CTAN) and there are two main modes: numbers and authoryear. While authoryear surrounds the reference within brackets (which is what I want) it does not support numbering. And on the other hand numbers keeps a counter but does not fully enclose the citation within brackets...

authoryear:
\citep{jon90} ⇒ (Jones et al., 1990)

numbers:
\citet{jon90} ⇒ Jones et al. [21]
\citep{jon90} ⇒ [21]


Probably to get exactly what I want I would have to make my own .bst file...
Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

Re: How can I cite in this format: [number - authors, year; ...]

Post by Monkey D »

But one thing I would like to know is if it's possible to sort the references by author's surname instead of the first name.
Post Reply