0

Suppose I create a tex and a bib file. They work fine. Then I rename the tex file, and keep the same (old) name for the bib file. When I compile the new tex file, the bibliography does not work - just comes up with "?" signs.

Why does this happen, and how do I rectify this?

Thanks

Alex
  • 1,113
  • Are you using \jobname for the designation of the .bib file? A minimum working example (MWE) would be handy. – Herb Schulz Jan 31 '17 at 20:50
  • Have you run bibtex for the new name? – StefanH Jan 31 '17 at 20:53
  • I am not sure what \jobname means @HerbSchulz – Alex Jan 31 '17 at 20:53
  • 2
    tex never reads the bib file, you need to re-run bibtex to generate a bibliography for the new document – David Carlisle Jan 31 '17 at 20:55
  • 1
    Suppose your tex file is called main.tex. When BibTeX is run, it creates a file called main.bbl, which contains the formatted bibliographic items. The file main.bbl is read by LaTeX during the next compilation run, and the result is the bibliography section in your pdf file. Now, if you rename the main tex file to, say, wow.tex, LaTeX will look for a file called wow.bbl for the formatted bibliographic items ... and comes up empty. Two possible remedies: (i) re-run BibTeX (to create wow.bbl from scratch); or (ii) rename the file main.bbl to wow.bbl. Then, rerun LaTeX twice more. – Mico Jan 31 '17 at 22:28

0 Answers0