Hello i have an annoying problem. Its about the use of \input command

I have created a folder called Docs and within that folder i have a folder called cha for chapters.

my main file is called document.tex and reside inside the Docs folder.

in the cha folder i have a file called intro.

When i try to use the \input{./cha/intro} or \input{cha/intro} i get the error message when compiling:

File ended while scanning use of \@xdblarg. bla bla bla

The code from my document.tex is some i copied because i wanted to use a template.

If i make the exact same case from a tex file from scratch e.g. \input{1/1} (folder named '1' and file named '1') i can load it...

But i dont understand what's wrong in my case..


% put all the other packages here:





This is the error i get:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded 
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2018-04-01> patch level 2
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2018/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Runaway argument?
{Introduction) \par This is where i am going to tell you about my ini\ETC.
./document.tex:15: File ended while scanning use of \@xdblarg.
<inserted text> 
l.15 \input{cha/intro}

Any ideas?

Br Thomas

  • 1
    You have a parenthese at the end of {Introduction). This probably should be a closing brace. Oct 9, 2018 at 7:30
  • Hahaha, wauw.. and then all the time i was looking for an error everywhere else than in the intro.tex Thanks! Oct 9, 2018 at 7:33

1 Answer 1


Errors with \@xdblarg indicate that something is wrong with a command with an optional and a mandatory argument (dblarg=double argument).

File ended while scanning use of indicates that such a argument wasn't closed correctly.

The error message quite often tells you were the argument was opened:

Runaway argument?
{Introduction) \par

And by looking closely you can see the closing parenthese instead of the closing brace....

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .