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 am using pdfLaTeX (TeX Live 2011) to compile a document. Unfortunately it does not compile. Again, my example compiles flawlessly with TeX Live 2009. I include an SVG/PDF graphics following this guide. To do so I first create a drawing in an SVG file, then I export it to PDF and pdf_tex files.

In the SVG file I added a line of text like this:


The figure is included by:

\def \svgwidth{\columnwidth}

The \includesvg command is defined as:

inkscape -z -D --file=#1.svg %
--export-pdf=#1.pdf --export-latex}%

Parts of the generated pdf_tex file.

    \put(0.47868192,0.06651686){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{c) foo + bar + baz }}}%
    \put(0.47868192,0.17904892){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{b) bar + baz }}}%
    \put(0.47868192,0.33397134){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{a) baz}}}%

This is the resulting error.

<./figs/graphics/snifs_fov.pdf, id=104, 376.15532pt x 168.55472pt>
<use ./figs/graphics/snifs_fov.pdf>)
! Undefined control sequence.
\arcsecond ->\ERROR 

UPDATE: I have mistakenly considered the SVG file to be the root of the error. In fact the same text, which is in the SVG file, follows in a paragraph after the figure. I debugged this by changing the text in the SVG file. The error message after compilation did not change. And also JosephWright's confirmation, that it is possible to compile the file in an MWE, helped me to find out.

share|improve this question
Exactly which siunitx version do you have: check in your log file. I can test against any version: you may be seeing a bug in an old version. (This is a more general point: TeX Live versions don't really tell us much about individual package versions, which are almost always more informative.) – Joseph Wright Jan 17 '13 at 20:42
siunitx.sty 2012/05/03 v2.5c A comprehensive (SI) units package – user24537 Jan 17 '13 at 20:44
The file depositfiles.com/files/86r22v83r – user24537 Jan 17 '13 at 20:48
No problems here with a minimal .tex file, the linked SVG converted using Inkscape and the version of siunitx you cite. – Joseph Wright Jan 17 '13 at 21:18
I must have mistakenly suspected the svg file to be the root of the problem. – user24537 Jan 17 '13 at 21:25
up vote 6 down vote accepted

(More of a comment, but too long.) For me, using

%inkscape -z -D --file=#1.svg %
%--export-pdf=#1.pdf --export-latex}%

and a .pdf_tex file created using Inkscape works fine (I don't have it on my path, so did the conversion in the GUI). Works with both siunitx v2.5c and latest release.

share|improve this answer

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.