Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I don't quite know the mechanics behind bibliography and BiBTeX. I am using TeXworks to write a document, I modify the bib file with an external application. When I typeset the document (Ctrl+T), it gives the same error displaying the old version of the line.

I am sure I have changed and saved the file. I fiddle with the application a bit, and typeset again it reloads the newest version.

How do I force TeXworks to reload the fresh version of the bib file?

share|improve this question
3  
Run BibTeX from the Typeset menu. Does this not solve your problem? –  Seamus Jan 6 '11 at 16:35
    
@Seamus: It works that way. But, even though pdfLatex+MakeIndex+BibTeX is selected it does not reload each time. –  nimcap Jan 7 '11 at 8:16
add comment

2 Answers

up vote 4 down vote accepted

It looks like what's happening is that despite "pdfLatex+MakeIndex+BibTeX" being selected, TeXworks only actually does BibTeX if the bibliography file has been edited from within TeXworks. (You could check this by editing your bib file and saving it through TeXworks.)

Like I said in my answer, you can force TeXworks to reload the bibliography file by explicitly running BibTeX from the Typeset menu.

share|improve this answer
    
It solved my problem also, but can I some how run both bibTex + pdfLatex so I don't have to choose every time? –  Chris-Top Jun 14 '11 at 19:57
    
@Chris-Top I don't use TeXworks, so I don't know. Sorry. –  Seamus Jun 14 '11 at 21:21
add comment

Another option is to delete the .blg file before recompiling. You can do this directly or via "File>Remove aux files" in TeXworks. This will force TeXworks to load your updated bib file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.