-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_pkg.sty
More file actions
263 lines (192 loc) · 8.04 KB
/
my_pkg.sty
File metadata and controls
263 lines (192 loc) · 8.04 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
\usepackage[paperwidth=8.5in, paperheight=11in]{geometry}
\usepackage{setspace}
\usepackage{microtype}
\usepackage{sectsty}
\usepackage{url}
\usepackage{graphicx}
\usepackage{layout}
\usepackage{wrapfig}
\usepackage{color}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{slantsc}
\usepackage{fontenc}
\usepackage{natbib}
\usepackage{xstring}
\usepackage[utf8]{inputenc}
\usepackage{moreverb,url}
\usepackage{array}
\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref}
\usepackage{multirow}
\usepackage[math]{cellspace}
\usepackage{enumitem,amssymb}
\usepackage{microtype}
\usepackage{longtable}
\usepackage{hyperref}
\hypersetup{
% bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=linkColor, % color of internal links
citecolor=linkColor, % color of links to bibliography
filecolor=linkColor, % color of file links
urlcolor=linkColor % color of external links
}
\pagestyle{empty}
\pdfpagewidth 8.5in
\pdfpageheight 11in
\topmargin -0.4in
\headheight 12pt
\headsep 0in
\textheight 9.5in
\textwidth 7.0in
\oddsidemargin -0.25in
\evensidemargin 0in
\footskip 10 pt
\definecolor{linkColor}{rgb}{0.3,0,0.3}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-4pt}%
{3pt}%
{\normalfont\bfseries}%
}
\renewcommand\subsection{\@startsection {subsection}{2}{\z@}%
{-3pt}%
{1pt}%
{\normalfont\bfseries}%
}
\renewcommand\subsubsection{\@startsection {subsubsection}{3}{\z@}%
{-3pt}%
{1pt}%
{\normalfont\bfseries}%
}
\newcommand{\smallheading}[1]{\vspace{6pt}\noindent{\textsc{\textbf{#1}}}\vspace{2pt}}
\newcommand{\smallsmallheading}[1]{\vspace{4pt}{\textbf{\textsc{#1}}}}
\newcommand{\smallsmallheadingBF}[1]{\vspace{4pt}{\textbf{\textsc{#1}}}}
\newcommand{\smallsmallheadingIT}[1]{\vspace{4pt}{\textit{\textsc{#1}}}}
\newcommand{\SetDocumentFooter}[2]{ \pagestyle{fancy} \lhead{} \chead{} \rhead{} \lfoot{#1} \cfoot{\thepage} \rfoot{#2} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0pt} }
\newcommand{\SetTitle}[1]{ \begin{center} {\huge #1} \end{center} \vspace{-19pt} \begin{center} {\Large Paul A.\ Rosen, PhD} \end{center} \vspace{-5pt} \vspace{5pt} }
\newcommand{\conjref}[1]{Conjecture~\ref{#1}}
\newcommand{\corref}[1]{Corollary~\ref{#1}}
\newcommand{\defref}[1]{Definition~\ref{#1}}
\newcommand{\exref}[1]{Example~\ref{#1}}
%\newcommand{\eqref}[1]{Equation~\ref{#1}}
\newcommand{\figref}[1]{Figure~\ref{#1}}
\newcommand{\lemref}[1]{Lemma~\ref{#1}}
\newcommand{\probref}[1]{Problem~\ref{#1}}
\newcommand{\propref}[1]{Proposition~\ref{#1}}
\newcommand{\secref}[1]{Section~\ref{#1}}
\newcommand{\thmref}[1]{Theorem~\ref{#1}}
\newcommand{\queref}[1]{Question~\ref{#1}}
\newcommand{\remref}[1]{Remark~\ref{#1}}
\newcommand{\remsref}[1]{Remarks~\ref{#1}}
\newcommand{\tblref}[1]{Table~\ref{#1}}
\newcommand{\tableref}[1]{Table~\ref{#1}}
\newcommand{\degree}[1]{#1$^{\circ}$}
\newcommand{\fix}[1]{\textcolor{red}{\textbf{\textit{#1}}}}
%\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\renewcommand{\thefootnote}{\arabic{footnote}}
\newcommand{\X}[1]{{#1}\index{{#1}}}
\paragraphfont{\sffamily}
\allsectionsfont{\sffamily}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\familydefault}{\sfdefault}
\newcommand{\SmallCap}[2]{#1{\footnotesize #2}}
\setlength{\bibsep}{2.25pt}
\newcommand{\smallCapWord}[1]{{\uppercase{\StrLeft{#1}{1}}{\uppercase{\footnotesize \StrGobbleLeft{#1}{1}}}}}
\newcommand{\choice}[1]{$\square$ #1}
\newcommand{\StartTable}[1]{
\def\arraystretch{1.15}
%\setlength\extrarowheight{2pt}
%\begin{table*}[!ht]
\begin{tabular}{ | l m{6.3cm}|m{2.55cm}|m{0.2cm}|m{2.55cm}|m{0.2cm}|m{2.55cm}| }
\hline
\multicolumn{7}{|l|}{\textbf{#1}} \\
\hline
}
\newcommand{\AddElement}[5]{
& \multirow{3}{1.0\linewidth}{\small\underline{#1} --- #2}
& \parbox[t]{1.0\linewidth}{\small\centering #3\vspace{2pt}}
& \parbox[t]{1.0\linewidth}{\small\centering$\square$}
& \parbox[t]{1.0\linewidth}{\small\centering #4\vspace{2pt}}
& \parbox[t]{1.0\linewidth}{\small\centering$\square$}
& \parbox[t]{1.0\linewidth}{\small\centering #5\vspace{2pt}}
\\
\cline{3-7}
& & \multicolumn{5}{l|}{\small Comments:} \\
% & & \multicolumn{5}{l|}{ } \\
& & \multicolumn{5}{l|}{ } \\
\hline
}
\newcommand{\AddElementExtended}[5]{
& \multirow{5}{1.0\linewidth}{\small\underline{#1} --- #2}
& \parbox[t]{1.0\linewidth}{\small\centering #3\vspace{2pt}}
& \parbox[t]{1.0\linewidth}{\small\centering$\square$}
& \parbox[t]{1.0\linewidth}{\small\centering #4\vspace{2pt}}
& \parbox[t]{1.0\linewidth}{\small\centering$\square$}
& \parbox[t]{1.0\linewidth}{\small\centering #5\vspace{2pt}}
\\
\cline{3-7}
& & \multicolumn{5}{l|}{\small Comments:} \\
& & \multicolumn{5}{l|}{ } \\
& & \multicolumn{5}{l|}{ } \\
& & \multicolumn{5}{l|}{ } \\
\hline
}
\newcommand{\AddMultipleChoiceElement}[3]{
& \multirow{3}{1.0\linewidth}{\small\underline{#1} --- #2}
& \multicolumn{5}{c|}{\parbox[t]{9.5cm}{\small\centering\vspace{-4pt}#3\vspace{2pt}} }
\\
\cline{3-7}
& & \multicolumn{5}{l|}{\small Comments:} \\
% & & \multicolumn{5}{l|}{ } \\
& & \multicolumn{5}{l|}{ } \\
\hline
}
\newcommand{\AddMCColumn}[2]{\parbox[t]{#1}{#2}\hspace{5pt}}
\newcommand{\EndTable}[0]{
\end{tabular}
%\end{table*}
}
\makeatletter
\renewcommand\@maketitle{%
\hfill
\begin{minipage}{0.95\textwidth}
\centering
\vskip 2em
\let\footnote\thanks
{\LARGE CIS 4930/6930-002: Data Visualization
(Spring 2019) \par }
\vskip 1.5em
{\Large \@title \par}
\end{minipage}
\vskip 1em \par
}
\makeatother
\newcommand{\myparagraph}[1]{\vspace{5pt}\noindent\begin{tabular}{@{}p{0.3in}@{}p{6.7in}@{}} & #1\end{tabular}}
\newcommand{\submission}[1]{
\myparagraph{All of your work should be done in your git repository in the directory named \textbf{#1}. If put it anywhere else, our script will fail (and so will you). Make sure things are labeled well, so that your peers can find them.}
\myparagraph{As you work on the files make sure you frequently add the files to the repository (i.e.\ \textit{git add}), commit the changes (i.e.\ \textit{git commit}), and push changes to the remote server (i.e.\ \textit{git push}). If you fail to do this, we won't get your files.}}
\newcommand{\feedback}[1]{
\begin{itemize}
\item{Your grade will be combination of objective measures (based on the assignment instructions) and subjective grading by the instructor.}
\item{Breakdown
\vspace{-5pt}#1}
\item{Peer Review will be used to provide feedback. You will review 3 of your peers' submissions, and 3 of your peers will review your work. This should be taken very seriously as it is the primary form of feedback you'll receive.}
\end{itemize}
}
\newcommand{\feedbackNoPR}[1]{
\begin{itemize}
\item{Your grade will be combination of objective measures (based on the assignment instructions) and subjective grading by the instructor.}
\item{Breakdown
\vspace{-5pt}#1}
\end{itemize}
}
\newcommand{\groundrules}{
\myparagraph{This assignment is intended to be done alone. You may ask others for help with figuring out how details of Processing. However, code must be your own (MOSS will be used!). Furthermore, NO additional libraries (such as giCentre utilities) may be used. Doing so will result in a 0 for those sketches.}
}