Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I draw figures in Inkscape. When I label elements within the figures with variable names that I have used in the underlying TeX document, I would like them to look exactly the same as in the document. (e.g. l does not look the same as $l$)

What is the name of the math mode font so I can select it correctly in the Inkscape font list?

If the exact font should not be available, what is a similar looking font that is present on most systems?

share|improve this question
1  
use the Latin Modern Symbol font. –  Herbert Jul 6 '11 at 12:26
1  
Why don't you export you document from inkscape with the latex-option. This is part of the pdf export. It will save the picture as pdf and all text as a tex file. In your document you can simply \input the generated tex file and all text is rendered with whatever font you are currently using. –  Martin H Jul 6 '11 at 13:51
    
@Martin H: That sounds like a good alternative, I had not heard about. Are you referring to 'Save as...-->LaTeX with PSTricks macros'? I could not find anything on a specialized pdf export. Do you have a link? –  Hauke Jul 7 '11 at 13:40
3  
Hi, no I am referring to a feature that is available in version 0.48 of inkscape. File->save a copy, select PDF and click "save". In the next window that pops up tick the box "PDF+LaTeX". As I said before, this will generate a PDF graphic and a tex file with positioning information for all text elements. open the tex file, the comments at the top contain information about how to include it in latex documents –  Martin H Jul 7 '11 at 22:21
add comment

2 Answers

up vote 10 down vote accepted

The font is a math font that is not available as OpenType. No, wait: it is! There's the new "Latin Modern Math" that's in the new TeX Live 2011 (to be released in a few days). The font is here. I haven't seen it yet in CTAN, though. The default font is Computer Modern, but the differences with Latin Modern are negligible for your needs.

share|improve this answer
1  
Great, the words Computer Modern lead me here. Seems that Inkscape needs a little extra love in the form of .otf fonts. I used 'LMRoman10' for the variables and am happy with the result. –  Hauke Jul 6 '11 at 12:54
1  
@Heuke: You need to use [text](http://url/) in comments to add links. I took the liberty fixing it for you. See the 'help' to the right of the comment edit box for more info. –  Martin Scharrer Jul 6 '11 at 14:47
add comment

Here a way to find this out, even when you change your font later:

For a PDF LaTeX document with only $i$ as content (and empty pagestyle to avoid the page number) I got using pdffonts the font name ZTAVXI+CMMI10 (the CMMI10 is the important part AFAIK and stands I presume for "Computer Modern Math Italic 10pt"). My full TeXLive2010 installation included only the TeX fonts, but apparently LyX delivers it as TTF font, at least I found it under /usr/share/fonts/truetype/ttf-lyx/cmmi10.ttf with my Linux installation. You might need it however as OpenType font. AFAIK it might be better to not use the original default font but a newer replacement like lmodern (load that as package) or the font egreg mentioned in his answer.

share|improve this answer
    
I use Times New Roman Italic in Inkscape, and it's close enough for my needs. But I also wish to use \mathbb in Inkscape (for a complement of a knot in $\mathbb{R}^3$). What font do I have to import in Inkscape to do that? When I look at $\mathbb{R}$ in PDF, it says the font is MSBM10. Some other font, similar enough, would also suffice. Oh, and what does AFAIK mean? –  Leon Lampret Jul 29 '11 at 1:49
    
Nevermind, found it with google: MSBM10.ttf download –  Leon Lampret Jul 29 '11 at 2:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.