[Tex/LaTex] Runaway argument? { \end {thebibliography} ! File ended while scanning use of \BRorg@thebibliography

bibliographiesmiktex

I'm entirely new to LaTex. Have very little idea about things. So our university gave us a sample of report and I'm modifying the content. Whenever I try to do bibliography & citation, it gives me very strange following error:

Runaway argument?

{ \end {thebibliography}

! File ended while scanning use of \BRorg@thebibliography.

\par

l.230 \bibliography{reference}

Whenver I comment our these lines, it works perfectly fine:

\bibliographystyle{plain}
\bibliography{reference2}

I've following bib file (with sample references):

BibFile

I'm very tired of searching. Please help and have a look. Thanks in advance!

Best Answer

There are two parts to this problem. Both must be attended to simultaneously. Fixing either one separately won't solve the problem.

First, the compile is reading the .bbl file, so that will need to be removed and rebuilt. But before removing it, it's worth looking at it to see if you can spot a place where the code looks flaky. (The .bbl file wasn't shown in the question, so can't be specific.)

Next, look at the .bib file. The obvious things to look for are incomplete entries -- missing closing braces or commas are the usual culprits, but that's not the case here. However, there's something else that appears to be incomplete: After the entry beginning @BOOK{MG, there is an incomplete entry beginning {Pan, with no entry type. I can't say for sure that this is what has caused the problem, but it does need to be fixed. It looks like an entry from a journal, so change it to

@ARTICLE{Pan,

Then, after making sure the old .bbl file has been removed, reprocess, recreating the .bbl file from the updated .bib file. Check to make sure there were no errors in the Bibtex run; that will create a .blg file as a record, and it's worthwhile to become familiar with that, since errors in the Bibtex run will usually have repercussions in the LaTeX run, even if only to omit a reference (which will not stop the processing, but will leave an unresolved \cite),

After compiling again with LaTeX, if the change to the .bib file was correct, the job will finish, and the output will be what you expect.

Related Question