BibTeX, biblatex and bibernatbib | Citation produces Question Mark instead of Source

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
solo_
Posts: 2
Joined: Tue Jan 15, 2013 12:56 pm

natbib | Citation produces Question Mark instead of Source

Post by solo_ »

Hello, I'm new to this forum. I think this has been discussed before but couldn't resolve my problem.

I got a pretty crappy template from my lecturer but now it is too late to switch. So here is my example:

Code: Select all

\documentclass[10pt,letter,twocolumn]{article} 
\usepackage[square,comma,sort&compress]{natbib}

\begin{document}
\section{Intro}
Some text "quote" \citep[1]{Key} some more text

\bibliographystyle{abbrv}
\bibliography{file}
\end{document
...and my .bib file:

Code: Select all

@InProceedings{Key,
  author = {some guy},
  title = {TeX},
  year = 2011
}
As I understand \bibliography is supposed to print all the literature I actually referenced in my text. But as I mentioned in the topic title it creates the output
some text "quote" [?,1] some more text
and does not print any literature at the end of my document.

I compiled it dozens of times with no change. Anyone got a clue? Thank you!
Last edited by localghost on Tue Jan 15, 2013 6:28 pm, edited 3 times in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

natbib | Citation produces Question Mark instead of Source

Post by localghost »

Since this is a FAQ, you should find many solutions by a Forum Search.
solo_ wrote:[…] I compiled it dozens of times with no change. Anyone got a clue? […]
And you did run BibTeX in between?


Best regards and welcome to the board
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

natbib | Citation produces Question Mark instead of Source

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Very good that you posted a minimal example. So we can thouroughly deal with this problem.
  • Always have a look at error messages. You should get such messages both with (pdf)LaTeX and with BibTeX, at least with the .bib file which you cross-posted on golatex.de.
  • Run BibTeX on the file, as Thosten mentioned - either via your editor or at the command prompt (bibtex filename).
  • Add the missing final brace in \end{document}.
  • Use a style which is compatible to natbib, such as abbrvnat:

    Code: Select all

    \bibliographystyle{abbrvnat}
  • Use a comma between bibliography entries in your .bib file, I noticed in your that you forgot one comma in your crosspost, but not above.
  • Finally, you should get with this example:
    bibliography.png
    bibliography.png (5.23 KiB) Viewed 5834 times
Stefan
LaTeX.org admin
solo_
Posts: 2
Joined: Tue Jan 15, 2013 12:56 pm

Re: natbib | Citation produces Question Mark instead of Sour

Post by solo_ »

Danke!!! ;)
Post Reply