-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththisbook.sty
207 lines (151 loc) · 5.79 KB
/
thisbook.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
%----------------------------------------
\newcommand{\mychapter}[1]{%
\chapter{#1}%
\thispagestyle{empty}%
}
%-----------------------------------------
\newcommand{\nbref}[1]{
\itemRef{gabookI}{#1}%
}
%--------------------------------------------------------------------
% widehat is repeating the text being hatted!
\newcommand{\wyhat}[1]{
\hat{#1}%
}
%--------------------------------------------------------------------
% amsthm Command openbox already defined
% https://tex.stackexchange.com/a/41553/15
% alternatively ( https://tex.stackexchange.com/a/386742/15 )
% \let\openbox\undefined
\let\openbox\relax
\usepackage{amsthm}
%--------------------------------------------------------------------
\usepackage{gabook}
%-----------------------------------------
% this is required with MacTex 2021. At one point it was triggering a too many alphabets error, but
% no longer seems to. This \Box looks better than \square from amssymb.
\usepackage{latexsym} % Error: Command \Box not provided in base LaTeX2e.<Paste>
%\newcommand{\dAlembertian}[0]{\Box}
% try this instead:
%\usepackage{amssymb}
%\newcommand{\dAlembertian}[0]{\square}
%\newcommand{\stgrad}[0]{\lr{ \spacegrad + \inv{c} \PD{t}{}}}
%\newcommand{\conjstgrad}[0]{\lr{ \spacegrad - \inv{c} \PD{t}{}}}
%-----------------------------------------
% https://tex.stackexchange.com/questions/258188/put-a-dot-above-a-bold-symbol-in-an-equation
% swap the order to get a bigger dot.
%\newcommand{\dotBJ}[0]{\mathbf{\dispdot{J}}}
% better:
% https://tex.stackexchange.com/a/128302/15
%\newcommand{\dispdot}[2][.2ex]{\dot{\raisebox{0pt}[\dimexpr\height+#1][\depth]{$#2$}}}% \dispdot[<displace>]{<stuff>}
%\newcommand{\dotBJ}[0]{\dispdot{\mathbf{J}}}
% https://tex.stackexchange.com/a/112359/15
%\usepackage{mmacells}
\usepackage{array}
% Mo wants double spacing for review comments
%\usepackage{setspace}
%\doublespacing
%\usepackage{peeters_tablebox}
%-------------------------------------------------------------------------------------
%\newcommand{\boldTextAndIndex}[1]{\textbf{#1}\index{#1}}
%\newcommand{\boldTextAndIndex}[1]{{\color{Maroon}{#1}}\index{#1}}
%\newcommand{\boldTextAndIndex}[1]{%
%{\color{Maroon}{#1}}%
%\index{#1}%
%}
%-----------------------------------------
%\usepackage{censor}
%-----------------------------------------
\usepackage{macros_lcal}
\usepackage{macros_cal}
%--------------------------------------------------------------------
% L7:
\usepackage{mhchem}
%--------------------------------------------------------------------
% For ps1 problem 2:
\usepackage{enumerate}
\usepackage{mathtools}
%--------------------------------------------------------------------
\usepackage{txfonts} % \ointclockwise
%--------------------------------------------------------------------
%\usepackage{peeters_braket}
%--------------------------------------------------------------------
%\usepackage{siunitx} % \ang{}
\usepackage{matlab}
\usepackage{steinmetz} % \phase{}
%\usepackage{latexsym} % \mho
%--------------------------------------------------------------------
\usepackage{gabookI}
%--------------------------------------------------------------------
% \xrightarrow
%\usepackage{mathtools}
% \FORALL, \IF, ...
%\usepackage{algorithmic}
%\usepackage{kbordermatrix}
%\usepackage{easybmat}
%--------------------------------------------------------------------
%\newcommand{\reading}[0]{\paragraph{Reading:}}
%--------------------------------------------------------------------
%\newcommand{\nought}[0]{\circ}
% \ce{...} chemical formala formatting.
%\usepackage[version=3]{mhchem}
%\usepackage{mhchem}
%\usepackage{units}
% \grtsim (\ge \approx hybrid), and probably other stuff:
%\usepackage[]{amssymb}
% with abbrev, can't tell if this is example or exercise. Abbrev would be nice for
% consistecy with fig. and eq. references.
%\crefname{Exercise}{ex.}{ex.}
%\Crefname{Exercise}{Ex.}{Ex.}
\usepackage{peeters_layout_exercise}
% use (a), (b), (c), numbering for sub-questions
\renewcommand{\QuestionNB}{\alph{Question}.\ }
\renewcommand{\theQuestion}{\alph{Question}}
%--------------------------------------------------------------------
% this fixme package + classicthesis + makeidx + hyperref
% interact oddly.
% If I use it, then my index entries don't have hyperlinks anymore?
%\usepackage[draft,english]{fixme}
%\fxusetheme{color}
% based on:
% \newcommand*\listfigurename{List of Figures}
% "koma-script/scrreprt.cls"
%\newcommand*\listfixmename{List of Fixmes}
%\newcommand{\fxwarning}[2]{}
%--------------------------------------------------------------------
%
% index usage:
%\index{gnat!size of}
\RequirePackage{makeidx}
\makeindex
% \newcommand{\index}[1]{}
%\newcommand{\underlineAndIndex}[1]{\textunderline{#1}\index{#1}}
%\newcommand{\paragraphAndIndex}[1]{\paragraph{#1}\index{#1}}
\usepackage{book_layout}
\usepackage{macros_bm}
%--------------------------------------------------------------------
%
% example:
%\emtheorychapcite{nonIntegralBinomialSeries}
%\newcommand{\emtheorychapcite}[1]{\citep{booktemplate:#1}}
%\newcommand{\emtheorychapcite}[1]{\cref{chap:#1}}
%--------------------------------------------------------------------
\usepackage{macros_qed}
%--------------------------------------------------------------------
% booktemplate.sty:
%\newcommand{\nbref}[1]{
%\itemRef{booktemplate}{#1}
%}
%--------------------------------------------------------------------
%\newcommand{\mo}{Prof.\ M. Mojahedi}
%--------------------------------------------------------------------
% potentialSection.tex:
%\newcommand{\e}[0]{{(\mathrm{e})}}
%\newcommand{\m}[0]{{(\mathrm{m})}}
%--------------------------------------------------------------------
% amsthm Command openbox already defined
% https://tex.stackexchange.com/a/41553/15
% alternatively ( https://tex.stackexchange.com/a/386742/15 )
% \let\openbox\undefined
\let\openbox\relax
\usepackage{amsthm}