Rename main file. Add settings.tex
[goodguy/cin-manual-latex.git] / common / packages.tex
1
2 \usepackage{cmap}
3 \usepackage[T2A]{fontenc}
4 \usepackage[utf8]{inputenc}         % file encoding
5 \usepackage[english]{babel}         % default language for document
6 \usepackage{
7     amssymb,
8     amsfonts,
9     mathtools,
10     mathtext,
11     cite,
12     enumerate,
13     float,
14     textcomp
15 }                                   % some packages 
16 %\usepackage[font={small}]{caption}
17 \usepackage{hhline}                 % beautiful links
18 \usepackage{hyperref}               % beautiful links
19 \usepackage{pdflscape}              % landscape pages
20 \usepackage{longtable}              % longtable support
21 \usepackage{multirow}               % vertical cell in table
22 \usepackage{bigstrut}               % big strut
23 \usepackage{array}                  % additional cell aligh
24 \usepackage{indentfirst}            % first line indent
25 \usepackage{gensymb}                % symbols
26
27 %\usepackage[nottoc]{tocbibind} %  do we need bibliography in toc
28 %----------------------------------------------
29 %\usepackage{mhchem}        
30 %===============  Font for tables  ============
31 \let\oldtabular\tabular
32 \renewcommand{\tabular}{\small\oldtabular}
33 \hypersetup{colorlinks=true,
34     linkcolor=blue,
35     citecolor=blue, 
36     filecolor=blue, 
37     urlcolor=blue, 
38     pdftitle={Cinelerra GG Infinity Manual}, 
39     pdfauthor={Cinelerra Authors},
40     pdfsubject={Video Editing}, 
41     pdfkeywords={Cinelerra, Good Guy}
42 } % pdf properties
43 \usepackage[pdftex]{graphicx}       % do we need some figures in our pdf 
44 \graphicspath{{images/}}            % path to images
45 \usepackage{tikz}                   % drawing package
46 \usepackage{nameref}                % use \nameref{} to set reference to chapter neme.
47 \input{common/settings.tex}
48
49 %----------------------------------------------------------------------
50 \usepackage{listings}               % include code 
51 \lstset{                            % begin settings
52   %language=R,                      % the language of the code
53   inputencoding=utf8,
54   basicstyle=\footnotesize,         % the size of the fonts that are used for the code
55   numbers=left,                     % where to put the line-numbers
56   numberstyle=\tiny\color{black},   % the style that is used for the line-numbers
57   stepnumber=1,                     % the step between two line-numbers. If it's 1, each line
58                                     % will be numbered
59   numbersep=5pt,                    % how far the line-numbers are from the code
60   %backgroundcolor=\color{white},   % choose the background color. You must add \usepackage{color}
61   showspaces=false,                 % show spaces adding particular underscores
62   showstringspaces=false,           % underline spaces within strings
63   showtabs=false,                   % show tabs within strings adding particular underscores
64   frame=lines,                      % adds a frame around the code
65   %frame=single,                    % adds a frame around the code
66   rulecolor=\color{black},          % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
67   tabsize=2,                        % sets default tabsize to 2 spaces
68   captionpos=b,                     % sets the caption-position to bottom
69   breaklines=true,                  % sets automatic line breaking
70   breakatwhitespace=false,          % sets if automatic breaks should only happen at whitespace
71   title=\lstname,                   % show the filename of files included with \lstinputlisting;
72                                     % also try caption instead of title
73   keywordstyle=\color{blue},        % keyword style
74   commentstyle=\color{gray},        % comment style
75   stringstyle=\color{black},        % string literal style
76   %backgroundcolor=\color{green!10},
77   escapeinside={\%*}{*)},           % if you want to add a comment within your code
78   extendedchars=\true,
79   %keepspaces = true                %!!!! spaces in comments
80   texcl=true,
81   morekeywords={*,...}              % if you want to add more keywords to the set
82 }
83 %======================геометрия полей
84 \usepackage{geometry}               % page geometry
85 \geometry{left=2.0cm}
86 \geometry{right=2.0cm}
87 \geometry{top=2.0cm}
88 \geometry{bottom=1.5cm}
89 \parindent=1.0cm                    % first indent in section
90 \righthyphenmin=2                   % hyphen last charecter
91 %---------------------------------------------------------------------------
92 \makeatletter
93 \renewcommand{\@biblabel}[1]{#1.}
94 %---------------------------------------------------------------
95
96 % Title page definition
97 %\providecommand{\HUGE}{\Huge}% if not using memoir
98 \newlength{\drop}% for my convenience
99 %% specify the Webomints family
100 %\newcommand*{\wb}[1]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
101 %% select a (FontSite) font by its font family ID
102 \newcommand*{\FSfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
103 %% if you don’t have the FontSite fonts either \renewcommand*{\FSfont}[1]{}
104 %% or use your own choice of family.
105 %% select a (TeX Font) font by its font family ID
106 \newcommand*{\TXfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
107 %% Generic publisher’s logo
108 \newcommand*{\plogo}{\fbox{$\mathcal{PL}$}}
109 %% Some shades
110 \definecolor{Dark}{gray}{0.2}
111 \definecolor{MedDark}{gray}{0.4}
112 \definecolor{Medium}{gray}{0.6}
113 \definecolor{Light}{gray}{0.8}
114 %%%% Additional font series macros
115
116 \newcommand*{\titleLL}{\begingroup% Lost Languages
117 \drop=0.1\textheight
118 \fboxsep 0.5\baselineskip
119 \sffamily
120 \vspace*{\drop}
121 \centering
122 {\textcolor{Dark}{\HUGE Cinelerra-GG Version Infinity}}\par
123 \vspace{0.5\drop}
124 {\includegraphics[width=0.1\linewidth]{./images/cin-logo}}\par
125 \vspace{0.5\drop}
126 \colorbox{Dark}{\textcolor{white}{\normalfont\itshape\Large
127 User Manual}}\par
128 \vspace{0.3\drop}
129 {\Large Last update}\\
130 {\footnotesize \today}\\
131 \url{https://www.cinelerra-gg.org}\par
132 \vspace*{\drop}
133 {\includegraphics[width=0.5\linewidth]{./images/cin-big.png}}\par
134 \endgroup}
135