d12abd0caabe1636e2084e5937b2823cbe1d4e6a
[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
48 %----------------------------------------------------------------------
49 \usepackage{listings}               % include code 
50 \lstset{                            % begin settings
51   %language=R,                      % the language of the code
52   inputencoding=utf8,
53   basicstyle=\footnotesize,         % the size of the fonts that are used for the code
54   numbers=left,                     % where to put the line-numbers
55   numberstyle=\tiny\color{black},   % the style that is used for the line-numbers
56   stepnumber=1,                     % the step between two line-numbers. If it's 1, each line
57                                     % will be numbered
58   numbersep=5pt,                    % how far the line-numbers are from the code
59   %backgroundcolor=\color{white},   % choose the background color. You must add \usepackage{color}
60   showspaces=false,                 % show spaces adding particular underscores
61   showstringspaces=false,           % underline spaces within strings
62   showtabs=false,                   % show tabs within strings adding particular underscores
63   frame=lines,                      % adds a frame around the code
64   %frame=single,                    % adds a frame around the code
65   rulecolor=\color{black},          % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
66   tabsize=2,                        % sets default tabsize to 2 spaces
67   captionpos=b,                     % sets the caption-position to bottom
68   breaklines=true,                  % sets automatic line breaking
69   breakatwhitespace=false,          % sets if automatic breaks should only happen at whitespace
70   title=\lstname,                   % show the filename of files included with \lstinputlisting;
71                                     % also try caption instead of title
72   keywordstyle=\color{blue},        % keyword style
73   commentstyle=\color{gray},        % comment style
74   stringstyle=\color{black},        % string literal style
75   %backgroundcolor=\color{green!10},
76   escapeinside={\%*}{*)},           % if you want to add a comment within your code
77   extendedchars=\true,
78   %keepspaces = true                %!!!! spaces in comments
79   texcl=true,
80   morekeywords={*,...}              % if you want to add more keywords to the set
81 }
82 %======================геометрия полей
83 \usepackage{geometry}               % page geometry
84 \geometry{left=2.0cm}
85 \geometry{right=2.0cm}
86 \geometry{top=2.0cm}
87 \geometry{bottom=1.5cm}
88 \parindent=1.0cm                    % first indent in section
89 \righthyphenmin=2                   % hyphen last charecter
90 %---------------------------------------------------------------------------
91 \makeatletter
92 \renewcommand{\@biblabel}[1]{#1.}
93 %---------------------------------------------------------------
94
95 % Title page definition
96 %\providecommand{\HUGE}{\Huge}% if not using memoir
97 \newlength{\drop}% for my convenience
98 %% specify the Webomints family
99 %\newcommand*{\wb}[1]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
100 %% select a (FontSite) font by its font family ID
101 \newcommand*{\FSfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
102 %% if you don’t have the FontSite fonts either \renewcommand*{\FSfont}[1]{}
103 %% or use your own choice of family.
104 %% select a (TeX Font) font by its font family ID
105 \newcommand*{\TXfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
106 %% Generic publisher’s logo
107 \newcommand*{\plogo}{\fbox{$\mathcal{PL}$}}
108 %% Some shades
109 \definecolor{Dark}{gray}{0.2}
110 \definecolor{MedDark}{gray}{0.4}
111 \definecolor{Medium}{gray}{0.6}
112 \definecolor{Light}{gray}{0.8}
113 %%%% Additional font series macros
114
115 \newcommand*{\titleLL}{\begingroup% Lost Languages
116 \drop=0.1\textheight
117 \fboxsep 0.5\baselineskip
118 \sffamily
119 \vspace*{\drop}
120 \centering
121 {\textcolor{Dark}{\HUGE Cinelerra-GG Version Infinity}}\par
122 \vspace{0.5\drop}
123 {\includegraphics[width=0.1\linewidth]{./images/cin-logo}}\par
124 \vspace{0.5\drop}
125 \colorbox{Dark}{\textcolor{white}{\normalfont\itshape\Large
126 User Manual}}\par
127 \vspace{0.3\drop}
128 {\Large Last update}\\
129 {\footnotesize \today}\\
130 \url{https://www.cinelerra-gg.org}\par
131 \vspace*{\drop}
132 {\includegraphics[width=0.5\linewidth]{./images/cin-big.png}}\par
133 \endgroup}
134