-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpreambleX.tex
More file actions
74 lines (71 loc) · 1.94 KB
/
preambleX.tex
File metadata and controls
74 lines (71 loc) · 1.94 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
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\usepackage{framed}
\definecolor{shadecolor}{RGB}{248,248,248}
\makeatletter
\newenvironment{kframe}{%
\medskip{}
\setlength{\fboxsep}{.8em}
\def\at@end@of@kframe{}%
\ifinner\ifhmode%
\def\at@end@of@kframe{\end{minipage}}%
\begin{minipage}{\columnwidth}%
\fi\fi%
\def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep
\colorbox{shadecolor}{##1}\hskip-\fboxsep
% There is no \\@totalrightmargin, so:
\hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}%
\MakeFramed {\advance\hsize-\width
\@totalleftmargin\z@ \linewidth\hsize
\@setminipage}}%
{\par\unskip\endMakeFramed%
\at@end@of@kframe}
\makeatother
\makeatletter
\@ifundefined{Shaded}{
}{\renewenvironment{Shaded}{\begin{kframe}}{\end{kframe}}}
\makeatother
\newenvironment{rmdblock}[2]
{
\begin{itemize}
\renewcommand{\labelitemi}{
\raisebox{-.7\height}[0pt][0pt]{
{\setkeys{Gin}{width=#2,keepaspectratio}\includegraphics{icons/#1}}
}
}
\setlength{\fboxsep}{1em}
\begin{kframe}
\item
}
{
\end{kframe}
\end{itemize}
}
\newenvironment{rmdquestion}
{\begin{rmdblock}{question}{3em}}
{\end{rmdblock}}
\newenvironment{rmdanswer}
{\begin{rmdblock}{answer}{3em}}
{\end{rmdblock}}
\newenvironment{rmdimportant}
{\begin{rmdblock}{important}{3em}}
{\end{rmdblock}}
\newenvironment{rmdmunchhausen}
{\begin{rmdblock}{Munchhausen}{8em}}
{\end{rmdblock}}
\newenvironment{rmdneyman}
{\begin{rmdblock}{jerzyneyman2}{8em}}
{\end{rmdblock}}
\newenvironment{rmdpearson}
{\begin{rmdblock}{egonpearson2}{8em}}
{\end{rmdblock}}
\newenvironment{rmdfisher}
{\begin{rmdblock}{fisher2}{8em}}
{\end{rmdblock}}
\newenvironment{rmdgausslaplace}
{\begin{rmdblock}{gausslaplace}{8em}}
{\end{rmdblock}}