BibTeX, biblatex and biberSetting Bibliography Styles

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Setting Bibliography Styles

Post by lnsam22 »

Hi all,

I'm using TexnicCenter to write up my Master's thesis. Practically ALL of my friends use LYX (boo!). They tell me that bibtex can specify bibliography styles like Chicago (which I need). That they simply have to enter the necessary info (in whatever order they feel like) and it comes out the way Chicago Style wants.

Does anyone know how to do this in TexnicCenter?

Thanks in advance,
lns
Last edited by lnsam22 on Mon Jan 17, 2011 5:19 pm, edited 1 time in total.

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Setting Bibliography Styles

Post by frabjous »

You just include the command in question in your document:

\bibliographystyle{chicago}

If you're going to an author-date system like Chicago, though you'll probably also want to learn about natbib and/or biblatex (and perhaps the biblatex-chicago package).
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Re: Setting Bibliography Styles

Post by lnsam22 »

As you suggested, I looked up the whole 'formatting your own bibliography' starting with natbib. I've been reading through The LaTeX Companion chapter: BibTeX. With this aid I can now write in my entries easily. eg below:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@book{tinkham1,
author = "`Micheal Tinkham"',
title = "`{Introduction to Superconductivity"',
publisher = {McGraw-Hill Inc.},
year = 1996}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
My problem is that I can't find where exactly I'm supposed to write this :? .

I read up online where I can create and include a .bib file the same way I add a new .tex file to my main document. The code relevant to the bibliography is written below:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{chicago}
\begin{document}
%blah blah chapters and the like
\bibliographystyle{chicago}
\bibliography{bibfile}
\input{biblio}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I haven't even tried citing as yet, since TexnicCenter obviously isn't understanding what I'm trying to do.

Help?

ps. Thanks for your help so far...*grateful smiley*
Last edited by lnsam22 on Mon Jan 17, 2011 5:19 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Setting Bibliography Styles

Post by localghost »

It never can do any harm to provide a complete but minimal example. In other words it is indispensable to comprehend where a problem might be located.

Your bibliography entries contain erroneously control sequences for quotation marks that actually are for correct typesetting. But they are placed wrong for grouping in the database file. The below example works flawlessly.

Code: Select all

\begin{filecontents*}{\jobname.bib}
@book{tinkham:96,
  author = {Michael Tinkham},
  title = {Introduction to Superconductivity},
  publisher = {McGraw-Hill Inc.},
  year = 1996
} 
\end{filecontents*}
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{chicago}

\begin{document}
  \nocite{*}
  \bibliographystyle{chicago}
  \bibliography{\jobname}
\end{document}
Your *.bib file should usually be placed in the same directory as your main *.tex file. The example above uses the filecontents* environment to create that file on the fly. You can create the database file with your LaTeX editor as usual (note the right suffix).


Thorsten
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Re: Setting Bibliography Styles

Post by lnsam22 »

Thanks localghost. Sorry about the mixup (no, i hadn't read the "please read b4 postings"). Did I mark them correctly now? Oh, and my bibliography's running. Thanks for that too. :)

lnsam22
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Setting Bibliography Styles

Post by localghost »

lnsam22 wrote:[…] Did I mark them correctly now? […]
It's sufficient to mark the initial post. The others have no effect.
Post Reply