-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqmtheorems.sty
85 lines (79 loc) · 1.99 KB
/
qmtheorems.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\ProvidesPackage{styles/qmtheorems}
\let\openbox\relax
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{tikz}
\usepackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipabove=\topskip, skipbelow=0pt}
\mdfdefinestyle{mdfqm}{
skipabove=\topskip,
skipbelow=\topskip, % Does not work :(
rightmargin=0pt,
leftmargin=0pt,
innertopmargin=7pt,
innerbottommargin=3pt,
innerrightmargin=5pt,
innerleftmargin=5pt,
topline=false,
bottomline=false,
rightline=false,
leftline=false,
%linewidth=1pt,
%roundcorner=0pt,
%font={},
%frametitlefont={},
frametitlerule=true,
%linecolor=black,
%backgroundcolor=LightBlue,
%fontcolor=black,
%frametitlebackgroundcolor=LightBlue,
}
\declaretheoremstyle[
%spaceabove=.5\thm@preskip,
%spacebelow=.5\thm@postskip,
headfont=\normalfont\bfseries,%\scshape,
%notefont=\normalfont, notebraces={ (}{)},
%bodyfont=\normalfont\itshape,
%headformat={\NAME\space\NUMBER\space\NOTE},
headpunct={.},
postheadspace={.5em plus .1em minus .1em},
%prefoothook={\hfill\qedsymbol}
]{qmquestion}
\declaretheoremstyle[
%spaceabove=.5\thm@preskip,
%spacebelow=.5\thm@postskip,
headfont=\normalfont\bfseries,
%notefont=\normalfont, notebraces={ (}{)},
%bodyfont=\normalfont,
%headformat={\NAME\space\NUMBER\space\NOTE},
headpunct={},
postheadspace={.5em plus .1em minus .1em},
%prefoothook={\hfill\qedsymbol}
%refname={theorem,theorems},
%Refname={Theorem,Theorems},
]{answer}
\theoremstyle{qmquestion}
\declaretheorem[
name=Question,
refname={question,questions},
Refname={Question,Questions},
numberwithin=section,
mdframed={
style=mdfqm,
% backgroundcolor=ProcessBlue!45!white,
frametitlebackgroundcolor=Goldenrod!45!white,
},
]{question}
\theoremstyle{answer}
\declaretheorem[
name=Answer,
refname={answer,answers},
Refname={Answer,Answers},
numberwithin=section,
mdframed={
style=mdfqm,
backgroundcolor=Dandelion!45!white,
frametitlebackgroundcolor=Orchid!45!white,
},
]{answer}