tiny corrections
[goodguy/cin-manual-latex.git] / common / settings.tex
1 % FIXME Settings
2 % - Page numbers always on the right, matching the chapter
3 %   number.
4
5 % FIXME Text
6 % - Change all tables to variable dimensions. -> use draft
7 % - Remove all leading \$ characters from the shell examples.
8
9 % The Settings
10
11 % Set up the page layout
12 % memman.pdf capter 2: Laying out the page (READ IT!)
13 % example: memsty.sty
14 \settypeblocksize{8.75in}{34pc}{*}
15
16 % In loose reference to the theme CW.
17 \definecolor{CinBlueText}{RGB}{23,85,142}% "Dark blue"
18 \definecolor{CinBlue}{RGB}{35,134,220}%    "Light blue"
19 \definecolor{CinRed}{RGB}{205,38,11}%      "negativ"
20 \definecolor{CinOrange}{RGB}{250,125,0}%   "neutral"
21 \definecolor{CinGreen}{RGB}{39,174,96}%    "positiv"
22 \definecolor{CinSilver}{RGB}{127,140,141}%
23 \definecolor{CinWhite}{RGB}{239,240,241}%
24 \definecolor{CinDarkGray}{RGB}{35,38,41}%
25
26 % Original
27 % \definecolor{chaptercolour}{RGB}{23,85,142}
28 % \definecolor{sectioncolour}{RGB}{23,85,142}
29 % \definecolor{subsectioncolour}{RGB}{23,85,142}
30 % \definecolor{subsubsectioncolour}{RGB}{23,85,142}
31
32 \makechapterstyle{morrow}{% requires graphicx package
33   \chapterstyle{default}
34   \renewcommand*{\chapnamefont}{%
35     \normalfont\Large\scshape\raggedleft\color{CinBlueText}}
36   \renewcommand*{\chapnumfont}{%
37     \normalfont\Large\bfseries\sffamily\color{CinBlueText}}
38   \renewcommand*{\printchapternum}{%
39     \chapnumfont\resizebox{!}{3ex}{\thechapter}}
40   \renewcommand*{\afterchapternum}{% FIXME vskip?
41     \par\hspace{1.5cm}\hrule\vskip\midchapskip}
42   \renewcommand*{\chaptitlefont}{% Overwrites toc
43     \normalfont\Huge\bfseries\sffamily\raggedleft\color{CinBlueText}}
44 }
45
46 \addtodef{\printpartname}{\color{CinBlueText}}{}% Part
47 \addtodef{\printchaptername}{\color{CinBlueText}}{}% Chapter
48 \setsecheadstyle{\Large\bfseries\color{CinBlueText}}% Section
49 \setsubsecheadstyle{\large\bfseries\color{CinBlueText}}% SubSection
50 \setsubsubsecheadstyle{\normalfont\bfseries\color{CinBlueText}}% SubSubSection
51 \setparaheadstyle{\normalfont\bfseries\color{CinBlueText}}% Paragraph
52 \setsubparaheadstyle{\normalfont\bfseries\color{CinBlueText}}% SubParagraph
53
54 % Table of contents
55 \addtoiargdef{\printtoctitle}{\color{CinBlueText}}{} % If you just want the TOC title blue
56 % \addtodef{\tocheadstart}{\color{CinBlueText}}{} % If you want the
57 % whole TOC to be blue also. The page numbers are also colored, but
58 % these are not links, that's confusing.
59
60
61 % PDF properties
62 \hypersetup{colorlinks=true,
63   linkcolor=[named]{CinBlueText},
64   citecolor=[named]{CinBlueText},
65   filecolor=[named]{CinBlueText},
66   urlcolor=[named]{CinBlueText},
67   bookmarksnumbered=true,
68   pdftitle={Cinelerra-GG -- The Comprehensive User Manual},
69   pdfauthor={The Cinelerra-GG Community},
70   pdfsubject={Video Editing},
71   pdfkeywords={Cinelerra-GG, CGG, Cin5, Infinity, User Manual, Video
72     editing system, Video editing program}
73 }
74
75
76 % Package listings
77 \lstset{% Common settings
78   frame=single,
79   framerule=0pt,
80   framextopmargin=0.25ex,
81   framexbottommargin=0.25ex,
82   backgroundcolor=\color{CinWhite},
83   basicstyle=\small,
84   % No numbers by default. If required, activate explicitly in the
85   % respective lstlisting: numbers=left|right or define a new style
86   % below.
87   numbers=none,
88   numberstyle=\small\color{CinSilver},
89   numbersep=1em,   % how far the line-numbers are from the code
90   % Do not show:
91   showspaces=false,
92   showstringspaces=false,
93   showtabs=false,
94   %
95   tabsize=2,
96   breaklines=true, % sets automatic line breaking
97   % Still undecided:
98   title=\lstname,  % show the filename of files included with
99                    % \lstinputlisting; also try caption instead of
100                    % title
101   inputencoding=utf8,
102   extendedchars=true,
103   % Required for c&p (PDF -> Clipboard):
104   columns=fullflexible,
105   postbreak=\mbox{\textcolor{CinSilver}{$\hookrightarrow$}\space},
106   keywordstyle=\color{CinDarkGray},
107   commentstyle=\footnotesize\color{gray},
108   stringstyle=\color{CinDarkGray},
109   % Retains the characters as entered:
110   literate={-}{-}1 {*}{*}1
111 }
112 % Our settings specifically for the shell.
113 % Usage: \begin{lstlisting}[style=sh]
114 \lstdefinestyle{sh}{%
115   language=bash,
116   morekeywords={cp,gdb,git,grep,make,mkdir,tee}
117 }
118 % A pseudo-style that does nothing.
119 % Usage: \begin{lstlisting}[style=nil] instead of:
120 %        \begin{lstlisting}[]
121 \lstdefinestyle{nil}{}
122
123
124 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
125
126 \parindent=0.0cm                    % first indent in section
127 \righthyphenmin=2                   % hyphen last charecter
128 \setsecnumdepth{subsubsection}          % section numeration depth
129
130 % We use the chapter header style:
131 \chapterstyle{morrow}
132
133 % \renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
134 \renewcommand{\chapterheadstart}{}
135 %\renewcommand{\beforechapskip}{\vspace{2pt}}
136
137 %\renewcommand{\@pnumwidth}{3em} % memoir class, more space between chapter number and text.
138 \setlength{\cftfigurenumwidth}{4em} % memoir class, more space between figure number and text.
139 \setlength{\cftsectionnumwidth}{2.7em} % memoir class, more space between section number and text
140 \setlength{\cftsubsectionnumwidth}{4.2em} % memoir class, more space between subsection number and text
141
142 \renewcommand{\nomname}{Glossary} % glossary name
143
144 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
145
146 % Define the Cinnelerra-GG wordmark - a rough draft that can be
147 % adapted at any time. To be used in the text with \CGG{}
148 % or % \CGGI{}
149 \def\GG{\textsc{G\kern-0.1em G}}
150 \def\CGG{\textsc{Cinelerra-\GG}}
151 \def\INF{\textsc{Infinity}}
152 \def\CGGI{\CGG\;\INF}
153
154 % Hyphenation for unknown words and technical terms
155 \hyphenation{%
156   plug-ins
157   ex-pan-ders
158 }
159
160
161 %%% Local Variables:
162 %%% mode: latex
163 %%% TeX-master: "../CinelerraGG_Manual"
164 %%% End: