% Basic I/O and language packages
%--------------------------------------------------------------------------------
\usepackage[utf8]{inputenc} %Input encoding
\usepackage[T1]{fontenc} %Output encoding
\usepackage{ae} %Output font fix
\usepackage{aecompl} %Output font fix
\usepackage[brazil,english]{babel} %Hyphenation patterns
\usepackage[fixlanguage]{babelbib} %For fixing .bib language
%--------------------------------------------------------------------------------

% Math and symbols packages
%--------------------------------------------------------------------------------
\usepackage{amsmath} %Advanced math typing
\usepackage{amsthm} %For theorem styles
\usepackage{amsfonts} %For \mathbb
\usepackage{amssymb} %For more math symbols
%\usepackage{stmaryrd} %For even more math symbols (like \llbracket)
%\usepackage{amscd} %For commutative diagrams
\usepackage{mathtools} %For extensible math symbols
\usepackage{mathdots} %For \iddots
\usepackage{bm} %For bold symbols with \bm
\usepackage{bbm} %For alternative blackboardsymbols with \mathbbm
%--------------------------------------------------------------------------------

% Enumeration packages
%--------------------------------------------------------------------------------
\usepackage[inline]{enumitem} %For enumerate styles
\usepackage{array} %For special commands in tables
%\usepackage{multirow} %For \multirow in tables
%\usepackage{chngcntr} %For redefining counters mid-document
%--------------------------------------------------------------------------------

% Fancy I/O packages
%--------------------------------------------------------------------------------
%\usepackage{color} %For colored text
%\usepackage[usenames,svgnames,dvipsnames]{xcolor} %For mixing colors
%\usepackage{tikz} %For tikzfigures
%\usetikzlibrary{calc} %For coordinate calculations
%\usetikzlibrary{arrows} %For different types of arrows
%\usetikzlibrary{cd} %For commutative diagrams
%\usetikzlibrary{3d} %For 3d figures
%\usetikzlibrary{external} %For one time compilation of tikzpictures
%\tikzexternalize[prefix=figures/compilations/]
%\usepackage{pgffor} %For \foreach and \breakforeach
%\usepackage{microtype} %Corrects kerning
%\usepackage{graphicx} %For \includegraphics
%\usepackage{dblfloatfix} %For options bp in figure* and table*
%\usepackage{floatpag} %For styles in whole-page figures (\floatpagestyle and \thisfloatpagestyle)
%--------------------------------------------------------------------------------

% Algorithms packages
%--------------------------------------------------------------------------------
\usepackage[%
  algoruled, %Name on top between rules (with extra space after)
  algosection, %Numbered according to sections (default)
  %dotocloa, %Put list of algorithms in table of contents
  vlined, %Blocks delimited by lines
  fillcomment, %End mark of comments flushed right (default)
  linesnumbered, %Number on lines
  resetcount%Reset line counter at start of new algorithm (default)
]{algorithm2e} %For environment algorithm
%--------------------------------------------------------------------------------

% Layout packages
%--------------------------------------------------------------------------------
%\usepackage{fancyhdr} %For fancy headers
%\usepackage[landscape]{geometry} %Margins
\usepackage[in]{fullpage} %Gets rid of stupidly large margins leaving 1 inch on every side
\usepackage{setspace} %For changing spacing between lines anywhere
\usepackage{indentfirst} %Makes sure that the first paragraph is indented
%\usepackage{pdflscape} %Allows alternating to landscape mode
%--------------------------------------------------------------------------------

% Indexing packages
%--------------------------------------------------------------------------------
%\usepackage[noautomatic]{imakeidx} %For various word indexes
% Custom index package
%\usepackage{imakeidxfix} %For fixing imakeidx's printindex
%--------------------------------------------------------------------------------

% Cross-referencing packages
%--------------------------------------------------------------------------------
%\usepackage{subcaption} % For captions in subfloats
\usepackage[%
  pdftex,% For direct pdf compilation compatibility
  plainpages=false,% Usage of not only arabic numbers
  pdfpagelabels,% Enable page labels
  pagebackref,% Bibliographic back links to pages
  colorlinks,% Colored links
  citecolor=black,% Citation color
  linkcolor=black,% Link color
  urlcolor=black,% URL color
  filecolor=black,% File color
  bookmarksopen=false% For starting document with bookmarks tree closed
]{hyperref} %For pdf links
\usepackage[all]{hypcap} %Fixes figures and tables anchors for hyperref
%--------------------------------------------------------------------------------

% Custom packages
%--------------------------------------------------------------------------------
\usepackage{boththeorems} %For defining both non-starred and starred versions of a theorem
%\usepackage{extrasymbols} %For extra math symbols
%--------------------------------------------------------------------------------

%% Local Variables:
%% mode: latex
%% tab-width: 2
%% auto-fill-function: nil
%% End:
