-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathspacelab_book.sty
106 lines (93 loc) · 2.74 KB
/
spacelab_book.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%
% spacelab_book.sty
%
% Copyright (C) 2021 by SpaceLab.
%
% FloripaSat-2 Documentation
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-sa/4.0/.
%
%
% \brief Document style customization and packages.
%
% \author Gabriel Mariano Marcelino <[email protected]>
%
% \institution Universidade Federal de Santa Catarina (UFSC)
%
% \version 0.1.0
%
% \date 2020/06/05
%
\ProvidesPackage{spacelab_book}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{ae}
\usepackage{graphicx}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage{subfigure}
\usepackage{nomencl} % Nomenclature list
\usepackage{float}
\usepackage{titlesec}
\usepackage{booktabs}
\usepackage{emptypage}
\usepackage{lettrine} % First letter bigger in the begining of a chapter
\usepackage{tabularx}
\usepackage{enumitem} % Custom enumerate
\usepackage[toc,page]{appendix} % Appendix
\usepackage{titling}
\usepackage{pdfpages} % Include PDF documents
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage[toc,page]{appendix} % Appendix
\usepackage{pdflscape}
\usepackage[bottom]{footmisc}
\usepackage{multicol}
\usepackage{caption} % \caption*
\usepackage{listings} % Codes
\usepackage[outdir=figures/]{epstopdf}
\usepackage{longtable} % Multiple pages table
\usepackage[math]{iwona}
\usepackage{xcolor, colortbl}
\usepackage{titlesec}
% URLs font style
\urlstyle{same}
% Bibliography style (order of appearance)
\bibliographystyle{unsrt}
% First chapter page style
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filright\MakeUppercase{\chaptertitlename} \Large\thechapter}
{1ex}
{\titlerule\vspace{1ex}\filleft}
[\vspace{1ex}\titlerule]
% Header style
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO]{\nouppercase{\rightmark}}
\fancyhead[LE]{\nouppercase{\leftmark}}
\fancyfoot[RO]{\thepage}
\fancyfoot[LE]{\thepage}
\renewcommand{\footrulewidth}{0.5pt}
% List of abbreviations
\makenomenclature
\setlength\nomlabelwidth{2cm}
% Table cell size limit and alignment
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}
% Fill a cell of a table
\newcommand{\fc}{\cellcolor{gray}}
% Disables appendix cover page
\appendixpageoff
% subsubsubsection
\setcounter{secnumdepth}{4}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}