Files
doc_phd_thesis/carreira_phd_thesis.sty
T
2018-12-14 02:39:48 +00:00

158 lines
4.4 KiB
TeX

\usepackage[english]{babel}
% *** MISC ***
\usepackage{verbatim}
\usepackage{subfiles}
\usepackage{xspace}
\usepackage{pdfpages}
%\usepackage[colorlinks=false,hidelinks,pdfpagelabels]{hyperref}
\usepackage[colorlinks=true,hidelinks,pdfpagelabels]{hyperref}
%\usepackage[pdfpagelabels]{hyperref}
% *** Minitoc ***
%\usepackage[nohints,tight]{minitoc}
%\setcounter{minitocdepth}{2}
% Generates mini tables of contents per chapter
% JEM: The following fixes minitoc to not be multiple-spaced.
%\let\oldmtc@verse\mtc@verse
%\renewcommand{\mtc@verse}[1]{\oldmtc@verse{#1}\setlength{\baselineskip}{\z@}}
% *** CITATION PACKAGES ***
\usepackage{cite}
\usepackage{bibentry}
% *** GRAPHICS RELATED PACKAGES ***
\usepackage{drawstack}
\usepackage{epstopdf}
\usepackage{dblfloatfix}
\usepackage{subfig}
\usepackage{pgfgantt}
\usepackage{etex}
\usepackage{bytefield} % Create bitstrem image
\newsavebox{\bytefieldbox}
%% Gnuplot
\usepackage[subfolder]{gnuplottex}
\usepackage{xparse}
\ExplSyntaxOn
\DeclareExpandableDocumentCommand{\convertlen}{ O{cm} m }
{
\dim_to_decimal_in_unit:nn { #2 } { 1 #1 } cm
}
\ExplSyntaxOff
\newcommand{\PlotFont}[0]{7}
\newcommand{\TitleFont}[0]{\footnotesize}
\newcommand{\TicsFont}[0]{\scriptsize}
\newcommand{\KeyFont}[0]{\scriptsize}
\newcommand{\PLRLABEL}{\footnotesize Packet Loss Ratio (\%)}
\newcommand{\PSNRLABEL}{\footnotesize PSNR (dB)}
\newcommand{\TABLEPLRLABEL}{Packet Loss Ratio}
%\usepackage[first=0, last=100]{lcg}
%\newcommand{\random}{\rand\arabic{rand}}
%% TikZ
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{tkz-euclide}
\usetikzlibrary{fit}
\usetikzlibrary{calc}
\usetikzlibrary{snakes}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes}
\usetikzlibrary{positioning}
\usetikzlibrary{decorations}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{graphs}
\usetikzlibrary{trees}
\usetikzlibrary{intersections}
\usetikzlibrary{matrix}
\usetikzlibrary{hobby}
\newcommand{\yslant}{-0.26}
\newcommand{\yfshift}{0.05cm}
\definecolor{TikZColorFill}{RGB}{220,220,220}
\definecolor{TikZColorFillDark}{RGB}{120,120,120}
\definecolor{TikZColorFillProp}{RGB}{136, 180, 255}
\definecolor{TikZColorBlock0}{RGB}{0,95,120}
\definecolor{TikZColorBlock1}{RGB}{0,160,200}
\def\TikZyslant{-0.2}
\def\TikZxscale{0.75}
\def\TikZyfshift{0.05cm}
\newcounter{maincounter}
% We need layers to draw the block diagram
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}
% *** TABLE PACKAGES ***
\usepackage{tabularx, colortbl, booktabs, array, multirow}
\newcolumntype{x}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{y}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
% *** FLOAT PACKAGES ***
% Coloca sempre as figuras dentro das secções a que pertencem
\usepackage{float}
\usepackage[section]{placeins}
% \usepackage{flafter}
% *** MATH PACKAGES ***
\usepackage{array,mathtools}
\usepackage{mdwmath,amsmath}
\usepackage{array,mdwmath,amsmath,commath}
\newcommand*\mean[1]{\bar{#1}}
\newcommand{\argmax}{\operatornamewithlimits{arg\ max}}
\newcommand{\maxop}{\operatornamewithlimits{max}}
% *** PAGE ROTATION PACKAGES ***
\usepackage{pdflscape}
\usepackage{adjustbox}
\usepackage{rotating}
\usepackage{balance}
% *** ABREVIATIONS ***
\usepackage[xindy,toc,acronym,nomain,indexonlyfirst,nopostdot]{glossaries}
\newcommand{\customnewacronym}[4][]{\newacronym[#1,description=#4]{#2}{\mbox{#3}}{#4}}
\setglossarystyle{long}
\newcommand{\ac}[1]{\gls{#1}}
\newcommand{\acs}[1]{\glspl{#1}}
\loadglsentries{carreira_phd_thesis_abr.sty}
\makeglossaries
% *** FLOAT SIZES AND PATH ***
\newcommand{\FigsPath}{}
\newcommand{\FIGSIZE}{0.7\columnwidth}
\newcommand{\FIGSIZEDOUBLE}{0.45\columnwidth}
\newcommand{\FIGSIZETABLE}{0.5\columnwidth}
\newcommand{\TABLESVSPACE}{\vspace{-1mm}}
%\newcommand{\TABLESVSPACE}{}
\newcommand{\FIGSVSPACE}{}
\newcommand{\optbold}[1]{\textbf{#1}}
% %Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
% \usepackage[Bjornstrup]{fncychap}
\newcounter{journalpub}
\newenvironment{journalpub}[1][]{\refstepcounter{journalpub}\par\medskip
\noindent \textbf{J\thejournalpub. #1} \rmfamily}{\medskip}
\newcounter{conferencepub}
\newenvironment{conferencepub}[1][]{\refstepcounter{conferencepub}\par\medskip
\noindent \textbf{J\theconferencepub. #1} \rmfamily}{\medskip}
\usepackage{enumitem}
\makeatletter
\def\namedlabel#1#2{\begingroup
#2%
\def\@currentlabel{#2}%
\phantomsection\label{#1}\endgroup
}