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