19 \newcommand{\ders}{\textit{ders}} |
19 \newcommand{\ders}{\textit{ders}} |
20 |
20 |
21 %%% for trees |
21 %%% for trees |
22 %% http://anorien.csc.warwick.ac.uk/mirrors/CTAN/graphics/pgf/contrib/forest/forest.pdf |
22 %% http://anorien.csc.warwick.ac.uk/mirrors/CTAN/graphics/pgf/contrib/forest/forest.pdf |
23 |
23 |
24 \newcommand\grid[1]{% |
|
25 \begin{tikzpicture}[baseline=(char.base)] |
|
26 \path[use as bounding box] |
|
27 (0,0) rectangle (1em,1em); |
|
28 \draw[red!50, fill=red!20] |
|
29 (0,0) rectangle (1em,1em); |
|
30 \node[inner sep=1pt,anchor=base west] |
|
31 (char) at (0em,\gridraiseamount) {#1}; |
|
32 \end{tikzpicture}} |
|
33 \newcommand\gridraiseamount{0.12em} |
|
34 |
|
35 \makeatletter |
|
36 \newcommand\Grid[1]{% |
|
37 \@tfor\z:=#1\do{\grid{\z}}} |
|
38 \makeatother |
|
39 |
|
40 \newcommand\Vspace[1][.3em]{% |
|
41 \mbox{\kern.06em\vrule height.3ex}% |
|
42 \vbox{\hrule width#1}% |
|
43 \hbox{\vrule height.3ex}} |
|
44 |
|
45 \def\VS{\Vspace[0.6em]} |
|
46 |
24 |
47 |
25 |
48 \newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}} |
26 \newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}} |
49 \newcommand{\defn}[1]{\textit{\textbf{#1}}} |
27 \newcommand{\defn}[1]{\textit{\textbf{#1}}} |
50 \newcommand{\dq}[1]{\mbox{\tt{"}}#1\mbox{\tt{"}}} |
28 \newcommand{\dq}[1]{\mbox{\tt{"}}#1\mbox{\tt{"}}} |
53 |
31 |
54 \makeatletter |
32 \makeatletter |
55 \def\fnote{\gdef\@thefnmark{}\@footnotetext} |
33 \def\fnote{\gdef\@thefnmark{}\@footnotetext} |
56 \makeatother |
34 \makeatother |
57 |
35 |
58 \newcommand{\HEADER}{{\bf Please submit your solutions via email. Please submit |
36 % CW deadlines |
59 only ASCII text or PDFs. Every solution should be preceeded by the corresponding |
37 \def\cwSIX{15 November} |
60 question text, like: |
38 \def\cwSIXa{20 December} |
61 |
39 |
62 \begin{center} |
40 \def\cwSEVEN{15 November} |
63 \begin{tabular}{ll} |
41 \def\cwSEVENa{20 December} |
64 Q$n$: & \ldots a difficult question from me\ldots\\ |
|
65 A: & \ldots an answer from you \ldots\\ |
|
66 Q$n+1$ & \ldots another difficult question\ldots\\ |
|
67 A: & \ldots another brilliant answer from you\ldots |
|
68 \end{tabular} |
|
69 \end{center} |
|
70 |
42 |
71 \noindent Solutions will only be accepted until 20th December! Please send only |
43 \def\cwEIGHT{15 November} |
72 one homework per email.}\bigskip} |
44 \def\cwEIGHTa{20 December} |
73 |
45 |
74 \newcommand{\POSTSCRIPT}{ |
46 \def\cwNINE{15 November} |
75 {\bf (Optional)} This question is for you to provide |
47 \def\cwNINEa{20 December} |
76 regular feedback to me: for example |
48 |
77 what were the most interesting, least interesting, or confusing |
49 \def\cwTEN{15 November} |
78 parts in this lecture? Any problems with my Scala code? Please |
50 \def\cwTENa{20 December} |
79 feel free to share any other questions or concerns.} |
51 |