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 would like to use the fonts given by cmbright for part of my document, and the default CM fonts or perhaps mathpazo for another part.

What is the easiest, best way to do this? I have seen usually in other answers that changing math fonts can be a big ordeal. I am looking for a modern, clean approach to this (as much as possible). Thanks for your help!

share|improve this question
    
The easiest way is to use unicode-math package to choose OpenType math fonts, but there are not as many OpenType fonts as old ones. –  Leo Liu Dec 24 '12 at 3:03
    
The main obstacle is not in changing fonts, because one can define math versions, but rather the fact that math font packages frequently change the symbol tables. And this is the case with mathpazo. –  egreg Dec 24 '12 at 17:46
add comment

1 Answer 1

If you compile your document using xelatex, you can easily define various fonts.

\documentclass{article}
% XeLaTeX
\usepackage{xltxtra}
\usepackage{xunicode}
‎
% Math ‎Font‎
\usepackage[utopia]{mathdesign}

% Fonts
\setmainfont{Arial}‎
\newfontfamily\cf{Courier New}‎

\begin{document}‎
\[‎
‎\sum_{i=0}^{n} 2^i
\]

Arial font. ‎
‎
\cf{Courier New font}.

\end{document}
share|improve this answer
3  
Could you provide an example? It will be for sure helpful to make more clear the answer. :) –  Claudio Fiandrino Dec 24 '12 at 11:01
    
been provided ! –  smh Dec 24 '12 at 12:54
2  
@smh The question was also on how to switch math font. Please, add it to the example. –  Guido Dec 24 '12 at 16:21
2  
The question is about changing math and text fonts. –  egreg Dec 24 '12 at 17:48
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.