-
Notifications
You must be signed in to change notification settings - Fork 1
/
figuresettings.tex
executable file
·102 lines (95 loc) · 2.57 KB
/
figuresettings.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
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
\usepackage{mdframed}
% define a pale background for figures
\mdfdefinestyle{palestyle}{%
linewidth=2pt,%
backgroundcolor=red!4,%
linecolor=red!4%
}
% centered figure with a pale background
\newenvironment{frcenter}{%
\begin{mdframed}[style=palestyle]%
\begin{center}
}{%
\end{center}\end{mdframed}
}
% narrow itemized list with a pale background
\newenvironment{topiclist}{%
\begin{mdframed}[style=palestyle]%
\begin{list}{$\bullet$}{\setlength\itemindent{0.00in}%
\setlength\listparindent{0.90in}%
\setlength\leftmargin{0.85in}%
\setlength\labelsep{0.10in}%
\setlength\labelwidth{1.5in}%
\setlength\itemsep{-2.0pt}%
\setlength\parsep{2pt}%
}}{\end{list}%
\end{mdframed}}
% wide numbered list with a pale background
\newcounter{ncounter}
\newenvironment{widenlist}{%
\begin{mdframed}[style=palestyle]%
\begin{list}{%
\arabic{ncounter}.}{%
\usecounter{ncounter}%
\setlength\itemindent{0.00in}%
\setlength\listparindent{0.45in}%
\setlength\leftmargin{0.30in}%
\setlength\rightmargin{0.20in}%
\setlength\labelsep{0.10in}%
\setlength\labelwidth{0.75in}%
\setlength\itemsep{-2.0pt}
\setlength\parsep{2pt}%
}}{%
\end{list}\end{mdframed}%
}
% wide itemized list with a pale background
\newenvironment{widetopiclist}{%
\begin{mdframed}[style=palestyle]%
\begin{list}{$\bullet$}{\setlength\itemindent{0.00in}%
\setlength\listparindent{0.45in}%
\setlength\leftmargin{0.30in}%
\setlength\rightmargin{0.20in}%
\setlength\labelsep{0.10in}%
\setlength\labelwidth{1.5in}%
\setlength\itemsep{-2.0pt}%
\setlength\parsep{2pt}%
}}{\end{list}%
\end{mdframed}}
% pic command
\newcommand{\pic}[3][height=3in,width=5in]{
\begin{figure}[hbtp]
\begin{center}
\begin{shaded}
\includegraphics[#1]{#2}
\end{shaded}
\caption{#3}%
\label{#2}
\end{center}
\end{figure}
}
% pix environment
\newenvironment{pix}[2]{%
\begin{figure}[hbtp]
\def\mycaption{\caption{#1}}%
\def\mylabel{\label{#2}}%
\begin{shaded}
}{%
\end{shaded}
\mycaption%
\mylabel%
\end{figure}
}
% blistfigure environment
\newenvironment{blistfigure}[2]{%
\begin{figure}[hbtp]
\def\mycaption{\caption{#1}}%
\def\mylabel{\label{#2}}%
\begin{shaded}
\begin{btopiclist}
}{%
\end{btopiclist}
\end{shaded}
\mycaption%
\mylabel%
\end{figure}
}