Uwe Ziegenhagen
2007-02-14 09:23:06 UTC
Hallo,
währends des Versuchs, in Beamer den example und theorem Umgebungen
unterschiedliche Counter zu verpassen, fiel mir auf, dass das mit
'proof' nicht funktioniert, obwohl es laut Handbuch gehen sollte.
Anbei mal ein quasi-minimales Beispiel, das bei mir nur dann durchläuft
wenn die Proof Umdefinition auskommentiert ist.
Zusammenfassend meine Fragen:
1) Wie gebe ich example und theorem unterschiedliche Counter?
2) Wie kann ich proof umdefinieren?
Uwe
\documentclass{beamer}
\setbeamertemplate{theorem begin}{%
\begin{\inserttheoremblockenv}{%
\inserttheoremheadfont
\inserttheoremname
\inserttheoremnumber
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
}}%
\setbeamertemplate{theorem end}{\end{\inserttheoremblockenv}}
% \setbeamertemplate{proof begin}{%
% \begin{\inserttheoremblockenv}{%
% \inserttheoremheadfont
% \inserttheoremname
% \ifx\inserttheoremaddition\@empty\else\ %(\inserttheoremaddition)\fi%
% }}%
% \setbeamertemplate{proof end}{\end{\inserttheoremblockenv}}
\setbeamertemplate{theorem begin}{{%
\textup{{\large \structure{%
\inserttheoremname
\inserttheoremnumber
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
\inserttheorempunctuation
}}}%
}%
}%
\setbeamertemplate{theorem end}{}
\setbeamertemplate{example begin}{%
\begin{\inserttheoremblockenv}{%
\inserttheoremheadfont
\inserttheoremname
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
}}%
\setbeamertemplate{example end}{\end{\inserttheoremblockenv}}
\begin{document}
\frame{
\begin{theorem}
$$A^2+B^2=C^2$$
\end{theorem}
}
\frame{
\begin{proof}
$$A^2+B^2=C^2$$
\end{proof}
}
\frame{
\begin{example}
$$A^2+B^2=C^2$$
\end{example}
}
\end{document}
währends des Versuchs, in Beamer den example und theorem Umgebungen
unterschiedliche Counter zu verpassen, fiel mir auf, dass das mit
'proof' nicht funktioniert, obwohl es laut Handbuch gehen sollte.
Anbei mal ein quasi-minimales Beispiel, das bei mir nur dann durchläuft
wenn die Proof Umdefinition auskommentiert ist.
Zusammenfassend meine Fragen:
1) Wie gebe ich example und theorem unterschiedliche Counter?
2) Wie kann ich proof umdefinieren?
Uwe
\documentclass{beamer}
\setbeamertemplate{theorem begin}{%
\begin{\inserttheoremblockenv}{%
\inserttheoremheadfont
\inserttheoremname
\inserttheoremnumber
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
}}%
\setbeamertemplate{theorem end}{\end{\inserttheoremblockenv}}
% \setbeamertemplate{proof begin}{%
% \begin{\inserttheoremblockenv}{%
% \inserttheoremheadfont
% \inserttheoremname
% \ifx\inserttheoremaddition\@empty\else\ %(\inserttheoremaddition)\fi%
% }}%
% \setbeamertemplate{proof end}{\end{\inserttheoremblockenv}}
\setbeamertemplate{theorem begin}{{%
\textup{{\large \structure{%
\inserttheoremname
\inserttheoremnumber
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
\inserttheorempunctuation
}}}%
}%
}%
\setbeamertemplate{theorem end}{}
\setbeamertemplate{example begin}{%
\begin{\inserttheoremblockenv}{%
\inserttheoremheadfont
\inserttheoremname
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
}}%
\setbeamertemplate{example end}{\end{\inserttheoremblockenv}}
\begin{document}
\frame{
\begin{theorem}
$$A^2+B^2=C^2$$
\end{theorem}
}
\frame{
\begin{proof}
$$A^2+B^2=C^2$$
\end{proof}
}
\frame{
\begin{example}
$$A^2+B^2=C^2$$
\end{example}
}
\end{document}