1

I'm trying to insert the 1.pdf_tex which was generated by Inkscape into my article and I always get this error message:

! Package keyval Error: page undefined. See the keyval package documentation for explanation. Type H for immediate help. ...

! LaTeX Error: Cannot determine size of graphic in images/1.pdf (no BoundingBox ). l.55 ...graphics[width=\unitlength,page=1]{1.pdf}} %

! Package keyval Error: page undefined. ....... ! LaTeX Error: Cannot determine size of graphic in images/1.pdf (no BoundingBox ).

l.55 ...graphics[width=\unitlength,page=2]{1.pdf}} %

I have two documents (1.pdf_tex and 1.pdf) in a directory images\ and I've already put

\usepackge{graphicx}
\usepackage{color}
\usepackage{transparent}
\graphicspath{{images/}}

at the very beginning of my document. Here is how I insert the 1.pdf_tex:

\begin{figure}[h]
  \centering
  \def\svgwidth{\columnwidth}
  \input{images/1.pdf_tex}
  \caption{Test}
\end{figure}

I really want to know why I can't compile and get my final document.

1.pdf_tex

part 1part 2

save file:save file

3
  • I do not know what =\unitlength is. But if the pdf page has no BoundingBox, this looks like an error in how it was generated?
    – Nasser
    Commented Jul 10, 2015 at 22:01
  • can you show us 1.pdf_tex ? Commented Jul 10, 2015 at 22:04
  • ok, thank both of u! i will show u 1.pdf_tex
    – xun
    Commented Jul 10, 2015 at 22:14

2 Answers 2

2

You have to remove the ,page=1 and all subsequent \put commands which have included repeatedly the input PDF.

This is probably an error of the Inkscape tool, probably this: https://bugs.launchpad.net/ubuntu/+bug/1417470

You can use next command to delete all the puts minus the first

  sed -i '/page=[2-9]\|page=1[0-9]/d' *tex
0

Just in case you haven't solve it and you haven't realize yet. You have a typo in

\usepackge{graphicx}

Has to be

\usepackage{graphicx}
2
  • Why not add this to your other answer as a side comment? Based on the error messages that were reported, I'm guessing this is not the issue (and hence doesn't answer the question); presumably it's just at typo in writing this up on TeX.SX.
    – Adam Liter
    Commented Mar 2, 2016 at 15:10
  • The reason why I didn't add as a side comment or edited is that it has nothing to do with the other problem
    – Joseba
    Commented Mar 3, 2016 at 16:49

You must log in to answer this question.

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