-
Notifications
You must be signed in to change notification settings - Fork 3
/
comandos-book.tex
92 lines (76 loc) · 2.31 KB
/
comandos-book.tex
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
% Introdução ao LaTeX
% Seminário LaTeX -- o Livro
% Geraldo Xexéo
% Este arquivo tem a licença Creative Commons
% BY-NC-SA 2020
\usepackage{titling}
\newcommand{\subtitle}[1]{%
\posttitle{%
\par\end{center}
\begin{center}\large#1\end{center}
\vskip0.5em}%
}
\usepackage{authblk}
\usepackage{showexpl}
\usepackage{verbatim}
%%%%%%%%%%%% ENUMITEM configurado
\usepackage{enumitem}
% queremos menos espaço entre os itens de uma lista
\setlist{nosep}
% criando uma check-box list
\newlist{todolist}{itemize}{2}
\setlist[todolist]{label=$\square$}
% https://tex.stackexchange.com/questions/13463/specifying-bullet-type-when-using-itemize#
% o normal é \circle - e * (muito feio)
%https://texblog.org/2008/10/16/lists-enumerate-itemize-description-and-how-to-change-them/
\renewcommand{\labelitemi}{$\bullet$}
\renewcommand{\labelitemii}{$\circ$}
\renewcommand{\labelitemiii}{$\diamond$}
\renewcommand{\labelitemiv}{$\circle}
% colocando . entre 1a para ficar 1.a
% nos \ref para \labels
% https://tex.stackexchange.com/questions/288407/no-dots-in-the-cross-reference-to-an-item-from-enumerate/288412#288412
% I want dots
\makeatletter
\renewcommand\p@enumii{\theenumi.}
\renewcommand\p@enumiii{\theenumi.\theenumi.}
\makeatother
%%%%%%%%%%%% ENUMITEM END
\usepackage[export]{adjustbox}
\usepackage{listings}
\renewcommand{\lstlistingname}{Listagem}
\lstset{
numberbychapter=true,
language=[LaTeX]TeX,
float,
frame=tb,
emph={maketitle,subsection,titlepage,subsubsection,
paragraph,subparagraph,part,chapter},
emphstyle=\bfseries,
columns=fullflexible,
basicstyle=\ttfamily,
%keywordstyle=\color{black}\bfseries\underbar,
%identifierstyle=, % nothing happens
%commentstyle=\color{white}, % white comments
%stringstyle=\ttfamily, % typewriter type for strings
showstringspaces=false,
numbers=left,
numberstyle=\tiny,
numbersep=.3em}
\usepackage{enumitem}
\setlist[enumerate,1]{nosep}%,after=\vspace{.5em}}
\setlist[itemize,1]{nosep}%,after=\vspace{.5em}}
\setlist[enumerate,2]{nosep}
\setlist[enumerate,3]{nosep}
\setlist[itemize,2]{nosep}
\setlist[itemize,3]{nosep}
\setlength{\parskip}{.5em}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage[
type={CC},
modifier={by-nc-sa},
version={3.0},
]{doclicense}
\usepackage{booktabs}
\usepackage[hidelinks]{hyperref}