BibTeX, biblatex and biberSome citations do not work

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Tea9000
Posts: 5
Joined: Sun Mar 08, 2015 3:24 am

Some citations do not work

Post by Tea9000 »

Ok I've been dealing with this for a week or so now, I'm using MikTex and BiBTex to create my references for a journal article in Physical Review B. This is my first paper and first attempt at using a reference page in this manner, so it's all new to me.

So I stripped everything down in my paper to the bare essentials to isolate the problem and here is what it looks like.

Code: Select all

 \documentclass[twocolumn,prb,aps,color,superscriptaddress]{revtex4}
 \begin{document} 
 \cite{PhysRevLett.97.085503}
 \cite{PhysRevB.54.11169} 
 \bibliography{ReferencePage}
 \end{document}
My bib file (ReferencePage) looks like this for the corresponding references, which were downloaded from the appropriate journal websites.

Code: Select all

@article{PhysRevLett.97.085503,
  title = {${\mathrm{O}}_{8}$ Cluster Structure of the Epsilon Phase of Solid Oxygen},
  author = {Fujihisa, Hiroshi and Akahama, Yuichi and Kawamura, Haruki and Ohishi, Yasuo and Shimomura, Osamu and Yamawaki, Hiroshi and Sakashita, Mami and Gotoh, Yoshito and Takeya, Satoshi and Honda, Kazumasa},
  journal = {Phys. Rev. Lett.},
  volume = {97},
  issue = {8},
  pages = {085503},
  numpages = {4},
  year = {2006},
  month = {Aug},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevLett.97.085503},
  url = {http://link.aps.org/doi/10.1103/PhysRevLett.97.085503}
}

@article{PhysRevB.54.11169,
  title = {Efficient iterative schemes for     \textit{ab initio}   total-energy calculations using a plane-wave basis set},
  author = {Kresse, G. and Furthm\"uller, J.},
  journal = {Phys. Rev. B},
  volume = {54},
  issue = {16},
  pages = {11169--11186},
  numpages = {0},
  year = {1996},
  month = {Oct},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevB.54.11169},
  url = {http://link.aps.org/doi/10.1103/PhysRevB.54.11169}
}
Now in these two cases, the Physical Review B reference works perfectly, the Physical Review Letter reference however never creates itself. Now currently about 5 references work just fine, all from different journals in slightly different forms and the rest of my references fail to appear. I've also done the whole thing where you compile it once in pdfLaTeX then BiBTeX, then pdfLaTeX two more times. I've also compiled the BiBTeX file with the BiBTeX compiler.

I've tried multiple variations of creating the files and nothing seems to work, I'm at a loss for the moment.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Some citations do not work

Post by Johannes_B »

Tea9000 wrote:I've also compiled the BiBTeX file with the BiBTeX compiler.

Hi and welcome,

could be that i misread it and you did that additionally, but this is wrong. You have to run bibtex on the aux-file, that was created during the latex run.


Your example runs fine for me. You can delete all the auxiliary files and start fresh.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Tea9000
Posts: 5
Joined: Sun Mar 08, 2015 3:24 am

Re: Some citations do not work

Post by Tea9000 »

Thanks for the reply,

I tried deleting the aux files and recompiling it, but it doesn't seem to change anything. I'm not sure what you mean by compiling the aux files, is that even possible?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Some citations do not work

Post by Johannes_B »

Every time you do cite, LaTeX writes a little note to the aux file. BibTeX reads exactly that aux-file to know what to exract from the bib file. So, yes, you have to run bibtex on the aux file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Tea9000
Posts: 5
Joined: Sun Mar 08, 2015 3:24 am

Re: Some citations do not work

Post by Tea9000 »

The auxiliary file is .aux extension, what am I supposed to open it with? bibtex doesn't even recognize it.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Some citations do not work

Post by Johannes_B »

On the command line, you can simply call

Code: Select all

$bibtex basename
where basename is the name of your main file without the extension.

On the other hand, your preferred LaTeX editor should do everything just fine by default. What editor are you using?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Tea9000
Posts: 5
Joined: Sun Mar 08, 2015 3:24 am

Re: Some citations do not work

Post by Tea9000 »

I'm using MikTeX.

So interestingly enough I copied and pasted the test file that's listed on here into a new document, compiled everything and it worked just fine. So I tried the same process for my paper and it's still doing the same thing, so I don't think I understand.
Tea9000
Posts: 5
Joined: Sun Mar 08, 2015 3:24 am

Re: Some citations do not work

Post by Tea9000 »

Ok, I think there was a bracket missing, once I went over everything I added a bracket half way down and it seems to be fixed.
Post Reply