GeneralError: File ended while scanning use of \@argdef

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Error: File ended while scanning use of \@argdef

Post by marie2011 »

Dear all,

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Error: File ended while scanning use of \@argdef

Post by Stefan Kottwitz »

Hi Marie,

perhaps post the preamble here, i.e. the code before the line

Code: Select all

\usepackage{tabu}
It's very probably caused by a missing closing brace }. If we would see your code we probably could tell you where it should be.

Stefan
LaTeX.org admin
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Error: File ended while scanning use of \@argdef

Post by marie2011 »

Many thanks, Stefan. That is what I have before "tabu". I hope this can help.

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}
Best regards,

Marie
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Error by compiling

Post by Stefan Kottwitz »

Hi Marie,

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
LaTeX.org admin
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Re: Error by compiling

Post by marie2011 »

Hello Stefan,

Many thanks for your prompt answer.

I am enclosing the documents you need.

Many thanks in advance.

Best regards,

Marie
Last edited by marie2011 on Thu Feb 09, 2012 7:54 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Error: File ended while scanning use of \@argdef

Post by Stefan Kottwitz »

This part of the .log file is interesting:

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}
You did not load /usr/local/texlive/2011/texmf-dist/tex/latex/pgfplots/pgfplots.sty, but ./pgfplots.sty, which means a file with this name in your directory. Furthermore, it's actually csvtools.sty, but renamed. Correct the name of the file pgfplots.sty in your folder, or move it or delete it.

The Runaway argument error refers to the command \@csvseparator which seems to be a macro of that package csvtools.

Stefan
LaTeX.org admin
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Error: File ended while scanning use of \@argdef

Post by marie2011 »

Hello Stefan,

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.
Do I have to do something else?

Many thanks in advance.

Best regards,

Marie
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Error: File ended while scanning use of \@argdef

Post by Stefan Kottwitz »

It's a resources problem. You load many packages, perhaps check if you need all of them.

It can also be fixed by loading the etex package, which extends the resources which can be used:

Code: Select all

\usepackage{etex}
Stefan
LaTeX.org admin
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Re: Error by compiling

Post by marie2011 »

Hello Stefan,

Many thanks for your help.

I deleted \usepackage{pgfplots} and added \usepackage{etex}. It works :-)

Best regards,

Marie
Post Reply