| 1 |
%% filename: thmtest.tex |
| 2 |
%% version: 2.01 |
| 3 |
%% date: 2004/08/02 |
| 4 |
%% |
| 5 |
%% American Mathematical Society |
| 6 |
%% Technical Support |
| 7 |
%% Publications Technical Group |
| 8 |
%% 201 Charles Street |
| 9 |
%% Providence, RI 02904 |
| 10 |
%% USA |
| 11 |
%% tel: (401) 455-4080 |
| 12 |
%% (800) 321-4267 (USA and Canada only) |
| 13 |
%% fax: (401) 331-3842 |
| 14 |
%% email: [email protected] |
| 15 |
%% |
| 16 |
%% Copyright 1996, 2004, 2010 American Mathematical Society. |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 20 |
%% of this license or (at your option) any later version. |
| 21 |
%% The latest version of this license is in |
| 22 |
%% http://www.latex-project.org/lppl.txt |
| 23 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 24 |
%% version 2005/12/01 or later. |
| 25 |
%% |
| 26 |
%% This work has the LPPL maintenance status `maintained'. |
| 27 |
%% |
| 28 |
%% The Current Maintainer of this work is the American Mathematical |
| 29 |
%% Society. |
| 30 |
%% |
| 31 |
%% ==================================================================== |
| 32 |
|
| 33 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 34 |
% Option test file, will be created during the first LaTeX run; |
| 35 |
% this facility is not available when using an AMS document class. |
| 36 |
\begin{filecontents}{exercise.thm} |
| 37 |
\def\th@exercise{% |
| 38 |
\normalfont % body font |
| 39 |
\thm@headpunct{:}% |
| 40 |
} |
| 41 |
\end{filecontents} |
| 42 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 43 |
|
| 44 |
\documentclass{article} |
| 45 |
\title{Newtheorem and theoremstyle test} |
| 46 |
\author{Michael Downes\\updated by Barbara Beeton} |
| 47 |
|
| 48 |
\usepackage[exercise]{amsthm} |
| 49 |
|
| 50 |
\newtheorem{thm}{Theorem}[section] |
| 51 |
\newtheorem{cor}[thm]{Corollary} |
| 52 |
\newtheorem{prop}{Proposition} |
| 53 |
\newtheorem{lem}[thm]{Lemma} |
| 54 |
|
| 55 |
\theoremstyle{remark} |
| 56 |
\newtheorem*{rmk}{Remark} |
| 57 |
|
| 58 |
\theoremstyle{plain} |
| 59 |
\newtheorem*{Ahlfors}{Ahlfors' Lemma} |
| 60 |
|
| 61 |
\newtheoremstyle{note}% name |
| 62 |
{3pt}% Space above |
| 63 |
{3pt}% Space below |
| 64 |
{}% Body font |
| 65 |
{}% Indent amount (empty = no indent, \parindent = para indent) |
| 66 |
{\itshape}% Thm head font |
| 67 |
{:}% Punctuation after thm head |
| 68 |
{.5em}% Space after thm head: " " = normal interword space; |
| 69 |
% \newline = linebreak |
| 70 |
{}% Thm head spec (can be left empty, meaning `normal') |
| 71 |
|
| 72 |
\theoremstyle{note} |
| 73 |
\newtheorem{note}{Note} |
| 74 |
|
| 75 |
\newtheoremstyle{citing}% name |
| 76 |
{3pt}% Space above, empty = `usual value' |
| 77 |
{3pt}% Space below |
| 78 |
{\itshape}% Body font |
| 79 |
{}% Indent amount (empty = no indent, \parindent = para indent) |
| 80 |
{\bfseries}% Thm head font |
| 81 |
{.}% Punctuation after thm head |
| 82 |
{.5em}% Space after thm head: " " = normal interword space; |
| 83 |
% \newline = linebreak |
| 84 |
{\thmnote{#3}}% Thm head spec |
| 85 |
|
| 86 |
\theoremstyle{citing} |
| 87 |
\newtheorem*{varthm}{}% all text supplied in the note |
| 88 |
|
| 89 |
\newtheoremstyle{break}% name |
| 90 |
{9pt}% Space above, empty = `usual value' |
| 91 |
{9pt}% Space below |
| 92 |
{\itshape}% Body font |
| 93 |
{}% Indent amount (empty = no indent, \parindent = para indent) |
| 94 |
{\bfseries}% Thm head font |
| 95 |
{.}% Punctuation after thm head |
| 96 |
{\newline}% Space after thm head: \newline = linebreak |
| 97 |
{}% Thm head spec |
| 98 |
|
| 99 |
\theoremstyle{break} |
| 100 |
\newtheorem{bthm}{B-Theorem} |
| 101 |
|
| 102 |
\theoremstyle{exercise} |
| 103 |
\newtheorem{exer}{Exercise} |
| 104 |
|
| 105 |
\swapnumbers |
| 106 |
\theoremstyle{plain} |
| 107 |
\newtheorem{thmsw}{Theorem}[section] |
| 108 |
\newtheorem{corsw}[thmsw]{Corollary} |
| 109 |
\newtheorem{propsw}{Proposition} |
| 110 |
\newtheorem{lemsw}[thmsw]{Lemma} |
| 111 |
|
| 112 |
% Because the amsmath pkg is not used, we need to define a couple of |
| 113 |
% commands in more primitive terms. |
| 114 |
\let\lvert=|\let\rvert=| |
| 115 |
\newcommand{\Ric}{\mathop{\mathrm{Ric}}\nolimits} |
| 116 |
|
| 117 |
% Dispel annoying problem of slightly overlong lines: |
| 118 |
\addtolength{\textwidth}{8pt} |
| 119 |
|
| 120 |
\begin{document} |
| 121 |
\maketitle |
| 122 |
|
| 123 |
\section{Test of standard theorem styles} |
| 124 |
|
| 125 |
Ahlfors' Lemma gives the principal criterion for obtaining lower bounds |
| 126 |
on the Kobayashi metric. |
| 127 |
|
| 128 |
\begin{Ahlfors} |
| 129 |
Let $ds^2 = h(z)\lvert dz\rvert^2$ be a Hermitian pseudo-metric on |
| 130 |
$\mathbf{D}_r$, $h\in C^2(\mathbf{D}_r)$, with $\omega$ the associated |
| 131 |
$(1,1)$-form. If $\Ric\omega\geq\omega$ on $\mathbf{D}_r$, |
| 132 |
then $\omega\leq\omega_r$ on all of $\mathbf{D}_r$ (or equivalently, |
| 133 |
$ds^2\leq ds_r^2$). |
| 134 |
\end{Ahlfors} |
| 135 |
|
| 136 |
\begin{lem}[negatively curved families] |
| 137 |
Let $\{ds_1^2,\dots,ds_k^2\}$ be a negatively curved family of metrics |
| 138 |
on $\mathbf{D}_r$, with associated forms $\omega^1$, \dots, $\omega^k$. |
| 139 |
Then $\omega^i \leq\omega_r$ for all $i$. |
| 140 |
\end{lem} |
| 141 |
|
| 142 |
Then our main theorem: |
| 143 |
\begin{thm}\label{pigspan} |
| 144 |
Let $d_{\max}$ and $d_{\min}$ be the maximum, resp.\ minimum distance |
| 145 |
between any two adjacent vertices of a quadrilateral $Q$. Let $\sigma$ |
| 146 |
be the diagonal pigspan of a pig $P$ with four legs. |
| 147 |
Then $P$ is capable of standing on the corners of $Q$ iff |
| 148 |
\begin{equation}\label{sdq} |
| 149 |
\sigma\geq \sqrt{d_{\max}^2+d_{\min}^2}. |
| 150 |
\end{equation} |
| 151 |
\end{thm} |
| 152 |
|
| 153 |
\begin{cor} |
| 154 |
Admitting reflection and rotation, a three-legged pig $P$ is capable of |
| 155 |
standing on the corners of a triangle $T$ iff (\ref{sdq}) holds. |
| 156 |
\end{cor} |
| 157 |
|
| 158 |
\begin{rmk} |
| 159 |
As two-legged pigs generally fall over, the case of a polygon of order |
| 160 |
$2$ is uninteresting. |
| 161 |
\end{rmk} |
| 162 |
|
| 163 |
\section{Custom theorem styles} |
| 164 |
|
| 165 |
\begin{exer} |
| 166 |
Generalize Theorem~\ref{pigspan} to three and four dimensions. |
| 167 |
\end{exer} |
| 168 |
|
| 169 |
\begin{note} |
| 170 |
This is a test of the custom theorem style `note'. It is supposed to have |
| 171 |
variant fonts and other differences. |
| 172 |
\end{note} |
| 173 |
|
| 174 |
\begin{bthm} |
| 175 |
Test of the `linebreak' style of theorem heading. |
| 176 |
\end{bthm} |
| 177 |
|
| 178 |
This is a test of a citing theorem to cite a theorem from some other source. |
| 179 |
|
| 180 |
\begin{varthm}[Theorem 3.6 in \cite{thatone}] |
| 181 |
No hyperlinking available here yet \dots\ but that's not a |
| 182 |
bad idea for the future. |
| 183 |
\end{varthm} |
| 184 |
|
| 185 |
\section{The proof environment} |
| 186 |
|
| 187 |
\begin{proof} |
| 188 |
Here is a test of the proof environment. |
| 189 |
\end{proof} |
| 190 |
|
| 191 |
\begin{proof}[Proof of Theorem \ref{pigspan}] |
| 192 |
And another test. |
| 193 |
\end{proof} |
| 194 |
|
| 195 |
\begin{proof}[Proof \textup(necessity\textup)] |
| 196 |
And another. |
| 197 |
\end{proof} |
| 198 |
|
| 199 |
\begin{proof}[Proof \textup(sufficiency\textup)] |
| 200 |
And another, ending with a display: |
| 201 |
\[ |
| 202 |
1+1=2\,. \qedhere |
| 203 |
\] |
| 204 |
\end{proof} |
| 205 |
|
| 206 |
\section{Test of number-swapping} |
| 207 |
|
| 208 |
This is a repeat of the first section but with numbers in theorem heads |
| 209 |
swapped to the left. |
| 210 |
|
| 211 |
Ahlfors' Lemma gives the principal criterion for obtaining lower bounds |
| 212 |
on the Kobayashi metric. |
| 213 |
\begin{Ahlfors} |
| 214 |
Let $ds^2 = h(z)\lvert dz\rvert^2$ be a Hermitian pseudo-metric on |
| 215 |
$\mathbf{D}_r$, $h\in C^2(\mathbf{D}_r)$, with $\omega$ the associated |
| 216 |
$(1,1)$-form. If $\Ric\omega\geq\omega$ on $\mathbf{D}_r$, |
| 217 |
then $\omega\leq\omega_r$ on all of $\mathbf{D}_r$ (or equivalently, |
| 218 |
$ds^2\leq ds_r^2$). |
| 219 |
\end{Ahlfors} |
| 220 |
|
| 221 |
\begin{lemsw}[negatively curved families] |
| 222 |
Let $\{ds_1^2,\dots,ds_k^2\}$ be a negatively curved family of metrics |
| 223 |
on $\mathbf{D}_r$, with associated forms $\omega^1$, \dots, $\omega^k$. |
| 224 |
Then $\omega^i \leq\omega_r$ for all $i$. |
| 225 |
\end{lemsw} |
| 226 |
|
| 227 |
Then our main theorem: |
| 228 |
\begin{thmsw} |
| 229 |
Let $d_{\max}$ and $d_{\min}$ be the maximum, resp.\ minimum distance |
| 230 |
between any two adjacent vertices of a quadrilateral $Q$. Let $\sigma$ |
| 231 |
be the diagonal pigspan of a pig $P$ with four legs. |
| 232 |
Then $P$ is capable of standing on the corners of $Q$ iff |
| 233 |
\begin{equation}\label{sdqsw} |
| 234 |
\sigma\geq \sqrt{d_{\max}^2+d_{\min}^2}. |
| 235 |
\end{equation} |
| 236 |
\end{thmsw} |
| 237 |
|
| 238 |
\begin{corsw} |
| 239 |
Admitting reflection and rotation, a three-legged pig $P$ is capable of |
| 240 |
standing on the corners of a triangle $T$ iff (\ref{sdqsw}) holds. |
| 241 |
\end{corsw} |
| 242 |
|
| 243 |
\begin{thebibliography}{99} |
| 244 |
\bibitem{thatone} Dummy entry. |
| 245 |
\end{thebibliography} |
| 246 |
|
| 247 |
\end{document} |