BibTeX, biblatex and biberbib file and cite style

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

bib file and cite style

Post by pallav »

I want to use bib file for the first time to obtain references. I have made a .bib file

Code: Select all

@article{moss1997csd,
  title={{The Cold Shock Domain Protein LIN-28 Controls Developmental Timing in C. elegans and Is Regulated by the lin-4 RNA}},
  author={Moss, E.G. and Lee, R.C. and Ambros, V.},
  journal={Cell},
  volume={88},
  pages={637--646},
  year={1997}
}


@article{viswanathan2009lin28,
  title={{Lin28 promotes transformation and is associated with advanced human malignancies}},
  author={Viswanathan, S.R. and Powers, J.T. and Einhorn, W. and Hoshida, Y. and Ng, T.L. and Toffanin, S. and O'Sullivan, M. and Lu, J. and Phillips, L.A. and Lockhart, V.L. and others},
  journal={Nature Genetics},
  volume={41},
  pages={843--848},
  year={2009},
  publisher={Nature Publishing Group}
}


@article{kato2009mir,
  title={{The mir-34 microRNA is required for the DNA damage response in vivo in C. elegans and in vitro in human breast cancer cells}},
  author={Kato, M. and Paranjape, T. and Ullrich, R. and Nallur, S. and Gillespie, E. and Keane, K. and Esquela-Kerscher, A. and Weidhaas, JB and Slack, FJ},
  journal={Oncogene},
  volume={28},
  pages={2419--2424},
  year={2009},
  publisher={Nature Publishing Group}
}
each of which I get from google. I cite them in my tex file also. 1st I run the bib and then the tex. I got the pdf ok though I got some error in bib (no error in tex). Is it right? How to write the bib to avoid error in bib file?

2nd problem:[quote][/quote]
In the tex, I have use

Code: Select all

\bibliographystyle{unsrtnat}
or

Code: Select all

\bibliographystyle{plain}
Please give me the all other possible style to cite the references.


Waiting for the valuable reply at the earliest conveniance.

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

bib file and cite style

Post by josephwright »

We need more detail, for example what errors you see. I have no issues with

Code: Select all

\documentclass{article}
\begin{filecontents}{demo.bib}
@article{moss1997csd,
  title={{The Cold Shock Domain Protein LIN-28 Controls Developmental Timing in C. elegans and Is Regulated by the lin-4 RNA}},
  author={Moss, E.G. and Lee, R.C. and Ambros, V.},
 journal={Cell},
  volume={88},
  pages={637--646},
  year={1997}
}

@article{viswanathan2009lin28,
  title={{Lin28 promotes transformation and is associated with advanced human malignancies}},
  author={Viswanathan, S.R. and Powers, J.T. and Einhorn, W. and Hoshida, Y. and Ng, T.L. and Toffanin, S. and O'Sullivan, M. and Lu, J. and Phillips, L.A. and Lockhart, V.L. and others},
  journal={Nature Genetics},
  volume={41},
  pages={843--848},
  year={2009},
  publisher={Nature Publishing Group}
}

@article{kato2009mir,
  title={{The mir-34 microRNA is required for the DNA damage response in vivo in C. elegans and in vitro in human breast cancer cells}},
  author={Kato, M. and Paranjape, T. and Ullrich, R. and Nallur, S. and Gillespie, E. and Keane, K. and Esquela-Kerscher, A. and Weidhaas, JB and Slack, FJ},
  journal={Oncogene},
  volume={28},
  pages={2419--2424},
  year={2009},
  publisher={Nature Publishing Group}
}
\end{filecontents}
\usepackage{natbib}
\begin{document}
Testing \cite{moss1997csd,viswanathan2009lin28,kato2009mir}.
\bibliography{demo}
\bibliographystyle{unsrtnat}
\end{document}
In terms of styles, there are already lots about. The usual is to pick one for your subject area. Name some journals you might use as a model.
Joseph Wright
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: bib file and cite style

Post by pallav »

Helped by your code. I had not used the 1st and last part of your code.

Please give some styles of ref. I will then be much benifited.
Post Reply