0

I have recently migrated from Overleaf to TeXMaker+MikTeX. I am writing a report for university and have to add a lot of references to the .bib file. When I make any change in this file, TeXMaker behaves in an odd way: It will only recognize the change if I edit the .bib file, close it and then open it again. This happens both if I edit the .bib directly through TeXMaker or if I use JabRef.

Any clues on what is going wrong?

PS: I am using the "Quick Build" option that runs pdfLaTex + BibTex + pdfLaTex(2x) + pdf Viewer.

Thanks in advance.

A minimal example:

.tex file:

\documentclass{article}

\usepackage{natbib}

\begin{document}

Hello

\bibliographystyle{plain}
\bibliography{ref}
\nocite{lanczos1970variational}

\end{document}

.bib file:

@Book{lanczos1970variational,
  title     = {The variational principles of mechanics},
  publisher = {Dover Publications},
  year      = {1970},
  author    = {Lanczos, Cornelius},
  address   = {New York},
}

@Book{milne1996theoretical,
  title     = {Theoretical hydrodynamics},
  publisher = {Dover Publications},
  year      = {1996},
  author    = {Milne-Thomson, Louis Melville},
}

1 Answers1

1

Apparently, the problem is solved by putting the .bib files in the directory

C:\localtexmf\bibtex\bib

and setting the path

C:\localtexmf

in MiKTeX. The only issue is that TeXMaker stops suggesting the keys.