I've been working on a thesis on my MacBook Air with OS X Sierra for several weeks already...always in the same TexShop 3.8 file.

Today, out of nowhere, the file stopped to compile and gives me the error:

'Runaway argument? ./Bachelorarbeit.tex:37: File ended while scanning use of \bibcite. \par l.37 \begin{document}'

The strange thing about that is that 'undo' did not work to make it compile again and that moving '\end{document}' to the line right under '\begin{document}' did not work either. When I paste the code into a new file it works for several compilations but stops compiling out of nowhere again. Also the file compiles in Overleaf. Because of that and since I double-checked it I'm sure I did not forget a '}' anywhere.

The .aux file's last two lines are: \bibcite{Marvi et al. 2011}{38} \bibcite

but I cannot find anything remarkable in my 38th or 39th reference.

I appreciate every help you guys can give me.

Thank you Jonas

edit: @TeXnician These are the packages I'm currently using. Do you think there's an issue with them?

\documentclass[11pt,a4paper]{article} %to make it an article

\usepackage{a4wide} %for width

\usepackage[a4paper, left=25mm, right=25mm, top=30mm, bottom=30mm]{geometry} %for space left, right, top, bottom

\usepackage[ngerman, english]{babel} %for different languages   

\usepackage[latin1]{inputenc}%for umlauts

\usepackage[T1]{fontenc} %for german stuff

\usepackage{lmodern} %for prettier signs in pdf

\usepackage{amsmath} %for mathematical expression

\usepackage{graphicx} %for images

\usepackage{tabularx} %for tables

\usepackage{upgreek} %for special greek signs

\usepackage{diagbox} %for diagonal lines in tables

\usepackage{xcolor} %for colored signs

\usepackage{colortbl} %for colored tables

\usepackage{lscape}  %for large tables

\usepackage{caption} %for captions

\usepackage{eurosym} %for euro symbol

\usepackage{scrpage2} %for header and footer

\usepackage{here} %to insert at a certain point

\usepackage{rotating} %to rotate

\usepackage[hidelinks]{hyperref} %to transfer references to pdf or something like that

\usepackage[onehalfspacing]{setspace} %Zeilenabstand 

\usepackage{scrpage2} %Kopfzeile

\usepackage{acronym} %for nomenclature

\usepackage{bm} %for bf in math environment

\usepackage[framed, numbered]{matlab-prettifier} %for pretty matlab code

closed as unclear what you're asking by Torbjørn T., Schweinebacke, Joseph Wright Aug 29 '17 at 14:00

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    just delete the aux file – David Carlisle Jul 17 '17 at 20:00
  • Welcome to TeX.Stackexchange! – user36296 Jul 17 '17 at 20:01
  • @DavidCarlisle Thanks first of all. It helped and the file is compiling again. But I have to delete the .aux file every time I caused an error now. Is there a way to get rid of this problem? – Jonas Jul 17 '17 at 20:18
  • 1
    you presumably get a real error that stopped the run while it was writing the file (which is how the aux file became corrupt) if you made an example or at least showed the fill text of that error from the log, someone could help – David Carlisle Jul 17 '17 at 20:39
  • 1
    error messages start with ! have the text of an error message over the next few lines normally ending woith ? – David Carlisle Jul 17 '17 at 21:07

Browse other questions tagged or ask your own question.