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}
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
Code: Select all
inkscape -z -D --file=$i --export-pdf=$j.pdf --export-latex
{\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!