-
Notifications
You must be signed in to change notification settings - Fork 0
/
mytheorems.sty
50 lines (43 loc) · 1.61 KB
/
mytheorems.sty
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Defines label and referencing command for theorem environments
% can be loaded without conflicts with `ieeeconf` or `llncs`
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mytheorems}
\usepackage{cleveref}
% \usepackage{amsopn}
\newcommand{\problemlabel}[1]{\label[problem]{#1}}%
\newcommand{\asslab}[1]{\label[assumption]{#1}}%
\newcommand{\deflab}[1]{\label[definition]{#1}}%
\newcommand{\prolab}[1]{\label[proposition]{#1}}%
\newcommand{\lemlab}[1]{\label[lemma]{#1}}%
\newcommand{\thelab}[1]{\label[theorem]{#1}}%
\newcommand{\corlab}[1]{\label[corollary]{#1}}%
\newcommand{\remlab}[1]{\label[remark]{#1}}%
%=========================================
% automatic reference names
%=========================================
% long
\crefname{definition}{Definition}{Definitions}%
\crefname{problem}{Problem}{Problems}%
\crefname{proposition}{Proposition}{Propositions}%
\crefname{theorem}{Theorem}{Theorems}%
\crefname{lemma}{Lemma}{Lemmas}%
\crefname{corollary}{Corollary}{Corollaries}%
\crefname{remark}{Remark}{Remarks}%
\crefname{assumption}{Assumption}{Assumptions}%
\crefname{table}{Table}{Tables}%
\crefname{page}{page}{pages}
% short
% \crefname{definition}{Def.}{Defs.}%
% \crefname{problem}{Prob.}{Probs.}%
% \crefname{proposition}{Prop.}{Props.}%
% \crefname{theorem}{Thm.}{Thms.}%
% \crefname{lemma}{Lem.}{Lems.}%
% \crefname{corollary}{Cor.}{Cors.}%
% \crefname{remark}{Remark}{Remarks}%
% \crefname{assumption}{Assum.}{Assums.}%
% theorem autoref
%\def\definitionautorefname{Definition}%
%\def\propositionautorefname{Proposition}%
%\def\theoremautorefname{Theorem}%
%\def\lemmaautorefname{Lemma}%
%\def\remarkautorefname{Remark}%