latex-setup

My personal LaTeX setup 🦁️⚙️

Commit
63aa734e9c5667b2fb817607da3d81a7a9dc275e
Parent
4857371dbf5b38522b422ef5fa813329768b18cd
Author
Pablo <pablo-escobar@riseup.net>
Date

Added notes on some of my decisions

Indented stuff

Removed unnecessary macros from xgeometry

Diffstat

3 files changed, 35 insertions, 47 deletions

Status File Name N° Changes Insertions Deletions
Modified preamble-beamer.tex 8 4 4
Modified preamble-common.tex 58 31 27
Modified xgeometry.sty 16 0 16
diff --git a/preamble-beamer.tex b/preamble-beamer.tex
@@ -32,8 +32,8 @@
 % Blockquotes
 \let\blockquote\relax
 \NewDocumentEnvironment{blockquote}{m O{Citação}}
-    {\begin{block}{#2}}
-    {\newline {\normalfont \rightline{\rm --- #1}}\end{block}}
+  {\begin{block}{#2}}
+  {\newline {\normalfont \rightline{\rm --- #1}}\end{block}}
 
 % Useful theorem definitions
 \newtheorem*{theorem}{Teorema}
@@ -58,8 +58,8 @@
 % Configure how items look
 \setenumerate[0]{label={\color{marineblue}\normalfont(\roman*)}}
 \setitemize{label=\usebeamerfont*{itemize item}%
-    \usebeamercolor[fg]{itemize item}
-    \usebeamertemplate{itemize item}}
+  \usebeamercolor[fg]{itemize item}
+  \usebeamertemplate{itemize item}}
    
 % Configure the spacing of columns in tables
 \setlength{\tabcolsep}{5pt}
diff --git a/preamble-common.tex b/preamble-common.tex
@@ -27,32 +27,36 @@
 \usepackage[brazil]{babel}
 
 % Double struck letters
-\renewcommand{\AA}{\mathbb{A}} % Double struck A
-\newcommand{\BB}{\mathbb{B}}   % Double struck B
-\newcommand{\CC}{\mathbb{C}}   % Double struck C
-\newcommand{\DD}{\mathbb{D}}   % Double struck D
-\newcommand{\EE}{\mathbb{E}}   % Double struck E
-\newcommand{\FF}{\mathbb{F}}   % Double struck F
-\newcommand{\GG}{\mathbb{G}}   % Double struck G
-\newcommand{\HH}{\mathbb{H}}   % Double struck H
-\newcommand{\II}{\mathbb{I}}   % Double struck I
-\newcommand{\JJ}{\mathbb{J}}   % Double struck J
-\newcommand{\KK}{\mathbb{K}}   % Double struck K
-\newcommand{\LL}{\mathbb{L}}   % Double struck L
-\newcommand{\MM}{\mathbb{M}}   % Double struck M
-\newcommand{\NN}{\mathbb{N}}   % Double struck N
-\newcommand{\OO}{\mathbb{O}}   % Double struck O
-\newcommand{\PP}{\mathbb{P}}   % Double struck P
-\newcommand{\QQ}{\mathbb{Q}}   % Double struck Q
-\newcommand{\RR}{\mathbb{R}}   % Double struck R
-\renewcommand{\SS}{\mathbb{S}} % Double struck S
-\newcommand{\TT}{\mathbb{T}}   % Double struck T
-\newcommand{\UU}{\mathbb{U}}   % Double struck U
-\newcommand{\VV}{\mathbb{V}}   % Double struck V
-\newcommand{\WW}{\mathbb{W}}   % Double struck W
-\newcommand{\XX}{\mathbb{X}}   % Double struck X
-\newcommand{\YY}{\mathbb{Y}}   % Double struck Y
-\newcommand{\ZZ}{\mathbb{Z}}   % Double struck Z
+% The following is kept besides \AA being already defined because I don't care
+% abaut Å
+\renewcommand{\AA}{\mathbb{A}}   % Double struck A
+\newcommand{\BB}{\mathbb{B}}     % Double struck B
+\newcommand{\CC}{\mathbb{C}}     % Double struck C
+\newcommand{\DD}{\mathbb{D}}     % Double struck D
+\newcommand{\EE}{\mathbb{E}}     % Double struck E
+\newcommand{\FF}{\mathbb{F}}     % Double struck F
+\newcommand{\GG}{\mathbb{G}}     % Double struck G
+\newcommand{\HH}{\mathbb{H}}     % Double struck H
+\newcommand{\II}{\mathbb{I}}     % Double struck I
+\newcommand{\JJ}{\mathbb{J}}     % Double struck J
+\newcommand{\KK}{\mathbb{K}}     % Double struck K
+\newcommand{\LL}{\mathbb{L}}     % Double struck L
+\newcommand{\MM}{\mathbb{M}}     % Double struck M
+\newcommand{\NN}{\mathbb{N}}     % Double struck N
+\newcommand{\OO}{\mathbb{O}}     % Double struck O
+\newcommand{\PP}{\mathbb{P}}     % Double struck P
+\newcommand{\QQ}{\mathbb{Q}}     % Double struck Q
+\newcommand{\RR}{\mathbb{R}}     % Double struck R
+% The following is ommited because LaTeX keeps complaining about \SS not being
+% allowed in mathmode
+% \renewcommand{\SS}{\mathbb{S}} % Double struck S
+\newcommand{\TT}{\mathbb{T}}     % Double struck T
+\newcommand{\UU}{\mathbb{U}}     % Double struck U
+\newcommand{\VV}{\mathbb{V}}     % Double struck V
+\newcommand{\WW}{\mathbb{W}}     % Double struck W
+\newcommand{\XX}{\mathbb{X}}     % Double struck X
+\newcommand{\YY}{\mathbb{Y}}     % Double struck Y
+\newcommand{\ZZ}{\mathbb{Z}}     % Double struck Z
 
 % Use \blacksquare for \qed
 \renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
@@ -76,7 +80,7 @@
 \newcommand{\longhookrightarrow}{\lhook\joinrel\longrightarrow}
 \newcommand{\longhookleftarrow}{\longleftarrow\joinrel\rhook}
 \DeclareRobustCommand\longtwoheadrightarrow
-     {\relbar\joinrel\twoheadrightarrow}
+  {\relbar\joinrel\twoheadrightarrow}
 
 % Translate \gcd and \lcm to portuguese
 \let\gcd\relax
diff --git a/xgeometry.sty b/xgeometry.sty
@@ -53,19 +53,3 @@ geometry and Lie groups/algebras]
 }
 \makeatother
 
-% Tikz pictures
-\tikzset{
-  manifold/.pic = {
-    \draw  (-1.5, -0.5) to[relative, out=20,  in=160] 
-          +(   2,    0) to[relative, out=20,  in=160] 
-          +(   1,    1) to[relative, out=-20, in=-160] 
-          +(  -2,    0) to[relative, out=-20, in=-160] 
-           cycle;
-  },
-  big-manifold/.pic = {
-    \draw (-4, 2) to[relative, out=20, in=160] 
-          ( 2, 0) to[relative, out=20, in=160] 
-          ( 4, 3) to[relative, out=-20, in=-160] 
-          cycle;
-  }
-}