forked from colobot/colobot-misc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.sty
76 lines (63 loc) · 1.89 KB
/
style.sty
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
73
74
75
76
\ProvidesPackage{style}
\usepackage[T1]{fontenc}
\usepackage{lmodern} % better font
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\usepackage{graphicx} % images
\usepackage[]{units} % nicefrac
\usepackage{listings} % listings
\usepackage{hyperref} % links
\usepackage[hypcap]{caption} % fixes problems related to hyperref (tables and figures)
\usepackage[colorinlistoftodos, textwidth=1.5cm, textsize=footnotesize, shadow]{todonotes}
\usepackage{import}
\usepackage{multicol}
\usepackage{color}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\geometry{verbose,tmargin=2.0cm,bmargin=2.0cm,lmargin=2.0cm,rmargin=2.0cm}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\urlstyle{same}
% indentation: 0
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.25cm}
\setcounter{tocdepth}{1}
% This makes chapter numbers reset when next \part starts
% http://tex.stackexchange.com/questions/54383/how-to-reset-chapter-and-section-counter-with-part
\makeatletter
\@addtoreset{chapter}{part}
\makeatother
\renewcommand{\lstlistingname}{Listing}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.3,0.3,0.3}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstdefinestyle{cbot}{
belowcaptionskip=1\baselineskip,
breaklines=true,
frame=L,
xleftmargin=\parindent,
%language=C,
showstringspaces=false,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries\color{Green},
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\itshape\color{gray},
%identifierstyle=\color{blue},
stringstyle=\color{orange},
}
% style for scene files
\lstdefinestyle{scene}{
breaklines=true,
breakatwhitespace=true,
basicstyle=\color{mygray}\ttfamily\small,
comment=[l]{//},
commentstyle=\itshape\color{gray},
xleftmargin=0.5cm,
xrightmargin=0.5cm
}
%\lstset{escapechar=@,style=cbot}