- Commit
- 03c952f13f8bb50cddbbece084c2ba3c174c94dc
- Parent
- 7ddc6fe1e15f51ca7cf85a85182569228d1741e5
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Refactored some of the preambles
My personal LaTeX setup 🦁️⚙️
Refactored some of the preambles
4 files changed, 55 insertions, 27 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | preamble-beamer.tex | 4 | 0 | 4 |
Modified | preamble-common.tex | 15 | 6 | 9 |
Added | preamble-pt.tex | 35 | 35 | 0 |
Modified | preamble.tex | 28 | 14 | 14 |
diff --git a/preamble-beamer.tex b/preamble-beamer.tex @@ -25,10 +25,6 @@ linkcolor=marineblue, } -% Configure graphics -\usetikzlibrary{calc, shadows.blur, shapes.geometric, patterns} -\pgfplotsset{compat=1.16} - % Blockquotes \let\blockquote\relax \NewDocumentEnvironment{blockquote}{m O{Citação}}
diff --git a/preamble-common.tex b/preamble-common.tex @@ -16,7 +16,8 @@ \usepackage{mathtools, adjustbox} \usepackage[scr=esstix,cal=boondox]{mathalfa} \usepackage{enumitem, xfrac, xcolor, cancel, multicol, tabularx, relsize} -\usepackage{hyperref, csquotes} +\usepackage[colorlinks=true, citecolor=black]{hyperref} +\usepackage{csquotes} \usepackage{xalgebra, xgeometry, functional, capitalgreekall} \usepackage{ytableau} \usepackage[backend=biber]{biblatex} @@ -24,7 +25,10 @@ \usepackage{graphicx, wrapfig} \usepackage{xparse} \usepackage[normalem]{ulem} -\usepackage[brazil]{babel} + +% Configure graphics +\usetikzlibrary{calc, shadows.blur, shapes.geometric, patterns, arrows} +\pgfplotsset{compat=1.16} % Double struck letters % The following is kept besides \AA being already defined because I don't care @@ -94,13 +98,6 @@ % A semantic alternative to \textbf \newcommand{\strong}[1]{\textbf{#1}} -% Differentials and derivatives -\newcommand{\dd}{\mathrm{d}} -\newcommand{\dx}{\dd x} -\newcommand{\dy}{\dd y} -\newcommand{\dz}{\dd z} -\newcommand{\dt}{\dd t} - % Set cardinal \newcommand{\card}[1]{\left|\nobreak#1\nobreak\right|}
diff --git a/preamble-pt.tex b/preamble-pt.tex @@ -0,0 +1,35 @@ +% _ _ _ +% _ __ _ __ ___ __ _ _ __ ___ | |__ | | ___ | |_ _____ __ +% | '_ \| '__/ _ \/ _` | '_ ` _ \| '_ \| |/ _ \| __/ _ \ \/ / +% | |_) | | | __/ (_| | | | | | | |_) | | __/| || __/> < +% | .__/|_| \___|\__,_|_| |_| |_|_.__/|_|\___(_)__\___/_/\_\ +% |_| +% +% Pablo (C) 2020 + +\documentclass[a4paper]{article} +\usepackage[total={6in, 9in}]{geometry} +\usepackage[exerciselabel=Exercício]{xexercise} +\usepackage[brazil]{babel} +\input{preamble-common} + +% Configure the enumerate environment to use bold roman numerals +\setenumerate[0]{label={\bfseries(\roman*)}} + +% Useful theorem definitions +\newtheorem{theorem}{Teorema}[subsection] +\newtheorem*{theorem*}{Teorema} +\newtheorem{lemma}{Lema}[subsection] +\newtheorem*{lemma*}{Lema} +\newtheorem{corollary}{Corolário}[subsection] +\newtheorem*{corollary*}{Corolário} +\newtheorem{proposition}{Proposição}[subsection] +\newtheorem*{proposition*}{Proposição} +\theoremstyle{remark} +\newtheorem*{note}{Nota} +\theoremstyle{definition} +\newtheorem{definition}{Definição}[subsection] +\newtheorem*{definition*}{Definição} +\newtheorem{example}{Exemplo}[subsection] +\newtheorem*{example*}{Exemplo} +
diff --git a/preamble.tex b/preamble.tex @@ -9,26 +9,26 @@ \documentclass[a4paper]{article} \usepackage[total={6in, 9in}]{geometry} -\usepackage[exerciselabel=Exercício]{xexercise} +\usepackage{xexercise} \input{preamble-common} % Configure the enumerate environment to use bold roman numerals \setenumerate[0]{label={\bfseries(\roman*)}} % Useful theorem definitions -\newtheorem{theorem}{Teorema} -\newtheorem*{theorem*}{Teorema} -\newtheorem{lemma}{Lema} -\newtheorem*{lemma*}{Lema} -\newtheorem{corollary}{Corolário} -\newtheorem*{corollary*}{Corolário} -\newtheorem{proposition}{Proposição} -\newtheorem*{proposition*}{Proposição} +\newtheorem{theorem}{Theorem}[subsection] +\newtheorem*{theorem*}{Theorem} +\newtheorem{lemma}{Lemma}[subsection] +\newtheorem*{lemma*}{Lemma} +\newtheorem{corollary}{Corollary}[subsection] +\newtheorem*{corollary*}{Corollary} +\newtheorem{proposition}{Proposition}[subsection] +\newtheorem*{proposition*}{Proposition} \theoremstyle{remark} -\newtheorem*{note}{Nota} +\newtheorem*{note}{Note} \theoremstyle{definition} -\newtheorem{definition}{Definição} -\newtheorem*{definition*}{Definição} -\newtheorem{example}{Exemplo} -\newtheorem*{example*}{Exemplo} +\newtheorem{definition}{Definition}[subsection] +\newtheorem*{definition*}{Definition} +\newtheorem{example}{Example}[subsection] +\newtheorem*{example*}{Example}