Within a larger document with lots of formulas, I use a self-defined "Example" environement for illustrational purposes from time to time. In order to better set it apart from the rest of the text, I have decided to use another font family within those example surroundings.
But - and here's my problem - the code I use only changes the text font. How can I use another math font for the formulas within the defined enviromenent?
\newenvironment{Ex}{\fontfamily{ppl}\selectfont\par\vspace{1ex}\begin{quote}\textbf{Example: }}{\end{quote}\par}
Thanks in advance for any help!
Edit: More details regarding my question. Let me illustrate it with an example:
[Here's some default-formatted text]
\begin{Example}
[some example text I want in another font family]
\begin{equation}
and now I need a formula within the example-environement set in a different style than the standard layout to underline it's still part of the example-surrounding
\end{equation}
[maybe some more text within the example]
\end{Example}
[And now back to the main body of the text set once again in the default layout]
I hope this clarifies (rather than confuses) my question.
\boldmath
). But if you want a more specific answer you will have to give much more detailed informations about your actual setup. Btw: I don't think that is a good idea to use too much font families in a document.