dotfiles

My personal dotfiles

commit 83c688bf625e1735a5608776212c40c01ea6c285
parent 3cbaa00f1b51ccd1549c07e7c4619a9bf51f6e66
Author: Pablo Emilio Escobar Gaviria <pablo-escobar@riseup.net>
Date:   Tue,  5 Jan 2021 20:29:49 +1000

Added my TeXLive configuration to the repo

Diffstat:
A.local/share/texmf/tex/latex/capitalgreekall.sty | 19+++++++++++++++++++
A.local/share/texmf/tex/latex/functional.sty | 24++++++++++++++++++++++++
A.local/share/texmf/tex/latex/preamble.tex | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.local/share/texmf/tex/latex/xalgebra.sty | 45+++++++++++++++++++++++++++++++++++++++++++++
A.local/share/texmf/tex/latex/xexercise.sty | 33+++++++++++++++++++++++++++++++++
5 files changed, 191 insertions(+), 0 deletions(-)
diff --git a/.local/share/texmf/tex/latex/capitalgreekall.sty b/.local/share/texmf/tex/latex/capitalgreekall.sty
@@ -0,0 +1,19 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{capitalgreekall}[2020/09/10 1.0.0 Capital greek letters]
+
+\newcommand{\Alpha}{\mathrm{A}}
+\newcommand{\Beta}{\mathrm{B}}
+\newcommand{\Epsilon}{\mathrm{E}}
+\newcommand{\Zeta}{\mathrm{Z}}
+\newcommand{\Eta}{\mathrm{E}}
+\newcommand{\Iota}{\mathrm{I}}
+\newcommand{\Kappa}{\mathrm{K}}
+\newcommand{\Mu}{\mathrm{M}}
+\newcommand{\Nu}{\mathrm{N}}
+\newcommand{\Omicron}{\mathrm{O}}
+\newcommand{\Rho}{\mathrm{R}}
+\newcommand{\Tau}{\mathrm{T}}
+\newcommand{\Chi}{\mathrm{X}}
+
+\endinput
+
diff --git a/.local/share/texmf/tex/latex/functional.sty b/.local/share/texmf/tex/latex/functional.sty
@@ -0,0 +1,24 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{functional}
+  [2020/09/10 1.0.0 Usefull definitions for Category Theory]
+
+\RequirePackage{amsmath}
+
+\DeclareMathOperator{\Obj}{Obj} % The class of objects of a category
+\DeclareMathOperator{\Hom}{Hom} % The class of morphisms of a category
+\DeclareMathOperator{\End}{End} % Endomorphisms
+\DeclareMathOperator{\Aut}{Aut} % Automorphisms
+
+% Function stuff
+\DeclareMathOperator{\dom}{dom}     % The domain of a morphism
+\DeclareMathOperator{\codom}{codom} % The codomain of a morphism
+\DeclareMathOperator{\im}{im}       % The image of morphism
+\DeclareMathOperator{\id}{id}       % Identity function
+\newcommand{\To}{\Rightarrow}       % Natural transformation
+\newcommand{\fmapsto}[1]
+  {\overset{#1}{\longmapsto}}       % Map declaration
+
+\newcommand{\subobject}{\le}        % A subobject of an object
+\newcommand{\normal}{\triangleleft} % A normal subobject in a pointed cathegory
+
+\endinput
diff --git a/.local/share/texmf/tex/latex/preamble.tex b/.local/share/texmf/tex/latex/preamble.tex
@@ -0,0 +1,70 @@
+\documentclass[a4paper]{article}
+\usepackage[total={6in, 9in}]{geometry}
+\usepackage{amsmath, amssymb, amsthm, stmaryrd, mathrsfs, gensymb}
+\usepackage{enumitem, xfrac, xcolor, cancel, multicol, tabularx, relsize}
+\usepackage{hyperref, cleveref, lipsum}
+\usepackage{xalgebra, functional, capitalgreekall}
+\usepackage{ytableau}
+\usepackage[exerciselabel=Exercício]{xexercise}
+\usepackage[brazil]{babel}
+
+% A semantic alternative to \textbf
+\newcommand{\strong}[1]{\textbf{#1}}
+
+% Differentials and derivatives
+\newcommand{\DD}{\mathrm{D}}
+\newcommand{\dd}{\mathrm{d}}
+\newcommand{\dx}{\dd x}
+\newcommand{\dy}{\dd y}
+\newcommand{\dz}{\dd z}
+\newcommand{\dt}{\dd t}
+
+% Use \blacksquare for \qed
+\renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
+
+% Only use \smallsetminus
+\renewcommand{\setminus}{\smallsetminus}
+
+% Make the \mid symbol taller (this is useful for Group Theory)
+\renewcommand{\mid}{\,\mathlarger{\mathlarger{\mathchar"326A}}\,}
+\renewcommand{\nmid}{\,\mathlarger{\mathlarger{\mathchar"352D}}\,}
+
+% Get propper \leq and \geq symbols
+\renewcommand{\leq}{\leqslant}
+\renewcommand{\le}{\leqslant}
+\renewcommand{\geq}{\geqslant}
+\renewcommand{\ge}{\geqslant}
+
+% 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}
+\theoremstyle{remark}
+\newtheorem*{note}{Nota}
+\theoremstyle{definition}
+\newtheorem{definition}{Definição}
+\newtheorem*{definition*}{Definição}
+\newtheorem{example}{Exemplo}
+\newtheorem*{example*}{Exemplo}
+
+% Translate \gcd and \lcm to portuguese
+\let\gcd\relax
+\DeclareMathOperator{\gcd}{mdc}
+\let\lcm\relax
+\DeclareMathOperator{\lcm}{mmc}
+
+% Redefine \bar
+\renewcommand{\bar}{\overline}
+
+% Set cardinal
+\newcommand{\card}[1]{\left|\nobreak#1\nobreak\right|} % Set cardinal
+\newcommand{\void}{ }                                  % Empty macro
+
diff --git a/.local/share/texmf/tex/latex/xalgebra.sty b/.local/share/texmf/tex/latex/xalgebra.sty
@@ -0,0 +1,45 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{xalgebra}[2020/09/10 1.0.0 Usefull definitions for Algebra]
+
+\RequirePackage{amssymb} % For the standard sets
+\RequirePackage{amsmath} % For the \DeclareMathOperator
+
+% Standard rings and fields
+\newcommand{\NN}{\mathbb{N}}   % Natural numbers
+\newcommand{\ZZ}{\mathbb{Z}}   % Integers
+\newcommand{\QQ}{\mathbb{Q}}   % Rational numbers
+\newcommand{\RR}{\mathbb{R}}   % Real numbers
+\newcommand{\CC}{\mathbb{C}}   % Complex numbers
+\newcommand{\HH}{\mathbb{H}}   % Quaternions
+\newcommand{\OO}{\mathbb{O}}   % Octonions
+\renewcommand{\SS}{\mathbb{S}} % Sedenions
+
+% Linear Algebra stuff
+\newenvironment{system}
+  {\left \{ \begin{aligned}}
+  {\end{aligned} \right.}          % Linear system of equations
+\DeclareMathOperator{\vspan}{span} % Set span
+\DeclareMathOperator{\Tr}{Tr}      % Operator trace
+\DeclareMathOperator{\Id}{Id}      % Identity operator
+\DeclareMathOperator{\Bil}{Bil}    % The space of bilinear maps
+\DeclareMathOperator{\Mat}{Mat}    % Matrix algebra
+\DeclareMathOperator{\Sym}{Sym}    % Symetric product of vector-spaces
+\newcommand{\norm}[1]{\left\lVert\nobreak#1\nobreak\right\rVert} % Vector norm
+
+% Group Theory stuff
+\DeclareMathOperator{\Inn}{Inn}  % Inner automorphism group
+\DeclareMathOperator{\Out}{Out}  % Outer automorphism group
+\DeclareMathOperator{\sgn}{sgn}  % Permutation sign (parity)
+\DeclareMathOperator{\GL}{GL}    % General linear group
+\DeclareMathOperator{\SL}{SL}    % Simple linear group
+
+% Ring Theory stuff
+\DeclareMathOperator{\Frac}{Frac}  % Field of fractions
+\DeclareMathOperator{\fchar}{char} % Field characteristic
+
+% Representation Theory stuff (algebras, groups, quivers, whatever)
+\DeclareMathOperator{\Rad}{Rad} % Jacobson radical
+\DeclareMathOperator{\Ind}{Ind} % Induced representation
+
+\endinput
+
diff --git a/.local/share/texmf/tex/latex/xexercise.sty b/.local/share/texmf/tex/latex/xexercise.sty
@@ -0,0 +1,33 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{xexercise}[2020/09/10 1.0.0 Usefull definitions for exercise solutions]
+
+\RequirePackage{enumitem}
+\RequirePackage{kvoptions}
+
+\SetupKeyvalOptions{
+  family=xexercise,
+  prefix=xexercise@
+}
+
+\DeclareStringOption[Exercise]{exerciselabel}
+\ProcessKeyvalOptions*
+
+\newcounter{exercise}
+\stepcounter{exercise}
+
+% Option to reset the exercise label
+\newcommand{\setexerciselabel}[1]
+  {\renewcommand{\xexercise@exerciselabel}{#1}}
+
+% Exercise
+\newenvironment{exercise}[1][\theexercise]
+  {\vspace{2mm}\noindent {\bfseries \xexercise@exerciselabel\, #1. }}
+  {\stepcounter{exercise}}
+
+% Exercise items ((a), (b), (c), ...)
+\newenvironment{exerciseitems}
+  {\begin{enumerate}[label={\bfseries(\alph*)}]}
+  {\end{enumerate}}
+
+\endinput
+