- Commit
- a116b7ad2e3a23bb6a96e4387778553202cc2c29
- Parent
- 1dc8cd931711d51d8d0831504b208f59a9bca7df
- Author
- Pablo <pablo-pie@riseup.net>
- Date
Created a custom document class
Moved the styling code to the custom document class
Refactored the \maketitle command to print the license and the dedication too
Removed unnecessary biblatex settings
Removed the use of the imakeidx package
Removed unrelated text from the About section
diff --git a/cover.tex b/cover.tex
@@ -1,11 +1,5 @@
% Taken from https://latexdraw.com/tikz-cover-pages-gallery/
-% Configure the PDF title and author
-\hypersetup{
- pdftitle={\thetitle},
- pdfauthor={\theauthor}
-}
-
% The cover itself
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
@@ -52,7 +46,7 @@
%%%%%%%%%%%%%%%%%%%% Author Name %%%%%%%%%%%%%%%%%%%%
\node[left,highlight!5,minimum width=0.625*\paperwidth,minimum height=2cm, rounded corners] at ($(current page.north east)+(-.6,-11)$)
{
- {\Large \textsc{\theauthor}}
+ {\Large \textsc{Thiago Brevidelli Garcia}}
};
%%%%%%%%%%%%%%%%%%%% Year %%%%%%%%%%%%%%%%%%%%
@@ -65,19 +59,3 @@
\null
\thispagestyle{empty}
\clearpage
-
-% Title page
-\clearpage
-\null
-\thispagestyle{empty}
-\vspace*{\stretch{1}} % Some space at the top
-\begin{center} % Centralize text
-\huge % Make the text larger
-{\bfseries\thetitle}
-\par
-\LARGE % Make the text not that large
-\theauthor
-\par
-\par % End the paragraph
-\end{center}
-\vspace{\stretch{3}} % Space at bottom is three times that at the top
diff --git a/preamble.tex b/preamble.tex
@@ -1,135 +1,27 @@
-\documentclass{book}
-\usepackage[total={6in, 9in}]{geometry}
-\usepackage{amsmath, amssymb, amsthm, stmaryrd, mathrsfs, gensymb, dsfont}
\usepackage{mathtools, adjustbox}
-\usepackage{enumitem, xfrac, xcolor, cancel, multicol, tabularx, relsize}
+\usepackage{xfrac, cancel, multicol, tabularx, relsize}
\usepackage[normalem]{ulem}
-\usepackage{hyperref, refcount}
-\usepackage{fancyhdr, titling}
-\usepackage[labelfont={color=highlight, bf}]{caption}
-\usepackage[backend=biber, citetracker=true, citestyle=alphabetic, bibstyle=ieee-alphabetic, sorting=nty, sortcites=true]{biblatex}
+\usepackage[backend=biber, bibstyle=ieee]{biblatex}
\usepackage{pgfplots, tikz, tikz-cd}
\usepackage{graphicx, wrapfig}
-\usepackage{imakeidx}
-\usepackage{tcolorbox}
-\usepackage{footnote}
-
-% Set the default colors
-\definecolor{highlight}{RGB}{44, 76, 237}
-\definecolor{thmbackground}{RGB}{249, 249, 249}
-\definecolor{thmrule}{RGB}{230, 230, 230}
-
-% Configure fonts
-\usepackage[lf]{Baskervaldx} % lining figures
-\usepackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
-\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
-\renewcommand*\oldstylenums[1]{\textosf{#1}}
-\hypersetup{
- colorlinks,
- citecolor=black,
- filecolor=black,
- linkcolor=black,
- urlcolor=highlight,
-}
% Configure graphics
\usetikzlibrary{calc, shadows.blur, shapes.geometric, patterns, arrows}
\pgfplotsset{compat=1.16}
-% Initialize the imakeidx package
-\makeindex
-
-% Configure the enumerate environment to use bold roman numerals
-\setenumerate[0]{label={\color{highlight}\normalfont \bfseries(\roman*)}}
-
-% Macro for creating boxed theorem environments
-\newcounter{theorem}[chapter]
-\renewcommand{\thetheorem}{\thechapter.\arabic{theorem}}
-\newcommand{\newboxedtheorem}[2]
- {
- \newtheorem{inner#1}[theorem]{#2}
- \newenvironment{#1}[1][{}]
- {
- \savenotes
- \begin{tcolorbox}[colback=thmbackground, colframe=thmrule]
- \begin{inner#1}[##1]
- }
- {\end{inner#1}\end{tcolorbox}\spewnotes}
- }
-
-% Green theorem styles
-\newtheoremstyle{coloredtheorem}{}{}{\em}{}{\bf\color{highlight}}{.}{.5em}{}
-\newtheoremstyle{coloreddefinition}{}{}{}{}{\bf\color{highlight}}{.}{.5em}{}
-\newtheoremstyle{coloredremark}{}{}{}{}{\itshape\color{highlight}}{.}{.5em}{}
-
% Useful theorem definitions
-\theoremstyle{coloredtheorem}
+\theoremstyle{theorem}
\newboxedtheorem{theorem}{Theorem}
\newboxedtheorem{lemma}{Lemma}
\newboxedtheorem{corollary}{Corollary}
\newboxedtheorem{proposition}{Proposition}
-\theoremstyle{coloreddefinition}
+\theoremstyle{definition}
\newboxedtheorem{definition}{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{fact}[theorem]{Fact}
-\theoremstyle{coloredremark}
+\theoremstyle{remark}
\newtheorem*{note}{Remark}
-% Custom page style
-\fancypagestyle{custom}{%
- \fancyhead[EL]{%
- \raisebox{0.5em}{\thepage}%
- }
- \fancyhead[ER]{%
- \raisebox{0.5em}{\nouppercase{\leftmark}}%
- }
- \fancyhead[OL]{%
- \raisebox{0.5em}{\S\nouppercase{\rightmark}}%
- \vspace*{-0.5em}%
- }
- \fancyhead[OR]{%
- \raisebox{0.5em}{\thepage}%
- }
- \fancyfoot{}
-}
-\pagestyle{custom}
-
-% Dedication environment
-\newenvironment{dedication}
- {\clearpage % We want a new page
- \thispagestyle{empty} % No header and footer
- \vspace*{\stretch{1}} % Some space at the top
- \begin{center} % Centralize text
- \huge % Make the text larger
- \itshape % The text is in italics
- \raggedleft % Flush to the right margin
- }
- {\par % End the paragraph
- \end{center}
- \vspace{\stretch{3}} % Space at bottom is three times that at the top
- \clearpage % Finish off the page
- \null
- \thispagestyle{empty}
- \clearpage % Skip a page
- }
-
-% Command to print licensing information
-\newcommand{\printlicense}
- {\clearpage
- \thispagestyle{empty}
- \vspace*{1cm} % Some space at the top
- \begin{center}
- This work is licensed under a \textbf{Creative Commons Attributions 4.0
- International License}
- \par
- \vspace{1em}
- \includegraphics[width=2cm]{images/by.eps}
- \end{center}
- \null\vfill
- \begin{center}Last updated \today\end{center}
- \clearpage
- }
-
% Use \blacksquare for \qed
\renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
@@ -189,8 +81,3 @@
% A normal subobject in a pointed cathegory
\newcommand{\normal}{\triangleleft}
-
-% Command for printing the number of pages between two labels
-\newcommand{\pagedifference}[2]{%
- \number\numexpr\getpagerefnumber{#2}-\getpagerefnumber{#1}\relax}
-