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 have expected this question to be asked before, but searched and no luck. It took some effort to produce this MWE. I have followed this link. When I pdflatex compile this, it produces an exit with code 1 on Kile, if it contains latex code. Even though the output file is good. Why is this unclean exit?




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




main.tex: my source code

share|improve this question
Welcome to TeX.SX. – Claudio Fiandrino Feb 5 '13 at 13:45
@ClaudioFiandrino , what exactly don't use like about the formatting? – aiao Feb 5 '13 at 13:48
up vote 1 down vote accepted

Stumbled on solution while debugging another problem


This is not mentioned in the inkscape+pdf documentation. I think this can qualify as a bug. But it is hard to encounter since most work would \includepackage{xcolor} package for one reason or another. Further, beamer loads xcolor by default.

share|improve this answer
xcolor would be a more modern choice. Beamer, TikZ/PGF and many more use xcolor instead. – percusse Feb 8 '13 at 16:35
works like a charm. Edited answer. Thanx – aiao Feb 8 '13 at 16:37

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.