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.

Possible Duplicate:
Importing a Single Symbol From a Different Font

Is there a command like \mathfont[font]{}, which enables me to use a different mathematical font for everything inside the parenthesis { } ?

I want for example to use \mathfont[txfonts]{$\mathbb{I}$}, so that just the blackboard symbol for "I" is display using the txfonts font, while the rest of my text uses the usual computer modern latex font.

I know there are similar questions and answers, but I can't get anything out of them, since to apply them, I have to know slot in the font of the symbol I'd like to import.

share|improve this question

marked as duplicate by egreg, Thorsten, lockstep, Werner, topskip Apr 7 '12 at 10:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

See page 11 of mathmode. Normally the font package writer will provide relevant commands. For example with amsfonts you will have.

\[\mathfrak{T} t_2 \]

\[\mathbf{Z}\]

\[\mathbb{Z}\]
share|improve this answer
    
I'm sorry, I didn't quite understood your answer ( or the other one). How can the above display the $\mathbb{I}$ symbol from txfonts ? I actually use LyX and didn't inlcude any special package so I just assumed it was computer modern. The "[\mathbf{Z}] " command also won't work. –  user10324 Mar 24 '12 at 16:14
    
@user10324 You need to \usepackage{amsmath,amsfonts}. I am sure LyX has a way to include packages? –  Yiannis Lazarides Mar 24 '12 at 16:19
    
Yes, it has those and I included them. But using your code still gives an error (I think a "\" was missing at the beginning of the second line). But even in that case \ [\mathbf{I}] doesn't give me the symbol I would get if I were to use $\mathbb{I}$ in a document where in the preamble I have \usepackage{txfonts}. –  user10324 Mar 24 '12 at 16:42
    
@user10324 Yes I missed the backslash, try using \[\mathbb{}\]. –  Yiannis Lazarides Mar 24 '12 at 16:47
    
No, '[\mathbb{I}]' with then amsmath,amsfonts package isn't looking like it is when using the txfonts package. –  user10324 Mar 24 '12 at 17:11
add comment

as it happens, the amsfonts blackboard bold was based on times, not on computer modern. so, using amsfonts (which most people rightly associate with computer modern, and the symbols definitely are the cm style), $\mathbb{I}$ will actually produce a times-styled letter.

it's not always the case, but when "variants" on the latin alphabet are involved (fraktur, script, etc.), the letters are usually positioned in the "normal" ascii locations, so it's worth trying that first (if you know what font you want/need) before creating a chart to check the actual position.

share|improve this answer
add comment

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