c95c3d4e5287c348e1d0c6481400eb0c0ad925f1
[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 %begin{latexonly}
15 \settypeblocksize{8.75in}{34pc}{*}
16 %end{latexonly}
17
18 % In loose reference to the theme CW.
19 \definecolor{CinBlueText}{RGB}{23,85,142}% "Dark blue"
20 \definecolor{CinBlue}{RGB}{35,134,220}%    "Light blue"
21 \definecolor{CinRed}{RGB}{205,38,11}%      "negativ"
22 \definecolor{CinOrange}{RGB}{250,125,0}%   "neutral"
23 \definecolor{CinGreen}{RGB}{39,174,96}%    "positiv"
24 \definecolor{CinSilver}{RGB}{127,140,141}%
25 \definecolor{CinWhite}{RGB}{239,240,241}%
26 \definecolor{CinDarkGray}{RGB}{35,38,41}%
27
28 % Original
29 % \definecolor{chaptercolour}{RGB}{23,85,142}
30 % \definecolor{sectioncolour}{RGB}{23,85,142}
31 % \definecolor{subsectioncolour}{RGB}{23,85,142}
32 % \definecolor{subsubsectioncolour}{RGB}{23,85,142}
33
34 %begin{latexonly}
35 \makechapterstyle{morrow}{% requires graphicx package
36   \chapterstyle{default}
37   \renewcommand*{\chapnamefont}{%
38     \normalfont\Large\scshape\raggedleft\color{CinBlueText}}
39   \renewcommand*{\chapnumfont}{%
40     \normalfont\Large\bfseries\sffamily\color{CinBlueText}}
41   \renewcommand*{\printchapternum}{%
42     \chapnumfont\resizebox{!}{3ex}{\thechapter}}
43   \renewcommand*{\afterchapternum}{% FIXME vskip?
44     \par\hspace{1.5cm}\hrule\vskip\midchapskip}
45   \renewcommand*{\chaptitlefont}{% Overwrites toc
46     \normalfont\Huge\bfseries\sffamily\raggedleft\color{CinBlueText}}
47 }
48 %end{latexonly}
49
50 \addtodef{\printpartname}{\color{CinBlueText}}{}% Part
51 \addtodef{\printchaptername}{\color{CinBlueText}}{}% Chapter
52 \setsecheadstyle{\Large\bfseries\color{CinBlueText}}% Section
53 \setsubsecheadstyle{\large\bfseries\color{CinBlueText}}% SubSection
54 \setsubsubsecheadstyle{\normalfont\bfseries\color{CinBlueText}}% SubSubSection
55 \setparaheadstyle{\normalfont\bfseries\color{CinBlueText}}% Paragraph
56 \setsubparaheadstyle{\normalfont\bfseries\color{CinBlueText}}% SubParagraph
57
58 % Table of contents
59 \addtoiargdef{\printtoctitle}{\color{CinBlueText}}{} % If you just want the TOC title blue
60 % \addtodef{\tocheadstart}{\color{CinBlueText}}{} % If you want the
61 % whole TOC to be blue also. The page numbers are also colored, but
62 % these are not links, that's confusing.
63
64
65 % PDF properties
66 \hypersetup{colorlinks=true,
67   linkcolor=[named]{CinBlueText},
68   citecolor=[named]{CinBlueText},
69   filecolor=[named]{CinBlueText},
70   urlcolor=[named]{CinBlueText},
71   bookmarksnumbered=true,
72   pdftitle={Cinelerra-GG -- The Comprehensive User Manual},
73   pdfauthor={The Cinelerra-GG Community},
74   pdfsubject={Video Editing},
75   pdfkeywords={Cinelerra-GG, CGG, Cin5, Infinity, User Manual, Video
76     editing system, Video editing program}
77 }
78
79
80 % Package listings
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   % Required for c&p (PDF -> Clipboard):
108   columns=fullflexible,
109   postbreak=\mbox{\textcolor{CinSilver}{$\hookrightarrow$}\space},
110   keywordstyle=\color{CinDarkGray},
111   commentstyle=\footnotesize\color{gray},
112   stringstyle=\color{CinDarkGray},
113   % Retains the characters as entered:
114   literate={-}{-}1 {*}{*}1
115 }
116 % Our settings specifically for the shell.
117 % Usage: \begin{lstlisting}[style=sh]
118 \lstdefinestyle{sh}{%
119   language=bash,
120   morekeywords={cp,gdb,git,grep,make,mkdir,tee}
121 }
122 % A pseudo-style that does nothing.
123 % Usage: \begin{lstlisting}[style=nil] instead of:
124 %        \begin{lstlisting}[]
125 \lstdefinestyle{nil}{}
126
127
128 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
129
130 \parindent=0.0cm                    % first indent in section
131 \righthyphenmin=2                   % hyphen last charecter
132 %begin{latexonly}
133 \setsecnumdepth{subsubsection}          % section numeration depth
134
135 % We use the chapter header style:
136 \chapterstyle{morrow}
137 %end{latexonly}
138
139 % \renewcommand{\printchaptername}{\normalfont\large\scshape Chapter}
140 \renewcommand{\chapterheadstart}{}
141 %\renewcommand{\beforechapskip}{\vspace{2pt}}
142
143 %\renewcommand{\@pnumwidth}{3em} % memoir class, more space between chapter number and text.
144 \setlength{\cftfigurenumwidth}{4em} % memoir class, more space between figure number and text.
145 \setlength{\cftsectionnumwidth}{2.7em} % memoir class, more space between section number and text
146 \setlength{\cftsubsectionnumwidth}{3.6em} % memoir class, more space between subsection number and text
147
148 \renewcommand{\nomname}{Glossary} % glossary name
149
150 % \nameref emulation for LaTeX2HTML
151 \begin{htmlonly}
152 \renewcommand{\nameref}[1]{\ref{#1}}
153 \end{htmlonly}
154 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
155
156 % Define the Cinnelerra-GG wordmark - a rough draft that can be
157 % adapted at any time. To be used in the text with \CGG{}
158 % or % \CGGI{}
159 \def\GG{\textsc{G\kern-0.1em G}}
160 \def\CGG{\textsc{Cinelerra-\GG}}
161 \def\INF{\textsc{Infinity}}
162 \def\CGGI{\CGG\;\INF}
163
164 % Hyphenation for unknown words and technical terms
165 \hyphenation{%
166   plug-ins
167   ex-pan-ders
168 }
169
170
171 %%% Local Variables:
172 %%% mode: latex
173 %%% TeX-master: "../CinelerraGG_Manual"
174 %%% End: