3

I can't for the life of me get XeTeX to give me bold lowercase greek symbols, even though I have checked, e.g., in a word processor, that the font has a corresponding bold typeface with the greek character on my computer.

I use Linux Libertine for my normal font, and also for the digits in math mode; however, I wish to use minion pro for the latin/greek math characters.

Working example:

\documentclass[12pt,a4paper]{book}
\usepackage{amssymb}
\usepackage[no-math]{fontspec}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathspec}
\usepackage{textcomp}

\usepackage{xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}

\setmainfont[Mapping=tex-text]{Linux Libertine O}

% MATHS FONT
\setmathfont(Digits){Linux Libertine O}
\setmathfont(Latin,Greek){Minion Pro}

\begin{document}

Text. Some \textbf{bold text}; this all comes out in Linux Libertine.
\begin{equation}
    \boldsymbol\pi = \left< \pi_1, \pi_2\right>
\end{equation}

The above equations should render an emboldened pi character and two regular pi characters. 
\end{document}

OK, when I run the above I just get the same pi characters, which are all in Minion Pro, but the first one is not emboldened.

Any ideas?

1 Answer 1

7

\boldsymbol uses \mathversion{bold}, but mathspec doesn't declare fonts for the bold math. Try this in your preamble:

\makeatletter
%\DeclareMathVersion{bold}
\fontspec{Minion Pro} %sets \zf@family to minion pro.
\SetSymbolFont{Latin:m:n}{bold}{EU1}{\zf@family}{bx}{n}
\SetSymbolFont{Latin:m:it}{bold}{EU1}{\zf@family}{bx}{it}
\SetSymbolFont{operators}{bold}{EU1}{\zf@family}{bx}{n}
\SetSymbolFont{Greek:m:n}{bold}{EU1}{\zf@family}{bx}{n}
\SetSymbolFont{Greek:m:it}{bold}{EU1}{\zf@family}{bx}{it}

\fontspec{Linux Libertine O}
\SetSymbolFont{Digits:m:n}{bold}{EU1}{\zf@family}{m}{n}
\makeatother
6
  • 1
    Great! That works perfectly! One little thing (which I don't think warrants another question) - how do I set the character to uppercase? I tried \mathrm and \rm but the character disappears; do I need to append something to your answer?
    – e-dard
    Feb 21, 2011 at 17:07
  • I don't understand your question. Are you looking for \Pi? Feb 21, 2011 at 17:15
  • Sorry for being confusing. No, I'm not looking for \Pi. I should not have said uppercase! I'm after \pi with a normal emphasis, i.e., not italicised; as if you were defining a vector with \pi (bold and upright).
    – e-dard
    Feb 21, 2011 at 17:44
  • \setmathrm{Minion Pro} and then \mathrm{\pi} or \boldsymbol{\mathrm{\pi}} Feb 21, 2011 at 18:04
  • Thanks! I don't know why I thought it was as simple as just specifying the font family. :-)
    – e-dard
    Feb 21, 2011 at 18:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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