1

When I compile my document with bibtex, this is the error message:

This is BibTeX, Version 0.99d (MiKTeX 2.9.6210 64-bit) The top-level auxiliary file: thesiscoremathildev2.aux I found no \bibdata command---while reading file thesiscoremathildev2.aux I found no \bibstyle command---while reading file thesiscoremathildev2.aux (There were 2 error messages)

 \documentclass{scrbook} 
\usepackage[nottoc,numbib]{tocbibind}
\begin{document}

\chapter{chapter1}
\input{chap3/Motivation}
\input{chap3/Theory}
\input{chap3/MandM}
\input{chap3/Results}

@Article{Adato2013,
  author  = {Adato, Ronen and Altug, Hatice},
  title   = {In-situ ultra-sensitive infrared absorption spectroscopy of 
biomolecule interactions in real time with plasmonic nanoantennas},
  journal = {Nat. Commun.},
  year    = {2013},
  volume  = {4},
}


  \cite{Adato2013}

\bibliographystyle{nature_style}
\bibliography{bibliography}
\end{document}

In my old tex file it works but not in the most recent one. I added the new chapter in the old tex file, but this still do not work ( I only added additional tables). And I tried: PDFLatex, Bibtex and two times PDFLatex.

9

1 Answer 1

2

Please copy the following MWE into a file mwe.tex:

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Adato2013,
  author  = {Adato, Ronen and Altug, Hatice},
  title   = {In-situ ultra-sensitive infrared absorption spectroscopy of 
             biomolecule interactions in real time with plasmonic 
             nanoantennas},
  journal = {Nat. Commun.},
  year    = {2013},
  volume  = {4},
}
\end{filecontents}


\documentclass{scrbook} 

\usepackage[nottoc,numbib]{tocbibind}


\begin{document}

\chapter{chapter1}
text \cite{Adato2013} text

\bibliographystyle{plain} % nature_style
\bibliography{\jobname} % calls bib file created with filecontents!
\end{document}

Compile it with the cain

pdflatex mwe.tex
bibtex mwe
pdflatex mwe.tex
pdflatex mwe.tex

The MWE should compile with only one warning (okay, commes from package filecontents, only used to have TeX code and bib file in one MWE).

Now change the used bibliographys style plain to your used style nature_style. Does it compile with only one warning? I can not test this, because I do not have this style and you gave us no link to it.

If it compiles, I guess you have your bib file bibliography.bib not in the same directory you have your .tex file.

If it does not compile, please add the error message you get to your question. Check the file mwe.blg too. If it contains error(s) add the file to your question too.

1
  • If I \input or \include a file that contains an \end{document}, that can cause this error, because of the duplicate \end{document} in the inputted or included file. Commented Jul 25, 2019 at 20:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .