Showing posts with label bibliography. Show all posts
Showing posts with label bibliography. Show all posts

Friday, August 5, 2011

Fundamental Thinking: Convert bibtex entries to \bibitem in Latex

A helpful post to convert bibtex entries to the \bibitem style in LaTe

Fundamental Thinking: Convert bibtex entries to \bibitem in Latex

Here is the original post Josh refers to.

\bibtex to \bibitem - http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2005-10/msg00552.html

I found the instructions here to be more helpful and straight forward.

2-cent tip: BibTex to bibitem format - http://echorand.me/2010/12/03/2-cent-tip-bibtex-to-bibitem-format/

Steps:

Create a refs.bib file with all the BibTex entries, which are easily available from Google Scholar or similar

Create a "dummy" .tex file with the following entries:

\documentclass{article}
\begin{document}
\nocite{*}
\bibliography{refs}
\bibliographystyle{plain}
\end{document}
Now, do the following:

$ latex dummy
$ bibtex dummy
$ bibtex dummy
$ latex dummy
You will see a dummy.bbl file containing all your BibTex entries in \bibitem format.

Friday, July 22, 2011

LaTeX/Bibliography Management - Wikibooks, open books for an open world

The WikiBooks link for bibliographies.

LaTeX/Bibliography Management - Wikibooks, open books for an open world: "LaTeX/Bibliography Management"



Edit: 8-5-11

Some additional LaTeX bibliography links:

Using Bibitems - http://kile.sourceforge.net/Documentation/html/latex_bib.html

LaTeX tips: Bibliographies - http://www.math.uiuc.edu/~hildebr/tex/bibliographies.html

LaTeX Tips: Top Ten Tips for Bibliographies - http://www.math.uiuc.edu/~hildebr/tex/bibliographies0.html

Hypertext Help with LaTeX - \bibitem - http://www.giss.nasa.gov/tools/latex/ltx-205.html

Here is a helpful link with some example bibliography entries using \bibitem;

The LATEX Bibliography Environment - http://www.ece.tamu.edu/~tex/manual/node23.html

Here is an example of an integrated bibliography and one entry.

\begin{thebibliography}{9}

\bibitem{lamport94}
  Leslie Lamport,
  \emph{\LaTeX: A Document Preparation System}.
  Addison Wesley, Massachusetts,
  2nd Edition,
  1994.

\end{thebibliography} 


This code is inserted at the end of your document, usually right before the command

\end{document} 

This can be helpful for smaller bibliographies or if the user doesn't want to make a separate .bib file. I usually prefer to just make a .bib file for each project since I have a master .bib file and I just copy and paste the needed references into the individual .bib file utilizing BibTeX http://en.wikipedia.org/wiki/BibTeX. The number nine inside the braces {9} depicts on the expected number of bibliography entries. For example, for under 10 the {9} is used, under 100 the {99} is used, etc.

Here is an example entry from one of my bibliography entries.

@book{Ozisik_FDMHT_1994,
address = {Boca Raton, FL},
author = {\"{O}zişik, M. N.},
isbn = {0849324912},
mendeley-tags = {UTSI},
publisher = {CRC Press},
title = {{Finite Difference Methods in Heat Transfer}},
url = {http://books.google.com/books?id=M-Jun14kdxcC\&pg=PA118\&dq=crank-nicolson\&hl=en\&ei=QAy6Tqf8Noa3twep\_83OBw\&sa=X\&oi=book\_result\&ct=result\&resnum=2\&ved=0CDUQ6AEwAQ\#v=onepage\&q=crank-nicolson\&f=false http://www.amazon.com/Finite-Difference-Methods-Heat-Transfer/dp/0849324912/ref=sr\_1\_1?s=books\&ie=UTF8\&qid=1320816443\&sr=1-1 http://www.worldcat.org/title/finite-difference-methods-in-heat-transfer/oclc/29843406\&referer=brief\_results},
year = {1994}
}

Where I insert the command

\bibliographystyle{unsrt}
\bibliography{references-numerical-methods-and-cfd}

at the end of the document before

\end{document} 

The {nsrt} is a style preference and the {references-numerical-methods-and-cfd} is the filename of the .bib file.  I store the .bib file in the same folder as the corresponding .tex file.

I also use the

\usepackage{natbib}

command to call for the natbib package in the preamble.  Natbib is an alternate citation style which allows for author-year style aka the Hardvard style.  Natbib allows one to switch between the general numeric LaTex and Harvard styles.