forked from oliver-sanders/cylc-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
72 lines (63 loc) · 2.01 KB
/
preamble.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
68
69
70
71
72
% ---- PREAMBLE ----
% layout
\documentclass{article}
\usepackage[margin=3cm, headheight=1cm]{geometry}
% Font stuff.
\renewcommand{\familydefault}{\sfdefault} % sanz-serif
\usepackage{parskip} % regular paragraph separation
% Imports.
\usepackage[usenames]{color}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{courier}
\usepackage{hyperref}
\usepackage{textcomp}
% Hyperlinks.
\definecolor{links}{rgb}{0.1,0.1,0.6}
\hypersetup{colorlinks=true, linkcolor=links, urlcolor=links}
\urlstyle{same}
% Headers / Footers.
\usepackage{fancyhdr}
\lhead{Cylc Lisbon Tutorial Draft} % TODO: hardcoded !!!
\rhead{\includegraphics[width=0.15\textwidth]{resources/tex/cylc-logo}}
\pagestyle{fancy}
% Code listings: default style.
\definecolor{keywords}{rgb}{0.8,0.4,0.0}
\definecolor{comments}{rgb}{1.0,0.2,0.3}
\definecolor{identifiers}{rgb}{0.3,0.4,0.5}
\definecolor{strings}{rgb}{0.2,0.5,0.3}
\definecolor{basic}{rgb}{0.2,0.3,0.4}
\definecolor{command}{rgb}{0.0,0.2,0.1}
\definecolor{transcr}{rgb}{0.0,0.2,0.4}
\newcommand\mysmall{\fontsize{9}{9.2}\selectfont}
\lstset{
basicstyle=\color{basic}\mysmall\ttfamily,
identifierstyle=\color{identifiers},
keywordstyle=\color{keywords},
commentstyle=\color{comments},
stringstyle=\color{strings},
showstringspaces=false,
upquote=true,
}
% Code listings: suite.rc language support.
\definecolor{level1}{rgb}{0.0,0.2,0.6}
\definecolor{level2}{rgb}{0.0,0.3,0.7}
\definecolor{level3}{rgb}{0.0,0.4,0.8}
\definecolor{jinja2}{rgb}{0.1,0.7,0.4}
\lstdefinelanguage{suiterc}
{
string=[b]{"},
sensitive=true,
comment=[l]{\#},
morecomment=[s][\color{level1}]{[}{]},
morecomment=[s][\color{level2}]{[[}{]]},
morecomment=[s][\color{level3}]{[[[}{]]]},
morecomment=[s][\color{jinja2}]{\{\%}{\%\}},
morecomment=[s][\color{jinja2}]{\{\{}{\}\}},
}
\definecolor{note}{rgb}{0.6,0.6,0.6}
\newcommand{\note}[1]{{\color{note}\textbf{Note:} \textit{#1}}}
\definecolor{terminology}{rgb}{0.7,0.5,0.2}
\newcommand{\terminology}[1]{{\color{terminology} \textit{#1}}}
\usepackage{framed}
\definecolor{shadecolor}{rgb}{0.95,0.95,0.95}