General ⇒ Error: File ended while scanning use of \@argdef
Error: File ended while scanning use of \@argdef
I hope I posted the message in the right place.
I have had an error by compiling since yesterday. I know I must have forgotten a '{' somewhere, but I do not where. I was wondering if you could help me solving this problem.
That is the error I have:
ERROR: File ended while scanning use of \@argdef.
--- TeX said ---
\par
l.29 \usepackage
{tabu}
--- HELP ---
From the .log file...
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.
Many thanks in advance.
Best Regards,
Marie 2011
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Error: File ended while scanning use of \@argdef
perhaps post the preamble here, i.e. the code before the line
Code: Select all
\usepackage{tabu}
Stefan
Error: File ended while scanning use of \@argdef
Code: Select all
\documentclass[12pt%
%,draft%
,twoside%
,BCOR10mm%
,bibtotocnumbered
]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish,ngerman,catalan,english]{babel}
\usepackage{color}
\usepackage[round]{natbib}
\usepackage{fixme}
\usepackage{booktabs}
\usepackage{url}
\usepackage{paralist}
\usepackage{mystyle}
\usepackage{acronym}
\usepackage{graphicx}
\usepackage{appendix}
\usepackage{longtable}
\usepackage{color}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{pgfplots}
\usepackage{tabu}
\usepackage{lscape}
\usepackage{textcomp}
Marie
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Error by compiling
this works for me. Perhaps the problem is in mystyle.sty, could you post this as attachment?
Also I recommend to delete the .aux file and to compile again. Then post the .log file as attachment, it contains more information besides the error.
Stefan
Re: Error by compiling
Many thanks for your prompt answer.
I am enclosing the documents you need.
Many thanks in advance.
Best regards,
Marie
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Error: File ended while scanning use of \@argdef
Code: Select all
(./pgfplots.sty
LaTeX Warning: You have requested package `pgfplots',
but the package provides `csvtools'.
Package: csvtools 2007/07/03 v1.24 (NLCT)
)
Runaway argument?
{\renewcommand *{\@csvseparator }{##1}\construct@lopoff {##1}\@construct@qlopof
f \ETC.
! File ended while scanning use of \@argdef.
<inserted text>
\par
l.30 \usepackage
{tabu}
The Runaway argument error refers to the command \@csvseparator which seems to be a macro of that package csvtools.
Stefan
Error: File ended while scanning use of \@argdef
Many thanks for your prompt answer. I have just deleted the archive "pgfplots.sty" and it gave me the following error:
Code: Select all
ERROR: No room for a new \dimen .
--- TeX said ---
\ch@ck ...\else \errmessage {No room for a new #3}
\fi
l.62 \newdimen\pgfplots@zmax@reg
--- HELP ---
From the .log file...
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
Many thanks in advance.
Best regards,
Marie
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Error: File ended while scanning use of \@argdef
It can also be fixed by loading the etex package, which extends the resources which can be used:
Code: Select all
\usepackage{etex}
Re: Error by compiling
Many thanks for your help.
I deleted \usepackage{pgfplots} and added \usepackage{etex}. It works

Best regards,
Marie