TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to save the PSTicks code for my images in seperate files and then include them with \include{image.tex}. This works fine with normal figure floats. But when I use subfloats, I get the error:

(./newfile1.aux (./file.tex.aux))
! Missing } inserted.
<inserted text> 
l.11    }

This minimal example works fine (file.tex can be also empty), but throws an error when the comment marks are removed:






The minimal example works as expected also if the include command is replaced by the content of the file.

share|improve this question
up vote 4 down vote accepted

\include is the wrong command for sure. It's meant for parts of the document structure like chapters which get their own .aux files.

Try \input.

share|improve this answer
Thanks, that solved everything. I didn't think about that, because it was working with out subfloats and I was using \include a lot before, but it was wrong everywhere... – lumbric Mar 26 '12 at 7:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.