Olaf changes + a couple of rewordings
[goodguy/cin-manual-latex.git] / common / settings.tex
1 % FIXME Settings
2 % - Page numbers always on the right, matching the chapter
3 %   number. Possibly coloring.
4 % - Improve header, remove the line, because with the listings also
5 %   come lines and when they meet it looks bad. Set italics and
6 %   color if necessary.
7 % - But be careful, too much ink can quickly have a negative
8 %   effect.
9
10 % FIXME Text
11 % - Change all tables to variable dimensions. -> use draft
12 % - (Remove all leading \$ characters from the shell
13 %   examples. Alternative: invalidate according to TeX rules, so that
14 %   other editors do not consider this an error. Do not automate, this
15 %   must be adjusted manually.)
16 % - Done. Remove "images/" from the path of includegraphics, the
17 %   "graphicspath" is already set.
18
19
20 % The Settings
21
22 % In loose reference to the theme CW.
23 \definecolor{CinBlueText}{RGB}{23,85,142}% "Dark blue"
24 \definecolor{CinBlue}{RGB}{35,134,220}%    "Light blue"
25 \definecolor{CinRed}{RGB}{205,38,11}%      "negativ"
26 \definecolor{CinOrange}{RGB}{250,125,0}%   "neutral"
27 \definecolor{CinGreen}{RGB}{39,174,96}%    "positiv"
28 \definecolor{CinSilver}{RGB}{127,140,141}%
29 \definecolor{CinWhite}{RGB}{239,240,241}%
30
31 % Original
32 % \definecolor{chaptercolour}{RGB}{23,85,142}
33 % \definecolor{sectioncolour}{RGB}{23,85,142}
34 % \definecolor{subsectioncolour}{RGB}{23,85,142}
35 % \definecolor{subsubsectioncolour}{RGB}{23,85,142}
36
37 \makechapterstyle{morrow}{% requires graphicx package
38   \chapterstyle{default}
39   \renewcommand*{\chapnamefont}{%
40     \normalfont\Large\scshape\raggedleft\color{CinBlueText}}
41   \renewcommand*{\chapnumfont}{%
42     \normalfont\Large\bfseries\sffamily\color{CinBlueText}}
43   \renewcommand*{\printchapternum}{%
44     \chapnumfont \resizebox{!}{3ex}{\thechapter}}
45   \renewcommand*{\afterchapternum}{% FIXME vskip?
46     \par\hspace{1.5cm}\hrule\vskip\midchapskip}
47   \renewcommand*{\chaptitlefont}{% Overwrites toc
48     \normalfont\Huge\bfseries\sffamily\raggedleft\color{CinBlueText}}
49 }
50
51 \addtodef{\printpartname}{\color{CinBlueText}}{}% Part
52 \addtodef{\printchaptername}{\color{CinBlueText}}{}% Chapter
53 \setsecheadstyle{\Large\bfseries\color{CinBlueText}}% Section
54 \setsubsecheadstyle{\large\bfseries\color{CinBlueText}}% SubSection
55 \setsubsubsecheadstyle{\normalfont\bfseries\color{CinBlueText}}% SubSubSection
56 \setparaheadstyle{\normalfont\bfseries\color{CinBlueText}}% Paragraph
57 \setsubparaheadstyle{\normalfont\bfseries\color{CinBlueText}}% SubParagraph
58
59 % Table of contents
60 \addtodef{\tocheadstart}{\color{CinBlueText}}{} % If you want the whole TOC to be blue also
61 %\addtoiargdef{\printtoctitle}{\color{CinBlueText}}{} % If you just want the TOC title blue
62
63 % PDF properties
64 \hypersetup{colorlinks=true,
65   linkcolor=[named]{CinBlueText},
66   citecolor=[named]{CinBlueText},
67   filecolor=[named]{CinBlueText},
68   urlcolor=[named]{CinBlueText},
69   bookmarksnumbered=true,
70   pdftitle={The Comprehensive User Manual},
71   pdfauthor={The Cinelerra-GG Community},
72   pdfsubject={Video Editing},
73   pdfkeywords={Cinelerra-GG, CGG, Cin5, Infinity, User Manual, Video
74     editing system, Video editing program}
75 }
76
77 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
78
79 % Package listings
80 \lstset{                            % begin settings
81   %language=R,                      % the language of the code
82   inputencoding=utf8,
83   basicstyle=\ttfamily\footnotesize,% the size of the fonts that are used for the code
84   numbers=left,                     % where to put the line-numbers
85   numberstyle=\tiny\color{black},   % the style that is used for the line-numbers
86   stepnumber=1,                     % the step between two line-numbers. If it's 1, each line
87                                     % will be numbered
88   numbersep=5pt,                    % how far the line-numbers are from the code
89   %backgroundcolor=\color{white},   % choose the background color. You must add \usepackage{color}
90   showspaces=false,                 % show spaces adding particular underscores
91   showstringspaces=false,           % underline spaces within strings
92   showtabs=false,                   % show tabs within strings adding particular underscores
93   frame=lines,                      % adds a frame around the code
94   %frame=single,                    % adds a frame around the code
95   rulecolor=\color{CinSilver},      % if not set, the frame-color
96                                     % may be changed on line-breaks
97                                     % within not-black text
98                                     % (e.g. commens (green here)).
99   tabsize=2,                        % sets default tabsize to 2 spaces
100   captionpos=b,                     % sets the caption-position to bottom
101   breaklines=true,                  % sets automatic line breaking
102   breakatwhitespace=false,          % sets if automatic breaks should only happen at whitespace
103   title=\lstname,                   % show the filename of files included with \lstinputlisting;
104                                     % also try caption instead of title
105   keywordstyle=\color{CinGreen},    % keyword style
106   commentstyle=\color{gray},        % comment style
107   stringstyle=\color{black},        % string literal style
108   %backgroundcolor=\color{green!10},
109   escapeinside={\%*}{*)},% FIXME?           % if you want to add a comment within your code
110   extendedchars=true,
111   %keepspaces = true                %!!!! spaces in comments
112   texcl=true,
113   postbreak=\mbox{\textcolor{CinSilver}{$\hookrightarrow$}\space},
114   % morekeywords={*,...}% FIXME              % if you want to add more keywords to the set
115 }
116
117
118 %====================== Page geometry
119 % \geometry{left=2.0cm}
120 % \geometry{right=2.0cm}
121 % \geometry{top=2.0cm}
122 % \geometry{bottom=2.0cm}
123
124 \parindent=0.0cm                    % first indent in section
125 \righthyphenmin=2                   % hyphen last charecter
126 \setsecnumdepth{subsubsection}          % section numeration depth
127
128 %\pagestyle{plain}
129 %\pagenumbering{roman}
130 %\renewcommand{\chapterheadstart}{
131 %%\vspace*{\beforechapskip}
132 %\hrule\medskip}
133 %\renewcommand{\chapnamefont}{\normalfont\large\scshape}
134 %\renewcommand{\chapnumfont}{\normalfont\large\scshape}
135 %\renewcommand{\chaptitlefont}{\normalfont\large\scshape}
136 %\renewcommand{\printchaptername}{\normalfont\large\scshape История}
137 %\renewcommand{\chapternamenum}{ }
138 %\renewcommand{\printchapternum}{\chapnumfont \thechapter}
139 %\renewcommand{\afterchapternum}{. }
140 %\renewcommand{\afterchapskip}{\vspace{2ex}}
141 %\renewcommand{\afterchaptertitle}{\par\nobreak\medskip\hrule\vskip 
142 %\afterchapskip}
143 %}
144 %\chapterstyle{madsen}          % one of chapter header style for memoir documentclass
145 \chapterstyle{morrow}           % one of chapter header style for memoir documentclass
146 % \renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
147 \renewcommand{\chapterheadstart}{}
148 %\renewcommand{\beforechapskip}{\vspace{2pt}}
149
150 %\renewcommand{\@pnumwidth}{3em} % memoir class, more space between chapter number and text.
151 \setlength{\cftfigurenumwidth}{4em} % memoir class, more space between figure number and text.
152
153 \renewcommand{\nomname}{Glossary} % glossary name
154
155 % Define the Cinnelerra-GG wordmark - a rough draft that can be
156 % adapted at any time. To be used in the text with \CGG{}
157 % or % \CGGI{}
158 \def\GG{\textsc{G\kern-0.1em G}}
159 \def\CGG{\textsc{Cinelerra-\GG}}
160 \def\INF{\textsc{Infinity}}
161 \def\CGGI{\CGG\;\INF}
162
163 % Hyphenation for unknown words and technical terms
164 \hyphenation{
165   plug-ins
166   ex-pan-ders
167 }
168
169
170 %%% Local Variables:
171 %%% mode: latex
172 %%% TeX-master: "../CinelerraGG_Manual"
173 %%% End: