I am trying to typeset a book in Palatino with a custom font, Rockwell, used for headings. I can easily set the book in Palatino by using the palatino
package, if I use the fontspec
package to import my Rockwell files, all the body text reverts to default. I tried importing a TTF version of Palatino using fontspec
but the result was uglier than the version that comes with the Palatino package.
Basically:
\documentclass[10pt]{book}
\usepackage[paperheight=9in,paperwidth=6in]{geometry}
\usepackage{palatino}
\usepackage{fontspec}
\newfontfamily\headingfont[]{Rockwell}
\setmainfont{Palatino}
\begin{document}
This text should be in Palatino.
\end{document}
Best Answer
I use the
scrbook
class to change the heading font easily: