Graphics, Figures & TablesInsertion of Inkscape pdf_tex/SVG

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
nymphnode
Posts: 1
Joined: Mon Aug 13, 2012 1:22 pm

Insertion of Inkscape pdf_tex/SVG

Post by nymphnode »

Hi,

I'm having a lot of problems trying to insert an Inkscape-generated PDF_TEX file into my main LaTeX file and pdflatex'ing it. When I have the following:

Code: Select all

\documentclass[]{article}
\usepackage{graphicx,color,transparent}

\graphicspath{{./img/}}

\begin{document}
\begin{figure}[htb]
  \centering
  \def\svgwidth{200pt}
  \input{img/fig-a.pdf_tex}
\end{figure}
\end{document}
I get the following error message:

Code: Select all

(./img/fig-a.pdf_tex
<./img/fig-a.pdf, id=1, 449.68pt x 337.26pt>
<use ./img/fig-a.pdf>)
Runaway argument?
{\color [rgb]{0,0,0}\rotatebox {90}{\makebox (0,0)[b]{\smash {\put (0\ETC.
! File ended while scanning use of \put.
<inserted text> 
                \par 
I generated the pdf_tex file from running a shell script which executed

Code: Select all

inkscape -z -D --file=$i --export-pdf=$j.pdf --export-latex
I don't even see the sequence of commands {\smash {\put in the pdf_tex file?

Any help much appreciated!

Or if anyone has suggestions as to what is the best way to have control over font sizes in Matlab-generated figures for Latex (this is the reason why I am trying my hand at the SVG image file format)....

Thanks in advance!
Last edited by localghost on Tue Sep 11, 2012 6:39 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Re: Insertion of Inkscape pdf_tex/SVG

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Perhaps add the .tex export as attachment here, for testing.

Stefan
LaTeX.org admin
Post Reply