-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteaching.tex
52 lines (46 loc) · 870 Bytes
/
teaching.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
\newcommand{\XXX}[1]{{\bf #1}}
\def\python{{\tt python}}
\def\astropy{{\tt astropy}}
\def\Q#1#2#3{\item \label{#1} (#2 pts) #3}
\def\Ans#1#2{{\it #2}}
\def\NoAns#1#2{\vspace{#1}}
\newcommand{\Def}[1]{{\bf #1}}
% Format for
\newcommand{\Ex}[1]{
\smallskip
\noindent\fbox{
\begin{minipage}[h]{6.5in}
{\bf Example}~#1
\end{minipage}
}
\smallskip
}
%\newcommand{\Question}[3]{
%\smallskip
%\noindent\fbox{
%\begin{minipage}[h]{6.5in}
%{\bf Question #1}~#2
%\vspace{#3in}
%\end{minipage}
%}
%}
\newcommand{\Question}[3]{
\smallskip
\begin{mdframed}
%\noindent\fbox{
%\begin{minipage}[h]{6.5in}
% Argument 1 no longer does anything, and we just use the Counter
{\bf Question \theQuestion}~#2
\vspace{#3in}
%\end{minipage}
\end{mdframed}
\stepcounter{Question}
}
\newcommand{\Boxed}[2]{
\smallskip
\noindent\fbox{
\begin{minipage}[h]{#1}
#2
\end{minipage}
\smallskip
}}