forked from rmeertens/coursePaparazzi
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathccpap.tex
67 lines (57 loc) · 2.11 KB
/
ccpap.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
\usepackage[margin=3cm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{graphicx}
\usepackage{color}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{tcolorbox}
%% Define no indent with line skip with new paragraph
\usepackage{parskip}
\definecolor{code}{rgb}{.92,.92,.99}
\definecolor{codered}{rgb}{.92,.62,.62}
\definecolor{darkgreen}{rgb}{.2,.62,.18}
\usepackage{listings}
\lstset{xrightmargin=10pt,xleftmargin=10pt,language=Java,captionpos=b,tabsize=3,frame=none,keywordstyle=\color{blue},commentstyle=\color{darkgreen},stringstyle=\color{red},showstringspaces=false,basicstyle=\footnotesize\ttfamily,emph={label},backgroundcolor=\color{code}}
%%numbers=left,numberstyle=\tiny,numbersep=5pt,breaklines=true,\
\usepackage{soul}
\lstdefinestyle{Bash}
{language=bash,
escapechar=!,
backgroundcolor=\color{white},
columns=fullflexible,
breaklines=true,
breakatwhitespace=false,
inputencoding=utf8x,
keywordstyle=\color{black},
basicstyle=\small\ttfamily,
% morekeywords={peter@kbpet},
% alsoletter={:~$},
% morekeywords=[2]{peter@kbpet:},
% keywordstyle=[2]{\color{red}},
% literate={\$}{{\textcolor{red}{\$}}}1
% {:}{{\textcolor{red}{:}}}1
% {~}{{\textcolor{red}{\textasciitilde}}}1,
literate={~}{\raisebox{-0.5ex}{\textasciitilde}}1,
}
\newenvironment{code}
{\begin{minipage}[l]{\textwidth}}
{\end{minipage}}
\newtcolorbox{mybox}{colback=blue!5!white,colframe=blue!75!black}
%\newcommand{\ccpmaketitle}[4][Roland Meertens, Christophe de Wagter, Guido de Croon, Tom van Dijk] {
% \author{#1}
% \title{\bf Crash Course Paparazzi 2020\\#2\\{\large #4#3}}
% \date{February 2020}
% \setlength{\parindent}{0em}
% \maketitle
%}
\def\coursebranch{mavlabCourse\the\year}
% Set headers and footers
\fancyhead[LO,LE]{Crash Course Paparazzi \the\year}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
\fancyfoot[LO,LE]{{\small Crash Course Paparazzi \the\year}}
\fancyfoot[CO,CE]{\thepage}
\usepackage{todonotes}
\newcommand{\todoi}[1]{\todo[inline]{\textbf{TODO:} #1}}
\newcommand{\inlineicon}[1]{\includegraphics[height=\fontcharht\font`\B]{#1}}