style.sty
author cu
Sun, 15 Oct 2017 18:57:18 +0100
changeset 549 56e7e76b37e9
parent 545 0697622fb181
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
156
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\usepackage{xcolor}
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\usepackage{fontspec}
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
\usepackage[sc]{mathpazo}
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
\setmainfont[Ligatures=TeX]{Palatino Linotype}
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
\usepackage{amssymb}
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
\usepackage{amsmath}
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
\usepackage{menukeys}
416
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
     8
\@ifpackageloaded{hyperref}{}{\usepackage{hyperref}}
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
     9
156
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
\definecolor{darkblue}{rgb}{0,0,0.6}
416
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    11
\hypersetup{colorlinks=true}
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    12
\hypersetup{linkcolor=darkblue}
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    13
\hypersetup{urlcolor=darkblue}
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    14
156
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
416
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    16
\ifx\foobar\undefined \else
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    17
  \newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    18
\fi
708b80c825af updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 401
diff changeset
    19
156
3b831b9dc616 added some initial handouts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    20
\definecolor{codegray}{gray}{0.9}
271
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    21
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    22
\newcommand\grid[1]{%
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    23
\begin{tikzpicture}[baseline=(char.base)]
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    24
  \path[use as bounding box]
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    25
    (0,0) rectangle (1em,1em);
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    26
  \draw[red!50, fill=red!20]
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    27
    (0,0) rectangle (1em,1em);
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    28
  \node[inner sep=1pt,anchor=base west]
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    29
    (char) at (0em,\gridraiseamount) {#1};
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    30
\end{tikzpicture}}
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    31
\newcommand\gridraiseamount{0.12em}
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    32
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    33
\makeatletter
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    34
\newcommand\Grid[1]{%
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    35
  \@tfor\z:=#1\do{\grid{\z}}}
4796f424cf12 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 160
diff changeset
    36
\makeatother	
366
34a8f73b2c94 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 271
diff changeset
    37
34a8f73b2c94 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 271
diff changeset
    38
\makeatletter
34a8f73b2c94 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 271
diff changeset
    39
\def\fnote{\gdef\@thefnmark{}\@footnotetext}
34a8f73b2c94 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 271
diff changeset
    40
\makeatother
382
5b943e29b717 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 366
diff changeset
    41
5b943e29b717 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 366
diff changeset
    42
401
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    43
\newcommand{\HEADER}{{\bf Please submit your solutions to the
442
cceb3d2dcba0 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 416
diff changeset
    44
email address 7ccsmsen at gmail dot com. Please submit only one
545
0697622fb181 updated
cu
parents: 521
diff changeset
    45
homework per email. Work in pairs and submit a \underline{single}
0697622fb181 updated
cu
parents: 521
diff changeset
    46
solution! CC the email to your partner. Please also submit only
521
34775227c84f updated
Christian Urban <urbanc@in.tum.de>
parents: 493
diff changeset
    47
ASCII text or PDFs (no .docs etc). Every solution should be preceded by the
401
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    48
corresponding question, like:
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    49
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    50
\begin{center}
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    51
\begin{tabular}{ll}
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    52
Q$n$: & \ldots a difficult question from me\ldots\\
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    53
A:    & \ldots an answer from you \ldots\\
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    54
Q$n+1$ & \ldots another difficult question\ldots\\
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    55
A:     & \ldots another brilliant answer from you\ldots
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    56
\end{tabular}
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    57
\end{center}
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    58
2d6eb340fd98 updated hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 385
diff changeset
    59
\noindent Solutions will only be accepted until
545
0697622fb181 updated
cu
parents: 521
diff changeset
    60
20th December!}} 
456
f65e4fa6e902 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 442
diff changeset
    61
\newcommand{\POSTSCRIPT}{
f65e4fa6e902 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 442
diff changeset
    62
{\bf (Optional)} This question is for you to provide 
460
ab7acd13bef3 updated
Christian Urban <urbanc@in.tum.de>
parents: 456
diff changeset
    63
regular feedback to me, for example 
493
977c3ac60d62 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 465
diff changeset
    64
what were the most interesting, least interesting, or confusing parts in this lecture?
977c3ac60d62 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 465
diff changeset
    65
Is there anything you like to have improved or explained in the handouts?
977c3ac60d62 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 465
diff changeset
    66
Please feel free to share any other questions or concerns.} 
456
f65e4fa6e902 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 442
diff changeset
    67