# Switching math & text fonts mid-document

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!

-
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

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}

-
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
@smh The question was also on how to switch math font. Please, add it to the example. –  Guido Dec 24 '12 at 16:21
The question is about changing math and text fonts. –  egreg Dec 24 '12 at 17:48