d4cbb6c4afed46a563df7ae7293492d0cc743ab3
[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
37 \hypersetup{colorlinks=true,
38     linkcolor=blue,
39     citecolor=blue, 
40     filecolor=blue, 
41     urlcolor=blue, 
42     pdftitle={Cinelerra GG Infinity Manual}, 
43     pdfauthor={Cinelerra Authors},
44     pdfsubject={Video Editing}, 
45     pdfkeywords={Cinelerra, Good Guy}
46 } % pdf properties
47 \usepackage[pdftex]{graphicx}       % do we need some figures in our pdf 
48 \graphicspath{{images/}}            % path to images
49 \usepackage{tikz}                   % drawing package
50 \usepackage{nameref}                % use \nameref{} to set reference to chapter neme.
51 \input{common/settings.tex}
52
53 %----------------------------------------------------------------------
54 \usepackage{listings}               % include code 
55 \lstset{                            % begin settings
56   %language=R,                      % the language of the code
57   inputencoding=utf8,
58   basicstyle=\ttfamily\footnotesize,         % the size of the fonts that are used for the code
59   numbers=left,                     % where to put the line-numbers
60   numberstyle=\tiny\color{black},   % the style that is used for the line-numbers
61   stepnumber=1,                     % the step between two line-numbers. If it's 1, each line
62                                     % will be numbered
63   numbersep=5pt,                    % how far the line-numbers are from the code
64   %backgroundcolor=\color{white},   % choose the background color. You must add \usepackage{color}
65   showspaces=false,                 % show spaces adding particular underscores
66   showstringspaces=false,           % underline spaces within strings
67   showtabs=false,                   % show tabs within strings adding particular underscores
68   frame=lines,                      % adds a frame around the code
69   %frame=single,                    % adds a frame around the code
70   rulecolor=\color{black},          % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
71   tabsize=2,                        % sets default tabsize to 2 spaces
72   captionpos=b,                     % sets the caption-position to bottom
73   breaklines=true,                  % sets automatic line breaking
74   breakatwhitespace=false,          % sets if automatic breaks should only happen at whitespace
75   title=\lstname,                   % show the filename of files included with \lstinputlisting;
76                                     % also try caption instead of title
77   keywordstyle=\color{blue},        % keyword style
78   commentstyle=\color{gray},        % comment style
79   stringstyle=\color{black},        % string literal style
80   %backgroundcolor=\color{green!10},
81   escapeinside={\%*}{*)},           % if you want to add a comment within your code
82   extendedchars=\true,
83   %keepspaces = true                %!!!! spaces in comments
84   texcl=true,
85   morekeywords={*,...}              % if you want to add more keywords to the set
86 }
87 %---------------------------------------------------------------------------
88 \makeatletter
89 \renewcommand{\@biblabel}[1]{#1.}
90 %---------------------------------------------------------------
91 %
92 \usepackage{tikz}                   % Powerfull ploting language
93 \usetikzlibrary{                    % Libraries for TiKz
94     positioning,
95     arrows,
96     shapes,
97     shadows
98
99
100
101
102 % Title page definition
103 %\providecommand{\HUGE}{\Huge}% if not using memoir
104 \newlength{\drop}% for my convenience
105 %% specify the Webomints family
106 %\newcommand*{\wb}[1]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
107 %% select a (FontSite) font by its font family ID
108 \newcommand*{\FSfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
109 %% if you don’t have the FontSite fonts either \renewcommand*{\FSfont}[1]{}
110 %% or use your own choice of family.
111 %% select a (TeX Font) font by its font family ID
112 \newcommand*{\TXfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
113 %% Generic publisher’s logo
114 \newcommand*{\plogo}{\fbox{$\mathcal{PL}$}}
115 %% Some shades
116 \definecolor{Dark}{gray}{0.2}
117 \definecolor{MedDark}{gray}{0.4}
118 \definecolor{Medium}{gray}{0.6}
119 \definecolor{Light}{gray}{0.8}
120 %%%% Additional font series macros
121
122 \newcommand*{\titleLL}{\begingroup% Lost Languages
123 \drop=0.1\textheight
124 \fboxsep 0.5\baselineskip
125 \sffamily
126 \vspace*{\drop}
127 \centering
128 {\textcolor{Dark}{\HUGE Cinelerra-GG Version Infinity}}\par
129 \vspace{0.5\drop}
130 {\includegraphics[width=0.1\linewidth]{./images/cin-logo}}\par
131 \vspace{0.5\drop}
132 \colorbox{Dark}{\textcolor{white}{\normalfont\itshape\Large
133 User Manual}}\par
134 \vspace{0.3\drop}
135 {\Large Last update}\\
136 {\footnotesize \today}\\
137 \url{https://www.cinelerra-gg.org}\par
138 \vspace*{\drop}
139 {\includegraphics[width=0.5\linewidth]{./images/cin-big.png}}\par
140 \endgroup}
141