forked from jkitchin/dft-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dftbook.sty
47 lines (40 loc) · 1.25 KB
/
dftbook.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
\ProvidesPackage{dftbook}
\usepackage[super,sort&compress]{natbib}
\usepackage{natmove}
\usepackage{underscore}
\usepackage{makeidx}
\usepackage[section]{placeins}
\usepackage{xcolor}
\usepackage{adjustbox}
\usepackage{anysize}
\usepackage{url}
\marginsize{1in}{1in}{1in}{1in}
\makeindex
% environment to put exercises in a gray, numbered box
\newcounter{ExerciseCount}
\setcounter{ExerciseCount}{0}
\definecolor{MyGray}{rgb}{0.96,0.97,0.98}
\newenvironment{exercise}[0]{%
\stepcounter{ExerciseCount} \begin{adjustbox}{minipage=[b]{380px},margin=1ex,bgcolor=MyGray,env=center}%
\textbf{Exercise \thesection.\theExerciseCount}\\
}{%
\end{adjustbox}%
}
% environment to put notes a light blue box 173-216-230
% see http://www.tayloredmktg.com/rgb/ for colors
\definecolor{LightBlue}{rgb}{0.68,0.85,0.90}
\newenvironment{note}[0]{%
\begin{adjustbox}{minipage=[b]{380px},margin=1ex,bgcolor=LightBlue,env=center}%
\textbf{Note: }\\
}{%
\end{adjustbox}%
}
% environment to put warnings a pink box 255-192-203
% see http://www.tayloredmktg.com/rgb/ for colors
\definecolor{Pink}{rgb}{1.0,0.75,0.80}
\newenvironment{warning}[0]{%
\begin{adjustbox}{minipage=[b]{380px},margin=1ex,bgcolor=Pink,env=center}%
\textbf{Warning: }\\
}{%
\end{adjustbox}%
}