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 use \usepackage{fouriernc}. Now, I want to select the font chancery for theorem environment. How can I choose the font for an environment, for example, theorem environment?

\documentclass{book}
\usepackage{amsmath,amsthm}
\usepackage{fouriernc}
\newtheorem{theorem}{Theorem}
\usepackage{lipsum}
\begin{document}
\chapter{These Real Numbers}
\lipsum[1-2]
\begin{theorem}
\fontfamily{qzc}\selectfont\large
This is a theorem Pythagore
$$a^2 + b^2 = c^2.$$
\end{theorem}
\end{document}

How can I input \fontfamily{qzc}\selectfont\large at \newtheorem{theorem}{Theorem} before \begin{document}?

share|improve this question
    
Related question: How do I install two fonts into a document?. –  Speravir Dec 31 '12 at 2:19

1 Answer 1

up vote 7 down vote accepted

You can choose the font Chancery by:

\fontfamily{qzc}\selectfont

including it into a \begingroup ... \endgroup sequence holds the change local

\documentclass{book}
\usepackage{amsmath,amsthm}
\usepackage{fouriernc}
\newtheorem{theorem}{Theorem}
\usepackage{lipsum}
\newtheoremstyle{Special}%
  {3pt}%      ⟨Space above⟩
  {3pt}%      ⟨Space below⟩
  {\large\fontfamily{qzc}\selectfont}%⟨Body font⟩
  {}%         ⟨Indent amount⟩1
  {\itshape\bfseries}% ⟨Theorem head font⟩
  {:}%        ⟨Punctuation after theorem head⟩
  {.5em}%     ⟨Space after theorem head⟩2
  {}%         ⟨Theorem head spec (can be left empty, meaning ‘normal’)⟩
\theoremstyle{Special}
\newtheorem{Theorem}{Special}

\begin{document}
\chapter{These Real Numbers}
\lipsum[1-2]
\begin{Theorem}
This is a theorem Pythagore
$$a^2 + b^2 = c^2.$$
\end{Theorem}
\end{document}
share|improve this answer
    
Thank you. I tried \begin{theorem} \fontfamily{qzc}\selectfont\Large This is a theorem This is a theorem This is a theorem This is a theorem This is a theorem \end{theorem}. How to input fontfamily{qzc}\selectfont\Large at premable \newtheorem{theorem}{Theorem}? –  minthao_2011 Dec 30 '12 at 9:40
1  
create a complete example! How should I know, what other packages do you load? –  Herbert Dec 30 '12 at 9:51
    
How do I get font size in body Theorem equal to font size outside \begin{Theorem} \end{Theorem}? For example 12 pt at body Theorem. –  minthao_2011 Apr 30 at 10:46
    
if you have 11pt for the document wide font size then use \large for 12pt –  Herbert Apr 30 at 20:35
    
I did so. But then font math in Theorem is bigger than document wide font size. –  minthao_2011 Apr 30 at 23:45

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.