-
Notifications
You must be signed in to change notification settings - Fork 5
/
thmdefs.tex
28 lines (23 loc) · 842 Bytes
/
thmdefs.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%Can't be in preamble because Quarto loads amsthm too late.
\theoremstyle{plain}
\newtheorem*{thm}{Theorem}
\newcommand{\thmnm}{Theorem}
\newtheorem*{namedthm}{\thmnm}
\theoremstyle{definition}
\newtheorem*{dfn}{Definition}
\newcommand{\defnm}{Definition}
\newtheorem*{nameddfn}{\defnm}
\newenvironment{nthm}[1]
{\renewcommand{\thmnm}{#1}\begin{namedthm}}
{\end{namedthm}}
\newenvironment{ndfn}[1]
{\renewcommand{\defnm}{#1}\begin{nameddfn}}
{\end{nameddfn}}
\newenvironment{npf}[1]
{\begin{proof}[#1]}
{\end{proof}}
% Usage:
% ::: {.thm} will create an unnumbered thm environment with title Theorem.
% ::: {.nthm arguments="Name of Theorem"} will create an unnumbered theorem whose title is Name of Theorem.
\let\oldgreater\textgreater
\renewcommand{\textgreater}{\null\oldgreater} % To prevent => changing to double arrow