Why this code doesn't work?




\caption{Image created with Inkscape}\label{figura:2}

TexWorks 0.61 sends this error:

    ! Undefined control sequence.
    \@includesvg ...extracttrue \fi \ifnum \pdfstrcmp 
                                                      {\pdffilemoddate {\SVG@in@...
    l.23 \includesvg{example.svg}


I'm compiling in XeLaTeX+MakeIndex+BibTeX

  • 1
    Hi, welcome. The reason for my edit is that the linebreaks in an error message have meaning, so preserving them are sometimes essential for properly understanding the error. For undefined control sequence errors, the last control sequence before the linebreak is the one that triggered the error. Just to doublecheck, is it correct that \pdfstrcmp is the last one before the linebreak? Mar 17 '17 at 19:54
  • i.imgur.com/OoN6Nuq.png Mar 17 '17 at 19:59
  • So, "yes", in other words. It works if you use pdflatex with --shell-escape enabled (see tex.stackexchange.com/questions/82699/…), I think some primitives like \pdfstrcmp are not defined by XeLaTeX (they have different names), which is why it doesn't work, but someone else needs to confirm that. Mar 17 '17 at 20:06
  • Basically same thing as tex.stackexchange.com/a/126706/586 Doesn't seem like there's any solutions for XeLaTeX, though I may be wrong. Mar 17 '17 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.