LaTeX forum ⇒ BibTeX, biblatex and biberQuestion mark instead of citation

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

Question mark instead of citation

Postby bluemohito » Sun Feb 03, 2013 4:29 pm

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:

  1. \documentclass[12pt, a4paper]{article}
  2.  
  3. % See the ``Article customise'' template for come common customisations
  4.  
  5. \title{PH400: In what sense do the laws of physics lie?}
  6. \author{Blue Mohito}
  7. \date{Word count: 1987} % delete this line to display the current date
  8.  
  9. \linespread{2.0}
  10. \usepackage[utf8]{inputenc}
  11. \usepackage{amsmath}
  12. \usepackage{amssymb}
  13. \usepackage[hmargin=2.54cm,vmargin=2.54cm]{geometry}
  14. \usepackage{harvard}
  15.  
  16. % Latin Modern (similar to CM with more characters)
  17. \usepackage{lmodern} % math, rm, ss, tt
  18. \usepackage[T1]{fontenc}
  19.  
  20. %%% BEGIN DOCUMENT
  21. \begin{document}
  22.  
  23. \maketitle
  24.  
  25. 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}
  26.  
  27. \bibliographystyle{plain}
  28. \bibliography{mybib}
  29.  
  30. \end{document}


And here is my Bibtex code:

  1. %% This BibTeX bibliography file was created using BibDesk.
  2. %% http://bibdesk.sourceforge.net/
  3.  
  4.  
  5. %% Created for X at 2013-02-03 14:01:44 +0000
  6.  
  7.  
  8. %% Saved with string encoding Unicode (UTF-8)
  9.  
  10.  
  11. @book{Cartwright,
  12. Author = {Cartwright, Nancy},
  13. Title = {How the Laws of Physics Lie},
  14. Edition = {First},
  15. Publisher = {OUP Oxford},
  16. Year = {1983}}

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sun Feb 03, 2013 5:40 pm

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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 1 guest