This question already has an answer here:

I have the following problem to include a pdf (also tried eps) to a latex document. I always get this fault:

    ! Extra }, or forgotten \endgroup.
\endpicture ->\egroup \hss \egroup 
                                   \ht \@picbox \@picht \dp \@picbox \z@ \mb...
l.121   \end{picture}

When I count the { and }'s I see one more } ! But I cannot find the point where this i could be.

I also checked my text in the document and tried it without text.

Also I think there is a Bug in Inkscape. When I am making the pdf and the tex file, the pdf file has only 1 page, but the tex document tries to include page 1-4. So I have to remove this code lines. After this the error described above comes up.

Anyone has an idea about all this?



The .pdf_tex file looks like this: As you can see there are the


lines. When I delete this lines everything works fine. But with them I get an error like:

page does not exist <1>

It always shows the last available page in the PDF document.

    \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
    \errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
      \setlength{\unitlength}{\unitlength * \real{\svgscale}}%

marked as duplicate by user36296, Sean Allred, Mensch, Claudio Fiandrino, Zarko Aug 27 '16 at 12:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Which package do you use to include the pdf? Please provide a minimal working example! – JBantje May 7 '15 at 21:33
  • I think you need to edit the question to give some hints that allow people to help. just giving an error message with no hint of the input doesn't make it easy to debug. – David Carlisle May 7 '15 at 21:34
  • Ok I it works now. I found a } in my text. It is late and my eyes seems to need some sleep :D But the 2nd problem I described is there furthermore. – Johannes May 7 '15 at 21:41
  • Second problem? Please update the question and remove the resolved issue, just showing what actually troubles you. – Johannes_B May 8 '15 at 8:43

If I understood correctly your problem is with pdf_tex including extra pages. You can have a look at this answer. I had the same problem, I solved it by removing inclusions of "unused" pages. In my case, the "useful" pages were the ones just before including axis labels (it was 2D graphs). You can experiment and delete all pages but for one and see when it works, but I'm pretty sure that you can easily delete inclusion of pages 2-3, leaving only the first one.

  • 1
    If you point to a solution elsewhere on this site, does this mean the question is a duplicate? – Werner Nov 11 '15 at 19:07
  • I guess so, the only difference is in the linked answer the problem is that pdf_tex tries to include "fantom" pages in the end. While here multiple non-existent pages are included in random locations. It is similar, but it's not exactly a duplicate, imo. Plus, I didn't see, how I could mark it as duplicate, so I decided to answer at least. – mfedoten Nov 12 '15 at 15:02

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