[texhax] Numbering Author-Year Bibliography

阮铮 rz1991 at foxmail.com
Sun May 20 13:55:57 CEST 2012


Hi texhax group,


I am using latex to write my undergraduate thesis and the bibliography format requirement of our school really annoyed me. I hope someone in this group could help me out.


I set up a wee example here for suggestions.
There are two files. One is the main content and another is bibliography database file.


main.tex file:


\documentclass{article}
\usepackage{natbib}
\begin{document}
In this example, I will cite two articles.
They are \citep{schneider1990} and \citep{yu1995}
\bibliography{tex}
\bibliographystyle{plainnat}
\end{document}



tex.bib file:


@article{schneider1990,
author = "Schneider T.D.and Stephens R.M.",
title = "{Sequence Logos: A New Way to 
 Display Consensus Sequences}",
journal = "Nucleic Acids Res.",
volume = 18,
pages = "6097--6100",
year = 1990
}
@article{yu1995,
author = "Yu W. and Schuster W.",
title = "Evidence for a site-specific 
 cytidine deamination reaction involved 
 in C to U RNA editing of plant 
 mitochondria.",
journal = "J. Biol. Chem.",
volume = 270,
number = 31,
pages = "18227--18233",
month = Aug,
year = 1995
}



Just put the two files above in the same directory and employ pdflatex to compile it. You should see the output. 


The reference output is like this:


References
Schneider T.D.and Stephens R.M. Sequence Logos: A New Way to Display
Consensus Sequences. Nucleic Acids Res., 18:6097–6100, 1990.
Yu W. and Schuster W. Evidence for a site-specific cytidine deamination reac-
tion involved in c to u rna editing of plant mitochondria. J. Biol. Chem., 270
(31):18227–18233, August 1995.





My problem is how to number each bibliography entry. According to the thesis format requirement of our university, I need to number the two literature without affecting the citing style, ie (author, year) in my content. The desired output is something like this:


References
[1] Schneider T.D.and Stephens R.M. Sequence Logos: A New Way to Display
Consensus Sequences. Nucleic Acids Res., 18:6097–6100, 1990.
[2] Yu W. and Schuster W. Evidence for a site-specific cytidine deamination reac-
tion involved in c to u rna editing of plant mitochondria. J. Biol. Chem., 270
(31):18227–18233, August 1995.



I know this counting is meaningless, but I have to conform it. Can anyone give me a hand?


Many Thanks!!


Ruan Zheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20120520/d4a11eac/attachment.html>


More information about the texhax mailing list