0

I am trying to use bibtex in a thesis template, but it seems to give absolutely no output. Using the bibtex command gives me the output "I couldn't open file name ref.bib.aux", where ref.bib is the name of the bibtex database. On the other hand, using "Quick Build" in texmaker produces the output file, but without the references. Any ideas why?

Thanks.

Arani
  • 123
  • 1
    Did you checked http://www.latextemplates.com/forums#/discussion/232/cannot-generate-the-bibliography – Jagath Jul 08 '13 at 12:04
  • Yes, I have checked it, but it does not seem to help. As I said, executing bibtex gives me an error message. – Arani Jul 08 '13 at 12:07
  • I have downloaded the zip from the path and done the following: Step 1: pdflatex main.tex. Step 2: bibtex main; Step 3: pdflatex main.tex; Step 4: pdflatex main.tex. Thatz it! PDF generated with reference. Can you try this. – Jagath Jul 08 '13 at 12:12
  • 3
    Did you give bibtex ref.bib. That might be the problem. Instead give bibtex <filename>. – Jagath Jul 08 '13 at 12:14
  • 2
    You should not give bibtex the name of the .bib file but eh name of the latex document (without the .tex extension) for which you need to generate a bibliography. – David Carlisle Jul 08 '13 at 12:32
  • @blackburn Yes, it was a mistake. It is working now. However, using "Quick Build" on Texmaker still does not work. – Arani Jul 08 '13 at 12:33
  • Which option is selected for quick build? (Options --> Configure Texmaker --> Quick Build) – Torbjørn T. Jul 26 '13 at 07:17
  • @TorbjørnT. pdflatex – Arani Aug 01 '13 at 15:25
  • 1
    Right, so it doesn't run BibTeX, which is required. In my version on Texmaker none of the predefined Quick Build options include BibTeX, so you'd have to create custom one: select 'User' and then click the 'Wizard' button on the right. Add pdfLaTeX once, then BibTeX, then pdfLaTeX twice. It should add something like pdflatex -interaction=nonstopmode -synctex=-1 %.tex|bibtex %|pdflatex -interaction=nonstopmode -synctex=-1 %.tex|pdflatex -interaction=nonstopmode -synctex=-1 %.tex in the text field. – Torbjørn T. Aug 01 '13 at 16:41
  • @TorbjørnT. Thank you. I have used your method and now it works perfectly. – Arani Aug 02 '13 at 08:30

0 Answers0