I'm trying to import a graphic created in LibreOffice Draw in a LaTeX document.
So far I've tried the Way:
- Export Document to SVG file.
- Open with Inkscape and Export using eps+latex
- Including resulting xxx.eps_tex in latex
Although the SVG seems to be just fine (also in Inkscape), the exported positions of the text are bad:
\begin{picture}(1,0.73115748)%
\put(0,0){\includegraphics[width=\unitlength]{ModeDispersion.eps}}%
\put(-0.05241193,0.78432034){\makebox(0,0)[lb]{\smash{Cladding (air)}}}%
\put(-0.05241193,0.78432034){\makebox(0,0)[lb]{\smash{Substrate}}}%
\put(-0.05241193,0.78432034){\makebox(0,0)[lb]{\smash{In}}}%
\put(-0.05472789,0.25830639){\makebox(0,0)[lb]{\smash{Out}}}%
\put(-0.05472789,0.25830639){\makebox(0,0)[lb]{\smash{Single-mode}}}%
\end{picture}%
and so on. Same for pdf+latex.
Original LibreOffice (version 4.0.1.2) file and exported SVG:
ODG
SVG
I can't attach the files created by Inkscape (version 0.48.3.1), as stackoverflow told me that I would need at least ten reputations to do so…
Does anyone know how to solve this problem?
edit: Shown in inkscpae:
(source: x-linux.de)
Processed using latex:
(source: x-linux.de)
Best Answer
The graphics figure Work flow adopted by you
.odg
-->.svg
-->eps+tex
/pdf+tex
is not optimal due to conversion inefficiency of respective editor.The recommended choice of figure format is
.pdf
always except for screenshots (.png
) and photos (.jpg
) assumingpdflatex
engine.Adopt a 'single' conversion step to generate
figure.pdf
. Either.svg
to.pdf
or.odg
to.pdf
not combine them.Inkscape exports to
.pdf
with latex fonts(latin modern) or close enough, similarly LibreOffice. I have successfully changed the fonts and exported your drawing using Libreoffice to.pdf
. You can even draw in Inkscape and export to pdf also.