-
Notifications
You must be signed in to change notification settings - Fork 35
italic bold math font #46
Comments
|
Thanks for your help Khaled. I know nothing about fonts and I'm probably misunderstanding things. Apologies! Clarification: I was referring to a xits-math bold+italic font. So here was my reasoning. First, I noticed that in http://tex.stackexchange.com/questions/43642 or more recently http://tex.stackexchange.com/questions/296603, you and other font experts only ever write
with no reference to bold italic math fonts. So that was my first clue. When I added the line
to the above, I received an error message 'fontspec error: "font-not-found". Second clue. When I looked inside the font .otf files, I didn't see a bold-italic-math font. Third clue. And when I tried to insert this in the preamble:
which is something I read here (http://tex.stackexchange.com/questions/14395/bold-italic-vectors) about how to emulate a bold italic font, the outcome was very ugly. That was my fourth clue. But perhaps I just don't know how to set it up properly? Below a MWE used for my experiments:
|
The way OpenType math fonts is structured is different than traditional TeX fonts. All math alphabets are included in a single font file, so If you installed XITS Math in the system font directories (the recommended way), then all you need is The So your document should look like: \documentclass{article}
\usepackage[bold-style=ISO]{unicode-math}
%\usepackage[bold-style=TEX]{unicode-math}
\setmainfont
[ Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
]{xits}
\setmathfont
[ Extension = .otf,
BoldFont = *bold,
]{xits-math}
\begin{document}
\begin{itemize}
\item
mainfont:
\[x(t)=\int_{-B}^B X(f)e^{j2\pi ft} df\]
\item
boldmath:
{\boldmath
\[ x(t)=\int_{-B}^B X(f)e^{j2\pi ft} df\]
}
\item
mathbf:
\[\symbf{x(t)=\int_{-B}^B X(f)e^{j2\pi ft} df}\]
\item
mathbit:
\[\symbfit{x(t)=\int_{-B}^B X(f)e^{j2\pi ft} df}\]
\end{itemize}
\end{document} |
Thanks Khaled! Your explanation clarifies a lot of things for me. I noticed I'm not seeing a big difference between |
They are different in the font. You probably need to ask in |
Will do, thanks Khaled! |
As far as I understand there is currently no italic bold math font. Is that something that could be developed? The use case is some matrix notation (ISO/IEC convention). Or is there a workaround?
The text was updated successfully, but these errors were encountered: