86cf48a76a99674fea670c73f313501f95cd2864
[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 % - no * in the font
17 % - No novels in the listings.
18
19 % The Settings
20
21 % In loose reference to the theme CW.
22 \definecolor{CinBlueText}{RGB}{23,85,142}% "Dark blue"
23 \definecolor{CinBlue}{RGB}{35,134,220}%    "Light blue"
24 \definecolor{CinRed}{RGB}{205,38,11}%      "negativ"
25 \definecolor{CinOrange}{RGB}{250,125,0}%   "neutral"
26 \definecolor{CinGreen}{RGB}{39,174,96}%    "positiv"
27 \definecolor{CinSilver}{RGB}{127,140,141}%
28 \definecolor{CinWhite}{RGB}{239,240,241}%
29 \definecolor{CinDarkGray}{RGB}{35,38,41}%
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
64 % PDF properties
65 \hypersetup{colorlinks=true,
66   linkcolor=[named]{CinBlueText},
67   citecolor=[named]{CinBlueText},
68   filecolor=[named]{CinBlueText},
69   urlcolor=[named]{CinBlueText},
70   bookmarksnumbered=true,
71   pdftitle={The Comprehensive User Manual},
72   pdfauthor={The Cinelerra-GG Community},
73   pdfsubject={Video Editing},
74   pdfkeywords={Cinelerra-GG, CGG, Cin5, Infinity, User Manual, Video
75     editing system, Video editing program}
76 }
77
78
79 % Package listings
80 % FIXME: PDF c&p d o e s  n o t  w o r k.
81 \lstset{% Common settings
82   frame=single,
83   framerule=0pt,
84   framextopmargin=0.25ex,
85   framexbottommargin=0.25ex,
86   backgroundcolor=\color{CinWhite},
87   basicstyle=\small,
88   % No numbers by default. If required, activate explicitly in the
89   % respective lstlisting: numbers=left|right or define a new style
90   % below.
91   numbers=none,
92   numberstyle=\small\color{CinSilver},
93   numbersep=1em,   % how far the line-numbers are from the code
94   % Do not show:
95   showspaces=false,
96   showstringspaces=false,
97   showtabs=false,
98   %
99   tabsize=2,
100   breaklines=true, % sets automatic line breaking
101   % Still undecided:
102   title=\lstname,  % show the filename of files included with
103                    % \lstinputlisting; also try caption instead of
104                    % title
105   inputencoding=utf8,
106   extendedchars=true,
107   postbreak=\mbox{\textcolor{CinSilver}{$\hookrightarrow$}\space},
108   keywordstyle=\color{CinDarkGray},
109   commentstyle=\footnotesize\color{gray},
110   stringstyle=\color{CinDarkGray},
111   % Retains the characters as entered:
112   literate={-}{-}1 {*}{*}1
113 }
114 % Our settings specifically for the shell.
115 % Usage: \begin{lstlisting}[style=sh]
116 \lstdefinestyle{sh}{%
117   language=bash,
118   morekeywords={cp,gdb,git,grep,make,mkdir,tee}
119 }
120 % A pseudo-style that does nothing.
121 % Usage: \begin{lstlisting}[style=nil] instead of:
122 %        \begin{lstlisting}[]
123 \lstdefinestyle{nil}{}
124
125
126 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
127
128 %====================== Page geometry
129 % \geometry{left=2.0cm}
130 % \geometry{right=2.0cm}
131 % \geometry{top=2.0cm}
132 % \geometry{bottom=2.0cm}
133
134 \parindent=0.0cm                    % first indent in section
135 \righthyphenmin=2                   % hyphen last charecter
136 \setsecnumdepth{subsubsection}          % section numeration depth
137
138 %\pagestyle{plain}
139 %\pagenumbering{roman}
140 %\renewcommand{\chapterheadstart}{
141 %%\vspace*{\beforechapskip}
142 %\hrule\medskip}
143 %\renewcommand{\chapnamefont}{\normalfont\large\scshape}
144 %\renewcommand{\chapnumfont}{\normalfont\large\scshape}
145 %\renewcommand{\chaptitlefont}{\normalfont\large\scshape}
146 %\renewcommand{\printchaptername}{\normalfont\large\scshape История}
147 %\renewcommand{\chapternamenum}{ }
148 %\renewcommand{\printchapternum}{\chapnumfont \thechapter}
149 %\renewcommand{\afterchapternum}{. }
150 %\renewcommand{\afterchapskip}{\vspace{2ex}}
151 %\renewcommand{\afterchaptertitle}{\par\nobreak\medskip\hrule\vskip 
152 %\afterchapskip}
153 %}
154 %\chapterstyle{madsen}          % one of chapter header style for memoir documentclass
155 \chapterstyle{morrow}           % one of chapter header style for memoir documentclass
156 % \renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
157 \renewcommand{\chapterheadstart}{}
158 %\renewcommand{\beforechapskip}{\vspace{2pt}}
159
160 %\renewcommand{\@pnumwidth}{3em} % memoir class, more space between chapter number and text.
161 \setlength{\cftfigurenumwidth}{4em} % memoir class, more space between figure number and text.
162
163 \renewcommand{\nomname}{Glossary} % glossary name
164
165 % Define the Cinnelerra-GG wordmark - a rough draft that can be
166 % adapted at any time. To be used in the text with \CGG{}
167 % or % \CGGI{}
168 \def\GG{\textsc{G\kern-0.1em G}}
169 \def\CGG{\textsc{Cinelerra-\GG}}
170 \def\INF{\textsc{Infinity}}
171 \def\CGGI{\CGG\;\INF}
172
173 % Hyphenation for unknown words and technical terms
174 \hyphenation{%
175   plug-ins
176   ex-pan-ders
177 }
178
179
180 %%% Local Variables:
181 %%% mode: latex
182 %%% TeX-master: "../CinelerraGG_Manual"
183 %%% End: