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