Hello,
I want to place a .pdf- or .svg-figure created with Inkscape in my Lyx-Document. In the Inkscape-file I want to use LaTeX-comands and I want the text to appear in the same size and font as it is in the Lyx-document.
I found this for "normal" LaTeX, but I don´t know how to do this with Lyx. See: http://mirrors.ctan.org/info/svg-inksca ... FLaTeX.pdf
Is it possible to place an Inkscape-file created as "pdf+latex" like normal figures in Lyx?
Thanks in advance for your answers!
Dennis
LyX ⇒ Inkscape PDF LaTeX in LyX
NEW: TikZ book now 40% off at Amazon.com for a short time.

Inkscape PDF LaTeX in LyX
Sure, the same way you use in "normal" LaTeX:
1. Create a file in Inkscape and save it with PDF+LaTeX option. Let's call it Test.pdf. After that, you'll get two files: Test.pdf (containing graphics) and Test.pdf_tex (containing coordinates etc.).
2. Place both files in the same folder as your .lyx file (if you place it in some other place, don't forget to add full absolute or relative path to the file in step 3. instead of the name of the file).
3. In LyX, insert an ERT box (Ctrl+L) and type in:
Note: if you get errors, make sure you have graphicx and xcolor packages loaded in Documents > Settings > LaTeX Preamble:
1. Create a file in Inkscape and save it with PDF+LaTeX option. Let's call it Test.pdf. After that, you'll get two files: Test.pdf (containing graphics) and Test.pdf_tex (containing coordinates etc.).
2. Place both files in the same folder as your .lyx file (if you place it in some other place, don't forget to add full absolute or relative path to the file in step 3. instead of the name of the file).
3. In LyX, insert an ERT box (Ctrl+L) and type in:
Code: Select all
\input{Test.pdf_tex)
Code: Select all
\usepackage{graphicx}
\usepackage{xcolor}