Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a problem in compiling my document. It takes much time in compiling and when I stop this this error appear:

! File ended while scanning use of \@writefile.<inserted text>\par \begin{document}    

EDIT:

This are the packages that I use

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[french]{babel} 
\usepackage{color} 
\usepackage{xcolor} %les couleurs 
\definecolor{myblue}{rgb}{0.2,0.4,1} 
\usepackage{layout}
\usepackage[top=2 cm, bottom=2 cm, left=2 cm, right=2 cm]{geometry} 
\usepackage{setspace} 
\usepackage[pdftex]{graphicx} 
\usepackage{array}

and also i compile this document frequently whith no problem but yesterday this problem appear

share|improve this question
3  
Do you forget a \end{document}. Please add a minimal working example (MWE) that illustrates your problem – Marco Daniel Apr 17 '12 at 11:36
You need to tell us more for us being able to help you. If the document is large, you obviously can't post it here but maybe you can provide a link? What packages are you using? Have you tried trimming it down to isolate the problem? – Christian Lindig Apr 17 '12 at 11:38
no i put it but when i try to compile this it last much time – boutheina Apr 17 '12 at 11:38
yes my document is large. how i can provide a link? – boutheina Apr 17 '12 at 11:40
2  
The message is from the aux-file. Beside other it contains instructions of code which should be written to the toc: e.g. \@writefile{toc}{\contentsline {section}{abc}{1}} Probably you have added something fragile to one of your titles and now latex chokes on the content in the aux-file. Open the aux-file to find the culprit, correct your code and then delete the broken aux-file. – Ulrike Fischer Apr 17 '12 at 12:14
show 2 more comments

closed as too localized by Jake, Andrew Stacey, cmhughes, Marco Daniel, Stefan Kottwitz Apr 24 '12 at 16:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.