Inkscape Forum Inkscape > Inkscape and Latex fonts

Posted by Paulo J. Matos (Guest)
on 14.07.2008 11:06
(Received via mailing list)
Hello all,

I use inkscape to create my latex diagrams, then I export them to eps
or pdf to include them in slides or papers. One thing that bothers me
is that the fonts are different (latex and inkscape fonts). Is there a
way to draw the text in the inkscape diagram with the font used on the
document the diagram is included?

Cheers,

--
Paulo Jorge Matos - pocm at ecs.soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
Posted by Philip Stubbs (Guest)
on 14.07.2008 12:31
(Received via mailing list)
2008/7/14 Paulo J. Matos <pocm@ecs.soton.ac.uk>:
> Hello all,
>
> I use inkscape to create my latex diagrams, then I export them to eps
> or pdf to include them in slides or papers. One thing that bothers me
> is that the fonts are different (latex and inkscape fonts). Is there a
> way to draw the text in the inkscape diagram with the font used on the
> document the diagram is included?
>
> Cheers,

I don't know how complex your diagrams are, but I have in the past
exported Inkscape diagrams directly to pstricks macros. These then can
be included into the LaTeX source files.

This may not help as me experience was with company logos that did not
include any text, but is worth a try.

--
Philip Stubbs
Posted by John Culleton (Guest)
on 14.07.2008 14:30
(Received via mailing list)
On Monday 14 July 2008 05:05:56 am Paulo J. Matos wrote:
> Hello all,
>
> I use inkscape to create my latex diagrams, then I export them to
> eps or pdf to include them in slides or papers. One thing that
> bothers me is that the fonts are different (latex and inkscape
> fonts). Is there a way to draw the text in the inkscape diagram
> with the font used on the document the diagram is included?
>
> Cheers,

I don't know which LaTeX  fonts you are using, nor on what platform,
but in general fonts used in any form of TeX are located in a
subdirectory named fonts. If you go to the subdirectory for type 1
and continue to drill down eventually you will ocme across the pdf
file. You are half way home. If you can find the corresponding afm
file you have all the components, which you need to put in a place
where Inkscape can find them.

At the moment I am shooting ducks with a blindfold on. What operating
system do you use? What version of TeX: tetex, texlive, miktex or
other?  What s;pecific fonts are you concerned with?

--
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
Posted by unknown (Guest)
on 14.07.2008 14:47
(Received via mailing list)
> I use inkscape to create my latex diagrams, then I export 
> them to eps or pdf to include them in slides or papers. One 
> thing that bothers me is that the fonts are different (latex 
> and inkscape fonts). Is there a way to draw the text in the 
> inkscape diagram with the font used on the document the 
> diagram is included?

You can use the LaTeX extension to get LaTeX text in Inkscape (Effects
-> Render -> Latex formula...). This uses the default LaTeX font, but
you can change it.
Find the extension's python file: "share\extensions\eqtexsvg.py" and
open it in a text editor. Somewhere there are lines that get written to
a temporary tex file, you should modify them to get your fonts. Search
for "\\usepackage{amsmath}". Those lines should match with the preamble
of your latex document.

Good luck,
Johan