-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththisbook.sty
More file actions
176 lines (133 loc) · 4.66 KB
/
thisbook.sty
File metadata and controls
176 lines (133 loc) · 4.66 KB
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
%-----------------------------------------
\usepackage{macros_cal}
%-----------------------------------------
% https://tex.stackexchange.com/questions/156016/how-do-i-make-a-small-pmatrix
% already defined?
%%\newenvironment{psmallmatrix}
%% {\left(\begin{smallmatrix}}
%% {\end{smallmatrix}\right)}
%%
%-----------------------------------------
% https://tex.stackexchange.com/questions/455279/is-there-something-like-cdots-that-uses-less-space
\DeclareRobustCommand
\Compactcdots{\mathinner{\cdotp\mkern-2mu\cdotp\mkern-2mu\cdotp}}
%----------------------------------------
\newcommand{\mychapter}[1]{%
\chapter{#1}%
\thispagestyle{empty}%
}
%-----------------------------------------
%--------------------------------------------------------------------
\usepackage{censor}
%--------------------------------------------------------------------
% for HarmonicBalanceText.tex, which is also embedded in a standalone two-column
% journal style class doc.
%
%\usepackage{hbFigure}
% {path}{caption}{label}{width}{nbpath}
\newcommand{\imageFigureHere}[5]{%
\begin{figure}[!h]%
\centering%
\includegraphics[width=#4]{#1}%
\caption{\nbcite{#5}{#2}}%
\label{#3}%
\end{figure}%
}
\newcommand{\IEEEPARstart}[2]{#1#2}
\newcommand{\appendices}[0]{\section{Appendices}}
\newcommand{\myappendix}[1]{\paragraph{#1}}
\newcommand{\mysubsection}[1]{\paragraph{#1}}
% a macro with single column formatted text in argument 1, and double column text in arg 2.
\newcommand{\singleAndDoubleColumnVariations}[2]{#1}
%--------------------------------------------------------------------
\usepackage{matlab}
%--------------------------------------------------------------------
% L15: xrightarrow
\usepackage{mathtools}
%--------------------------------------------------------------------
% L3:
\usepackage{kbordermatrix}
% L9:
\usepackage{easybmat}
%--------------------------------------------------------------------
\newcommand{\nbref}[1]{%
\itemRef{ece1254}{#1}%
}
% with an alternate label for the link.
% {nb}{text}
% nb of the form: ps2b:countItersAndPlot.m
\newcommand{\nbcite}[2]{%
\itemCite{ece1254}{#1}{#2}%
}
\usepackage{peeters_figures}
% \mathImageFigure{path}{caption}{label}{width}{nbpath}
% nbpath like: ps2b:countItersAndPlot.m
\newcommand{\mathImageFigure}[5]{%
\imageFigure{#1}{\nbcite{#5}{#2}}{#3}{#4}
}
\newcommand{\matlabFunc}[1]{%
\matlabText{#1}%
}
% {func}{path}
\newcommand{\matlabFuncPath}[2]{%
\nbcite{#2}{\matlabText{#1}}%
}
%--------------------------------------------------------------------
\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}
% L2: \FORALL, \IF, ...
%\usepackage{algorithmic}
% 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:
%\multiphysicschapcite{nonIntegralBinomialSeries}
%\newcommand{\multiphysicschapcite}[1]{\citep{ece1254:#1}}
\newcommand{\multiphysicschapcite}[1]{\cref{chap:#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}
%-----------------------------------------
% for {eqn:diodeRLCSample:320b}
% https://stackoverflow.com/a/2789482/189270
\setcounter{MaxMatrixCols}{14}