forked from insertinterestingnamehere/numerical_computing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.tex
More file actions
51 lines (38 loc) · 1.58 KB
/
command.tex
File metadata and controls
51 lines (38 loc) · 1.58 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
%------------------------------------------------------------------------------%
% command.tex %
% This file contains the various environments and other misc. commands %
%------------------------------------------------------------------------------%
%counter for problems. reset each chapter
\newcounter{problemnum}[chapter]
\newcommand{\objective}[1]{\vspace{5mm}{\bf Lesson Objective: } \emph{#1} \vspace{5mm}}
\renewcommand{\chaptername}{Lab}
\renewcommand{\bibname}{References}
\newcommand{\lab}[3]{\chapter[#3]{#1: #2}}
% Various commands that make life easier
\providecommand{\abs}[1]{\left\lvert#1\right\rvert}
\providecommand{\norm}[1]{\left\lVert#1\right\rVert}
\providecommand{\set}[1]{\lbrace#1\rbrace}
\providecommand{\setconstruct}[2]{\lbrace#1:#2\rbrace}
\DeclareMathOperator{\res}{res} % Residue
\DeclareMathOperator{\Res}{Res} % Residue
\newenvironment{amatrix}[1]{%
\left(\begin{array}{@{}*{#1}{c}|c@{}}
}{%
\end{array}\right)
}
\newenvironment{dmatrix}[2]{%
\left(\begin{array}{@{}*{#1}{c}|*{#2}{c}@{}}
}{%
\end{array}\right)
}
\newenvironment{pseudo}[2]
{\begin{pseudocode}[shadowbox]{#1}{#2}}
{\end{pseudocode}}
\newenvironment{problem}{\begin{shaded}\begin{problemnum}}{\end{problemnum}\end{shaded}}
\newtheoremup{problemnum}{Problem}
\definecolor{shadecolor}{gray}{0.90}
\newcommand{\li}[1]{\lstinline[style=python]!#1!}
\newcommand{\ipt}[2]{\langle #1,#2 \rangle}
\newcommand{\ip}{\int_{-\infty}^{+\infty}}
\renewcommand{\ker}[1]{\mathcal{N}(#1)}
\newcommand{\ran}[1]{\mathcal{R}(#1)}