General ⇒ how to modify the order of entries in a bibtex string
how to modify the order of entries in a bibtex string
I use JabRef to keep track of my bibliography and through it I can already create Bibtex-keys for successive Latex documents.
Currently I am writing an article and using Bibtex to add references ad the end, but I have a problem. The organizers gave us some rules to follow: for example, the year of publication should be into brackets and follow the list of authors.
Anyway, by using those Bibtex-keys with the \usepackage{natbib} and the \bibliographystyle{abbrvnat}, I cannot modify the order of the entries: in particular, the year is at the end of everything, but I would like to move it between authors list and title.
Is there anyone who knows how to do such modifications?
thank you.
KInd regards,
Mattia.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
how to modify the order of entries in a bibtex string
The problem is in your choice of bibliography style.iperten wrote:Anyway, by using those Bibtex-keys with the \usepackage{natbib} and the \bibliographystyle{abbrvnat}, I cannot modify the order of the entries: in particular, the year is at the end of everything, but I would like to move it between authors list and title.
To generate a custom bibliography style that's compatible with natbib, execute
Code: Select all
latex makebst
Does that help?
Re: how to modify the order of entries in a bibtex string
well, I made the BST file (i.e. name.bst) by executing makebst and copied it in the foulder of my latex file. Then, in the \bibliographystyle I wrote it down like that: \bibliographystyle{name}.
I think I should use the cite package at the beginning, shouldn't I?
anyway, thank you.
MAttia.
how to modify the order of entries in a bibtex string
There is no need for any additional packages. Your makebst settings alone will determine the format of your bibliography and citations.iperten wrote:well, I made the BST file (i.e. name.bst) by executing makebst and copied it in the foulder of my latex file. Then, in the \bibliographystyle I wrote it down like that: \bibliographystyle{name}.
I think I should use the cite package at the beginning, shouldn't I?
That being said, I recommend that you:
- Generate your BST file (with makebst) for author-year mode even if you want numbered citations.
- Use the natbib package (see http://ctan.org/pkg/natbib) with options like numbers (and sort&compress possibly) turned on.
- Consider using \citet and \citep from natbib instead of \cite (however, using \cite is just fine).
Re: how to modify the order of entries in a bibtex string
Anyway, now I know more or less where I must look, so I can sort the problem out.
Thank you.
Mattia.
how to modify the order of entries in a bibtex string
If you're not successful generating your own BST (makebst doesn't give you infinite freedom over format; it just includes many common formatting choices), you can always modify your final BBL. It's easy to decipher its contents.iperten wrote:Anyway, now I know more or less where I must look, so I can sort the problem out.
In fact, you can even include the BBL's contents directly in your TeX if you don't want to risk bibtex regenerating it after you're done.
[ Alternatively, you can modify your custom BST directly. bibtex uses a postfix language (similar to PostScript). With a little time and patience, it's not too difficult to get used to and modify as needed. The LaTeX Companion (by Mittelbach/Goossens) lists the bibtex primitives from the language. ]