dotfiles

My personal dotfiles

commit 3dd7ab8856cb58df3624e39cbfc5c47af984e1d5
parent 8ae1a63723a12aedbec7d2e1844e238b663a8317
Author: Pablo Emilio Escobar Gaviria <pablo-escobar@riseup.net>
Date:   Fri, 29 Jan 2021 14:55:51 +0000

Added the TexLive configuration files to the repository again

Diffstat:
M.local/share/configs.list | 1+
A.local/share/texmf/tex/latex/capitalgreekall.sty | 19+++++++++++++++++++
A.local/share/texmf/tex/latex/functional.sty | 50++++++++++++++++++++++++++++++++++++++++++++++++++
A.local/share/texmf/tex/latex/preamble.tex | 86+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.local/share/texmf/tex/latex/xalgebra.sty | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
A.local/share/texmf/tex/latex/xexercise.sty | 33+++++++++++++++++++++++++++++++++
6 files changed, 241 insertions(+), 0 deletions(-)
diff --git a/.local/share/configs.list b/.local/share/configs.list
@@ -13,3 +13,4 @@
 /home/pablo/.config/tmux
 /home/pablo/.local/bin/exports.sh
 /home/pablo/.local/share/configs.list
+/home/pablo/.local/share/texmf/tex/latex
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,50 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{functional}
+  [2020/09/10 1.0.0 Usefull definitions for Category Theory]
+
+\RequirePackage{amssymb}
+\RequirePackage{amsmath} % For the \DeclareMathOperator
+\RequirePackage{xfrac}   % For \sfrac
+
+% Define symbols for categories
+\newcommand{\categoryname}[1]{\ensuremath{\mathbf{#1}}}
+\newcommand{\newcategory}[2]{\newcommand{#1}{\categoryname{#2}}}
+\newcommand{\renewcategory}[2]{\renewcommand{#1}{\categoryname{#2}}}
+
+% Generic stuff
+\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
+\DeclareMathOperator{\coker}{coker} % Cokernel
+\newcommand{\normal}{\triangleleft} % A normal subobject in a pointed cathegory
+\newcommand{\mfrac}[2]{{{\Large{\sfrac{{#1}}{{#2}}}}}} % Quotient object
+
+% 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{\ot}{\leftarrow}        % Reversed morphism
+\newcommand{\Ot}{\Leftarrow}        % Reversed natural transformation
+\newcommand{\fmapsto}[1]
+  {\overset{#1}{\longmapsto}}       % Map declaration
+
+% Notable categories
+\newcategory{\Set}{Set}       % The category of sets
+\newcategory{\Grp}{Grp}       % The category of groups
+\newcategory{\Ab}{Ab}         % The category of abelian groups
+\newcategory{\Ring}{Ring}     % The category of rings
+\newcategory{\cRing}{cRing}   % The category of commutative rings
+\newcategory{\Top}{Top}       % The category of topological spaces
+\newcategory{\GrpTop}{GrpTop} % The category of topological groups
+\newcategory{\Cat}{Cat}       % The category of (small) categories
+% The category of vector spaces over a (parameterized) field
+\newcommand{\Vect}[1]
+  {\ensuremath{#1\operatorname{-}\!\categoryname{Vect}}}
+% The category of modules over a (parameterized) ring
+\newcommand{\Mod}[1]
+  {\ensuremath{#1\operatorname{-}\!\categoryname{Mod}}}
+
+\endinput
diff --git a/.local/share/texmf/tex/latex/preamble.tex b/.local/share/texmf/tex/latex/preamble.tex
@@ -0,0 +1,86 @@
+%                                 _     _       _            
+%  _ __  _ __ ___  __ _ _ __ ___ | |__ | | ___ | |_ _____  __
+% | '_ \| '__/ _ \/ _` | '_ ` _ \| '_ \| |/ _ \| __/ _ \ \/ /
+% | |_) | | |  __/ (_| | | | | | | |_) | |  __/| ||  __/>  < 
+% | .__/|_|  \___|\__,_|_| |_| |_|_.__/|_|\___(_)__\___/_/\_\
+% |_|                                                        
+% 
+% Pablo Emilio Escobar Gaviria (C) 2020
+
+\documentclass[a4paper]{article}
+\usepackage[total={6in, 9in}]{geometry}
+\usepackage{amsmath, amssymb, amsthm, stmaryrd, mathrsfs, gensymb, dsfont}
+\usepackage{enumitem, xfrac, xcolor, cancel, multicol, tabularx, relsize}
+\usepackage{hyperref, cleveref, lipsum}
+\usepackage{xalgebra, functional, capitalgreekall}
+\usepackage{ytableau}
+\usepackage[exerciselabel=Exercício]{xexercise}
+\usepackage{pgfplots, tikz, tikz-cd}
+\usepackage{graphicx, wrapfig}
+\usepackage{xparse}
+\usepackage[normalem]{ulem}
+\usepackage[brazil]{babel}
+
+% 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 inequality symbols
+\renewcommand{\leq}{\leqslant}
+\renewcommand{\le}{\leqslant}
+\renewcommand{\geq}{\geqslant}
+\renewcommand{\ge}{\geqslant}
+\renewcommand{\preceq}{\preccurlyeq}
+\renewcommand{\succeq}{\succcurlyeq}
+
+% 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}
+
+% 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|}
+
+% Empty macro (it's usefull for typesetting Young diagrams)
+\newcommand{\void}{ }
+
diff --git a/.local/share/texmf/tex/latex/xalgebra.sty b/.local/share/texmf/tex/latex/xalgebra.sty
@@ -0,0 +1,52 @@
+\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
+\RequirePackage{mathrsfs} % For \mathscr
+
+% Generic stuff
+\newcommand{\abs}[1]{\left|\nobreak#1\nobreak\right|} % Absolute values
+
+% 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{\KK}{\mathbb{K}}   % Generic field
+\newcommand{\FF}{\mathbb{F}}   % Generic (finite) field
+\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{\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{\base}{\mathscr B}     % Vectorspace base
+\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
+\DeclareMathOperator{\Gal}{Gal}  % Galois 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
+