von guy.brush™ » Sa 26. Feb 2011, 16:06
Hmm...ja, das kann sein. Den Text speichere ich extra in einer .tex Datei. Ich habe die file gerade nur überflogen, aber ich vermute fast, dass es daran liegt. Werde es nachher oder morgen genauer anschauen, muss gerade noch etwas anderes machen.
Die Datei, die von Inkscape generiert wird, sieht dabei so aus:
%% Creator: Inkscape inkscape 0.48.1, www.inkscape.org
%% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010
%% Accompanies image file 'baum2.pdf' (pdf, eps, ps)
%%
%% To include the image in your LaTeX document, write
%% \input{<filename>.pdf_tex}
%% instead of
%% \includegraphics{<filename>.pdf}
%% To scale the image, write
%% \def\svgwidth{<desired width>}
%% \input{<filename>.pdf_tex}
%% instead of
%% \includegraphics[width=<desired width>]{<filename>.pdf}
%%
%% Images with a different path to the parent latex file can
%% be accessed with the `import' package (which may need to be
%% installed) using
%% \usepackage{import}
%% in the preamble, and then including the image with
%% \import{<path to file>}{<filename>.pdf_tex}
%% Alternatively, one can specify
%% \graphicspath{{<path to file>/}}
%%
%% For more information, please see info/svg-inkscape on CTAN:
%% http://tug.ctan.org/tex-archive/info/svg-inkscape
\begingroup
\makeatletter
\providecommand\color[2][]{%
\errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}
\renewcommand\color[2][]{}%
}
\providecommand\transparent[1]{%
\errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}
\renewcommand\transparent[1]{}%
}
\providecommand\rotatebox[2]{#2}
\ifx\svgwidth\undefined
\setlength{\unitlength}{34.4pt}
\else
\setlength{\unitlength}{\svgwidth}
\fi
\global\let\svgwidth\undefined
\makeatother
\begin{picture}(1,1)%
\put(0,0){\includegraphics[width=\unitlength]{baum2.pdf}}%
\put(0.14388825,-0.03083339){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$i$}}}%
\put(0.792852,0.86626436){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$j$}}}%
\end{picture}%
\endgroup
Ist leider immer etwas Gefrickel, bis der Text an der richtigen Stelle steht, da in Inkscape dann ja immer der Code steht und nicht der Output.
Hmm...ja, das kann sein. Den Text speichere ich extra in einer .tex Datei. Ich habe die file gerade nur überflogen, aber ich vermute fast, dass es daran liegt. Werde es nachher oder morgen genauer anschauen, muss gerade noch etwas anderes machen.
Die Datei, die von Inkscape generiert wird, sieht dabei so aus:
[code]
%% Creator: Inkscape inkscape 0.48.1, www.inkscape.org
%% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010
%% Accompanies image file 'baum2.pdf' (pdf, eps, ps)
%%
%% To include the image in your LaTeX document, write
%% \input{<filename>.pdf_tex}
%% instead of
%% \includegraphics{<filename>.pdf}
%% To scale the image, write
%% \def\svgwidth{<desired width>}
%% \input{<filename>.pdf_tex}
%% instead of
%% \includegraphics[width=<desired width>]{<filename>.pdf}
%%
%% Images with a different path to the parent latex file can
%% be accessed with the `import' package (which may need to be
%% installed) using
%% \usepackage{import}
%% in the preamble, and then including the image with
%% \import{<path to file>}{<filename>.pdf_tex}
%% Alternatively, one can specify
%% \graphicspath{{<path to file>/}}
%%
%% For more information, please see info/svg-inkscape on CTAN:
%% http://tug.ctan.org/tex-archive/info/svg-inkscape
\begingroup
\makeatletter
\providecommand\color[2][]{%
\errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}
\renewcommand\color[2][]{}%
}
\providecommand\transparent[1]{%
\errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}
\renewcommand\transparent[1]{}%
}
\providecommand\rotatebox[2]{#2}
\ifx\svgwidth\undefined
\setlength{\unitlength}{34.4pt}
\else
\setlength{\unitlength}{\svgwidth}
\fi
\global\let\svgwidth\undefined
\makeatother
\begin{picture}(1,1)%
\put(0,0){\includegraphics[width=\unitlength]{baum2.pdf}}%
\put(0.14388825,-0.03083339){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$i$}}}%
\put(0.792852,0.86626436){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$j$}}}%
\end{picture}%
\endgroup
[/code]
Ist leider immer etwas Gefrickel, bis der Text an der richtigen Stelle steht, da in Inkscape dann ja immer der Code steht und nicht der Output.