Fonts & Character SetsRoman font doesn't change, conflict with fontspec?

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
arthurdayne86
Posts: 2
Joined: Thu May 14, 2009 9:57 am

Roman font doesn't change, conflict with fontspec?

Post by arthurdayne86 »

Hi,

could anyone tell me why in this example, the "normal" font is not MinionPro?

Code: Select all

\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[minionint,mathlf]{MinionPro}
\usepackage{fontspec}

\setsansfont{Myriad Pro}

\begin{document}
\section{Heading}
The Cauchy integral formula...
\end{document}
Basically, I just want to use MyriadPro-Semibold for the headings but MinionPro with MnSymbol for all other stuff. Since I didn't manage to install MyriadPro through otftotfm, I decided to use XeLaTeX.
But now I just don't get how I can use both fonts at the same time. When I use one single font of those two, it works fine.

Maybe there is a conflict with this fontspec-Package? I'd be happy if someone could look over it and perhaps tell me how LaTeX does what I want it to do :-)

Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
arthurdayne86
Posts: 2
Joined: Thu May 14, 2009 9:57 am

Re: Roman font doesn't change, conflict with fontspec?

Post by arthurdayne86 »

Hi,

this problem is solved by adding \setmainfont{Minion Pro} (you have to install Minion Pro as system font before). fontspec is automatically disabled for the math section if there is \usepackage{MinionPro}.
Post Reply