-
Notifications
You must be signed in to change notification settings - Fork 37
/
preamble.tex
67 lines (64 loc) · 1.56 KB
/
preamble.tex
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
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{framed,color}
\usepackage{float}
\floatplacement{figure}{H}
\usepackage[parfill]{parskip}
\definecolor{shadecolor}{RGB}{248,248,248}
\ifxetex
\usepackage{letltxmacro}
\setlength{\XeTeXLinkMargin}{1pt}
\LetLtxMacro\SavedIncludeGraphics\includegraphics
\def\includegraphics#1#{% #1 catches optional stuff (star/opt. arg.)
\IncludeGraphicsAux{#1}%
}%
\newcommand*{\IncludeGraphicsAux}[2]{%
\XeTeXLinkBox{%
\SavedIncludeGraphics#1{#2}%
}%
}%
\fi
%% Need to clean up
\newenvironment{rmdblock}[1]
{\begin{shaded*}
\begin{itemize}
\renewcommand{\labelitemi}{
\raisebox{-.7\height}[0pt][0pt]{
% {\setkeys{Gin}{width=3em,keepaspectratio}\includegraphics{images/#1}}
}
}
\item
}
{
\end{itemize}
\end{shaded*}
}
%% Probably can be omitted
\newenvironment{rmdnote}
{\begin{rmdblock}{note}}
{\end{rmdblock}}
\newenvironment{rmdcaution}
{\begin{rmdblock}{caution}}
{\end{rmdblock}}
\newenvironment{rmdimportant}
{\begin{rmdblock}{important}}
{\end{rmdblock}}
\newenvironment{rmdtip}
{\begin{rmdblock}{tip}}
{\end{rmdblock}}
\newenvironment{rmdwarning}
{\begin{rmdblock}{warning}}
{\end{rmdblock}}
\newenvironment{learncheck}
{\begin{rmdblock}{warning}}
{\end{rmdblock}}
\newenvironment{review}
{\begin{rmdblock}{warning}}
{\end{rmdblock}}
% To tweak tufte layout
\geometry{
left=0.8in, % left margin
textwidth=35pc, % main text block
marginparsep=1pc, % gutter between main text block and margin notes
marginparwidth=8pc % width of margin notes
}