# Constantly have to delete aux.file

Everytime I press Typeset, I get a notification of

Runaway argument.

l.30\begin{document}


I read that I would solve it by deleting the aux.file of the document.

Any idea what to do?

I have tried to find the error by deleting parts of the code, without any result. Even though the document does not contain any actual text, still it reads error. Thus I am left with the prospect that something is wrong in the preamble, which is why I am posting it below:

\documentclass[a4paper, titlepage]{report}

\usepackage[T1]{fontenc}

\usepackage[swedish]{babel}

\usepackage{yfonts}

\usepackage{amsthm}

\usepackage{amssymb,amsmath}

\usepackage{bussproofs}

\usepackage{framed}

\usepackage{enumerate}

\newtheorem{thm}{Sats}[section]

\newtheorem{prop}[thm]{Proposition}

\newtheorem{lem}[thm]{Lemma}

\newtheorem{cor}[thm]{Följdsats}

\newtheorem{ex}[thm]{Övning}

\theoremstyle{definition}

\newtheorem{definition}[thm]{Definition}

\newtheorem{example}[thm]{Exempel}

\theoremstyle{remark}

\newtheorem*{rem}{Anmärkning}

\newtheorem{note}{Kommentar}

\numberwithin{equation}{subsection}

\title{Analys 1 (Övningar)}

\author{-}

\date{\today}
\begin{document}

\end{document}

• Welcome to TeX.SX! What you read somewhere else doesn’t seem to be very good advice. The aux file is often necessary; I’d only delete it once I’m done (for now) with editing a document. For more details see tex.stackexchange.com/questions/11123/…. As for your actual problem, the runaway argument is pointing at some problem in your code. Try to create a minimal working example (MWE) and ask about it here if you need more help. – doncherry Nov 5 '13 at 11:39
• The added code doesn't show errors; on the other hand, it has accented characters and there is no loading of inputenc, which is quite wrong. Can you tell what file encoding you're using? – egreg Nov 11 '13 at 8:59