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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use a specific font for a specific formula in XeLaTeX. Usually, the math font can be set up using mathspec package.

\setmathsfont(Digits,Latin,Greek)[Numbers={Lining,Proportional}]{Humor Sans}

I can also use a specific font for a part of the text using \newfontfamily command:

\newfontfamily\humor{Humor Sans}
{\humor text }

How can I use a specific font for a single equation:

%Want Humor Sans only here!!
   C = A + B
share|improve this question
Welcome to TeX.SX! – barbara beeton Oct 4 '13 at 12:30

Your Answer


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

Browse other questions tagged or ask your own question.