BibTeX, biblatex and biberStrange Depiction of References

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
artyomje
Posts: 5
Joined: Tue Feb 28, 2012 11:01 am

Strange Depiction of References

Post by artyomje »

hello,

I am using TeXnicCenter, and I have a very strange problem.

Every time I convert the same source file to the PDF, the references are represented in a different (but a wrong!) way. What could be a reason?
Thank you in advance

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Strange Depiction of References

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Please tell us in more detail what is strange and what do you mean by a different and wrong way. Wrong numbers, wrong font or appearance? Do you get any warning or error messages?

The best would be if you would post a reduced compilable example (Infominimal working example) which shows that wrong behavior. So we could see and fix it, instead of speculating about possible reasons.

Stefan
LaTeX.org admin
artyomje
Posts: 5
Joined: Tue Feb 28, 2012 11:01 am

Strange Depiction of References

Post by artyomje »

Please see below an example (something very basic). There is a .bib file in the same directory. On the output, sometimes I see "?" in the text instead of citation, but there is a list of bibliography in the end . But when I convert the same file once again, I can see citation correct (in the Author(year) format), but no references list below...

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{natbib}
\begin{document}
....

\citet{nurmi1981problem} ....
\bibliographystyle{apalike}
\bibliography{PR}

\end{document}
Last edited by Stefan Kottwitz on Tue Feb 28, 2012 1:11 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Strange Depiction of References

Post by Stefan Kottwitz »

artyomje wrote:On the output, sometimes I see "?" in the text instead of citation, but there is a list of bibliography in the end .
That's normal for a first run. In a first run the references are unknown. Then if BibTeX is run, and LaTeX again, references can be resolved and are shown.
artyomje wrote:But when I convert the same file once again, I can see citation correct (in the Author(year) format), but no references list below...
Could it be that your editor removes .aux or .bib/.bst files or generally auxiliary files after compiling? Some editors may have such a setting. Check if those files are there. Perhaps convert manually instead of using the editor.

Stefan
LaTeX.org admin
artyomje
Posts: 5
Joined: Tue Feb 28, 2012 11:01 am

Re: Strange Depiction of References

Post by artyomje »

thank you.
those files are on their place..
artyomje
Posts: 5
Joined: Tue Feb 28, 2012 11:01 am

Re: Strange Depiction of References

Post by artyomje »

The warning I have is:"citation 'xxxx' is undefined on input line ..."
But when I use regular \cite command instead of \citet or \citep, everythin works good! So, I guess, my .bib file is correct, and so is editor. Why should natbib package change?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Strange Depiction of References

Post by Stefan Kottwitz »

natbib and apalike are compatible. The small code piece you showed above should be ok. Perhaps show a complete example with the problem, a hacked down Infominimal working example, compilable. That ensures that we could know all about the problem (if it's in the code, not in your TeX installation).

Stefan
LaTeX.org admin
artyomje
Posts: 5
Joined: Tue Feb 28, 2012 11:01 am

Re: Strange Depiction of References

Post by artyomje »

Thank you for your attempts to assist. I found the problem.
My .bib was built automatically by exporting from Google Scholar. In their bib. item form the field 'author' comes after the field 'title', and that makes problem when natbib is used.
Post Reply