0

Recently, I started working with natbib again and now it seems not to be working anymore.

Things that I've discovered:

  • usually TexStudio made its own .bbl file, while currently it doesn't
  • the following error occurs: Error: Could not start the command: bibtex.exe "MAINTEX" where MAINTEX is my file name
  • I tried changing my Build & View into txs:///pdflatex | txs:///bibtex | txs:///pdflatex | txs:///pdflatex
  • I'm aware that the post Error: Could not start the command: [...] bibtex.exe is very similar, perhaps identical

For your information, my MAINTEX file is e.g as follows:

\documentclass[10pt, a4paper]{report}
\usepackage[sort]{natbib}
     
\begin{document}
hi\cite{Lee97}  

\bibliographystyle{alpha}
\addcontentsline{toc}{chapter}{Bibliography} 
\bibliography{bib.bib}
 
\end{document}

and my bib file is like

%Scriptie 2020-2021  

@book{Lee97,
    title={Riemannian Manifolds: An Introduction to Curvature},
    author={Lee, J.M.},
    isbn={9780387983226},
    lccn={97014537},
    series={Graduate Texts in Mathematics},
    url={https://books.google.nl/books?id=N8j9Gf1bQOoC},
    year={1997},
    publisher={Springer New York}
}

In addition, I've updated MiKTeX, and in the other post an answer given was refering to a faulty installation. Any idea what might be wrong here?

  • I assume you have updated miktex in both miktex user mode and in miktex admin mode. Next thing: have you tried manually running bibtex from the command line? Just to rule out texstudio. Additionally, it's \bibliography{bib} not extension, and I'm not sure alpha is compatible with natbib. Might be better to use plainnat until everything is working – daleif Aug 30 at 4:46
  • The problem has been solved by reinstalling TeXStudio. I did not know how to run bibtex manually, whence I tried reinstalling TeXStudio which subsequently did the job! A question out of interest, when you're saying ''to run bibtex manually'', what do you need to do precisely? – Mark Aug 30 at 7:31
  • Start the start the dos prompt or what ever it is called nowadays and type bibtex and hit enter. Just to see if it reacts – daleif Aug 30 at 7:34
  • Thanks. If you'd like, you can make your first comment an answer which I then can accept. – Mark Aug 30 at 7:41
  • I did not solve it, you did that your self. I'm not sure if you can self answer when you have low number of points – daleif Aug 30 at 7:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.