BibTeX, biblatex and bibernatbib | Question Marks instead of Citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
florian101
Posts: 2
Joined: Thu Mar 15, 2012 5:20 am

natbib | Question Marks instead of Citations

Post by florian101 »

Hi,

I can't get natbib to work on my computer (MacBook, using TeXShop). All citation have question marks instead of the proper citation. I created the following minimal example:

Code: Select all

\documentclass{article}
\usepackage{natbib}

\begin{document}
There is a very nice \citep{flower}, but no \citet{flour}, in this \citealt{tree}.

\bibliographystyle{plainnat}
\bibliography{example}
\end{document}
with the following bib file:

Code: Select all

@Book{flower,
author = {Carl Linnaeus},
title = {Systema Naturae},
publisher = {Holmi\ae},
year = 1766,
edition = {twelfth}}

@Book{flour,
author = {Tom Jaine},
title = {50 recettes de pain},
publisher = {Gr\"und},
year = 1995,
isbn = {978-2700053739}}


@Book{tree,
author = {William Grimm},
title = {Illustrated Book of Trees: The Comprehensive Field Guide to More than 250 Trees of Eastern North America},
publisher = {Stackpole Books},
year = 2001,
edition = {revised},
isbn = {978-0811728119}}
the compilation output is:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
 \write18 enabled.
entering extended mode
(./natlib_test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo)) (./natbib.sty)
(./natlib_test.aux)

Package natbib Warning: Citation `flower' on page 1 undefined on input line 6.


Package natbib Warning: Citation `flour' on page 1 undefined on input line 6.


Package natbib Warning: Citation `tree' on page 1 undefined on input line 6.

No file natlib_test.bbl.

Package natbib Warning: There were undefined citations.

[1{/usr/local/texlive/2009/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./natlib_test.aux) )</usr/local/texlive/2009/texmf-dist/fonts/type1/public/ams
fonts/cm/cmbx10.pfb></usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsf
onts/cm/cmr10.pfb>
Output written on natlib_test.pdf (1 page, 23549 bytes).
SyncTeX written on natlib_test.synctex.gz
Transcript written on natlib_test.log.
thanks for your help...
florian

Recommended reading 2024:

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

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

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

Re: natbib | Question Marks instead of Citations

Post by localghost »

Don't forget to run BibTeX in between and afterwards at least two times (PDF)LaTeX again.


Best regards and welcome to the board
Thorsten
florian101
Posts: 2
Joined: Thu Mar 15, 2012 5:20 am

Re: natbib | Question Marks instead of Citations

Post by florian101 »

Hi
Thanks for that hint... I didn't know that I have to run bibtex separately...
problem solved
thanks
florian
widear
Posts: 5
Joined: Tue Jun 26, 2012 2:01 am

Re: natbib | Question Marks instead of Citations

Post by widear »

I just stumbled across this topic because I fought against the same problem and was unable to solve it. I will try out your suggestions now. I bet it will work now, thank you very much for sharing! It's great to be a member of a community where everybody is so helpful, I would buy flowers for all of you to say thank you!
Last edited by Stefan Kottwitz on Tue Jun 26, 2012 6:23 pm, edited 1 time in total.
Reason: advertisement link removed
msh855
Posts: 12
Joined: Thu Mar 01, 2012 1:31 pm

Re: natbib | Question Marks instead of Citations

Post by msh855 »

Hi

I have the same problem, but cannot resolve it. I use TEXstudio instead of TEXshop.
I am aware of the process 'compile - compile' steps but again the problem cannot be resolved.

the Minimal example of the original post covers my needs as well. Any help will be appreciated.

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

Re: natbib | Question Marks instead of Citations

Post by cgnieder »

What does the BiBTeX run say? Does it compile or do you get any error or warning messages?

Regards
site moderator & package author
msh855
Posts: 12
Joined: Thu Mar 01, 2012 1:31 pm

Re: natbib | Question Marks instead of Citations

Post by msh855 »

No it runs normally. Do you want me to post my files ?
Thanks a lot for for your help anyway

As an addendum, when i compile with latex my main file, (not the bibtex file) i am receiving these messages.

i have checked, but i cannot find syntax errors or something similar unless i missed something.

here is a screen shot of the errors.

best,
Attachments
screenshot
screenshot
citations.PNG (44.93 KiB) Viewed 13837 times
Last edited by msh855 on Tue Aug 21, 2012 9:54 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

natbib | Question Marks instead of Citations

Post by cgnieder »

What do your log file and your blg file say?
site moderator & package author
msh855
Posts: 12
Joined: Thu Mar 01, 2012 1:31 pm

Re: natbib | Question Marks instead of Citations

Post by msh855 »

Sorry, I missed your last post. Here it is my log file.
what is a blg file ? the bibliography one ?
Attachments
logfile.txt
(44.21 KiB) Downloaded 700 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

natbib | Question Marks instead of Citations

Post by cgnieder »

msh855 wrote:Sorry, I missed your last post. Here it is my log file.
what is a blg file ? the bibliography one ?
It's the log file produced by BiBTeX. Are there any \citation entries in your aux file?
site moderator & package author
Post Reply