BibTeX, biblatex and biberQuestion mark instead of citation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
bluemohito
Posts: 1
Joined: Sun Feb 03, 2013 4:24 pm

Question mark instead of citation

Post by bluemohito »

Hi,

First time poster, and a newbie to LaTeX .

I'm working in LaTeX to write an essay. When I typset in the following way (Latex/bibtex/latex/latex), I get a wonderful set of references in my bibliographies but in the body of my document I get (?) instead of the citation.

Please help. Where am I going wrong? I've spent 2 hours on this and it's beginning to make me go a little crazy! :cry:

Here's what my main LaTeX article looks like:

Code: Select all

\documentclass[12pt, a4paper]{article}

% See the ``Article customise'' template for come common customisations

\title{PH400: In what sense do the laws of physics lie?}
\author{Blue Mohito}
\date{Word count: 1987} % delete this line to display the current date

\linespread{2.0}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[hmargin=2.54cm,vmargin=2.54cm]{geometry}
\usepackage{harvard}

% Latin Modern (similar to CM with more characters)
\usepackage{lmodern} % math, rm, ss, tt
\usepackage[T1]{fontenc}

%%% BEGIN DOCUMENT
\begin{document}

\maketitle

This essay will discuss in what sense can the laws of physics ``lie'', in respect to the arguments put forward in Nancy Cartwright's, How the Laws of Physics lie \cite{Cartwright}

\bibliographystyle{plain}
\bibliography{mybib}

\end{document}  
And here is my Bibtex code:

Code: Select all

%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/


%% Created for X at 2013-02-03 14:01:44 +0000 


%% Saved with string encoding Unicode (UTF-8) 


@book{Cartwright,
	Author = {Cartwright, Nancy},
	Title = {How the Laws of Physics Lie},
	Edition = {First},
	Publisher = {OUP Oxford},
	Year = {1983}}

Recommended reading 2024:

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

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Question mark instead of citation

Post by cgnieder »

Hi bluemohito,

Welcome to the LaTeX community!

This is a perfect example why making a Infominimal working example (stress on minimal) is so important. Had you deleted the remaining packages and compiled again you would have seen that one of the packages in your current preamble is responsible. From there it's easy to find which one: harvard.

I have never used that package before but from what I read in the documentation (harvard, section 3) it seems that it only allows one of six specific bibliography styles. plain is not one of them.

Regards
site moderator & package author
Post Reply