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
7 % - But be careful, too much ink can quickly have a negative
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.)
17 % - No novels in the listings.
21 % Set up the page layout
22 % memman.pdf capter 2: Laying out the page (READ IT!)
24 \settypeblocksize{8.75in}{34pc}{*}
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}%
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}
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}}
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
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
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}
85 % FIXME: PDF c&p d o e s n o t w o r k.
86 \lstset{% Common settings
89 framextopmargin=0.25ex,
90 framexbottommargin=0.25ex,
91 backgroundcolor=\color{CinWhite},
93 % No numbers by default. If required, activate explicitly in the
94 % respective lstlisting: numbers=left|right or define a new style
97 numberstyle=\small\color{CinSilver},
98 numbersep=1em, % how far the line-numbers are from the code
101 showstringspaces=false,
105 breaklines=true, % sets automatic line breaking
107 title=\lstname, % show the filename of files included with
108 % \lstinputlisting; also try caption instead of
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
119 % Our settings specifically for the shell.
120 % Usage: \begin{lstlisting}[style=sh]
121 \lstdefinestyle{sh}{%
123 morekeywords={cp,gdb,git,grep,make,mkdir,tee}
125 % A pseudo-style that does nothing.
126 % Usage: \begin{lstlisting}[style=nil] instead of:
127 % \begin{lstlisting}[]
128 \lstdefinestyle{nil}{}
131 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
133 %====================== Page geometry
134 % \geometry{left=2.0cm}
135 % \geometry{right=2.0cm}
136 % \geometry{top=2.0cm}
137 % \geometry{bottom=2.0cm}
139 \parindent=0.0cm % first indent in section
140 \righthyphenmin=2 % hyphen last charecter
141 \setsecnumdepth{subsubsection} % section numeration depth
144 %\pagenumbering{roman}
145 %\renewcommand{\chapterheadstart}{
146 %%\vspace*{\beforechapskip}
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
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}}
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.
168 \renewcommand{\nomname}{Glossary} % glossary name
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{}
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}
178 % Hyphenation for unknown words and technical terms
187 %%% TeX-master: "../CinelerraGG_Manual"