PDA

vasjapupkin
January 12th, 2012, 12:42 AM
I've got a LaTeX a.tex document and a picture, created with inkscape0.47 and saved as b.tex file.
I want to \input that b.tex file with picture to a.tex.

I've included PSTricks package in a.tex as required, but still pdflatex curses that it sees undefined control sequences in b.tex. I assume that I should've used some more packages in a.tex? Can anyone help me out, how do I do such an input? Failed to find a guide for my case, they all tell of eps/pdf import.

January 23rd, 2012, 06:21 AM
I've got a LaTeX a.tex document and a picture, created with inkscape0.47 and saved as b.tex file.
I want to \input that b.tex file with picture to a.tex.

I've included PSTricks package in a.tex as required, but still pdflatex curses that it sees undefined control sequences in b.tex. I assume that I should've used some more packages in a.tex? Can anyone help me out, how do I do such an input? Failed to find a guide for my case, they all tell of eps/pdf import.

Is there a particular reason you are saving your Inkscape picture as a .tex file? The easiest picture format to import into a document prepared from TeX is an .eps. Inkscape is able to save as .eps. So unless there is a particular reason to save it as a .tex I'd just resave it as .eps then in your TeX document do

\begin{figure}
\includegraphics{graphicsfilenamewithoutepsextensi on}
\caption{\label{a_label}Write a caption here.}
\end{figure}