|
From: Ulrike F. <li...@ni...> - 2009-04-22 15:00:11
|
am Dienstag, 21. April 2009 um 13:23 schrieb Dragan Blagojevic:
> Dear all
> I encountered another problem with hyperref.
> It changes proclaim heading font (including indentation).
> Compile the example below with and without hyperref
> and compare the results.
> Any idea for a solution?
> Dragan Blagojevic
> \documentclass[a4paper]{amsproc}
> \usepackage{amssymb}
> \usepackage[T1]{fontenc} \usepackage{lmodern}
> \usepackage[resetfonts]{cmap}
> \usepackage{hyperref}
> \theoremstyle{plain}
> \newtheorem{thm}{Theorem}
> \begin{document}
> \begin{thm}
> Theorem text. Theorem text. Theorem text. Theorem text. Theorem text.
> \end{thm}
> \end{document}
The problem is that hyperref redefines the internal command \@thm but
seems to forget to set the headfont. The easiest is problably to add
\scshape to \th@plain:
\makeatletter
\def\th@plain{%
\thm@headfont{\scshape}% heading font is scshape
\itshape % body font
}
--
Mit freundlichen Grüßen
Ulrike Fischer
|