latex-setup

My personal LaTeX setup 🦁️⚙️

NameSizeMode
..
xgeometry.sty 2717B -rw-r--r--
01
02
03
04
05
06
07
08
09
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
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{xgeometry}[2021/02/09 1.0.0 Usefull definitions for Riemannian
geometry and Lie groups/algebras]

\RequirePackage{amssymb}  % For the standard sets
\RequirePackage{amsmath}  % For \DeclareMathOperator
\RequirePackage{tikz}     % For \tikzset

% Smooth manifolds
\DeclareMathOperator{\Der}{Der}   % Algebra of formal derivations on a manifold

% Riemannian geometry
\newcommand{\g}{\mathrm{g}}     % Reimannian metric
\DeclareMathOperator{\Iso}{Iso} % Isometry group
\DeclareMathOperator{\Hol}{Hol} % Holonomy group

% Diferential forms
\newcommand{\exterior}{\mathrm{d}} % The exterior derivative
\newcommand{\dd}{\exterior}        % Alias for \exterior
\newcommand{\dx}{\exterior x}      % dx
\newcommand{\dy}{\exterior y}      % dy
\newcommand{\dz}{\exterior z}      % dz
\newcommand{\dt}{\exterior t}      % dt

% Lie groups and algebras
\DeclareMathOperator{\GL}{GL}       % General linear group
\DeclareMathOperator{\SL}{SL}       % Simple linear group
\DeclareMathOperator{\SO}{SO}       % Simple orthogonal group
\DeclareMathOperator{\SU}{SU}       % Simple unitary group
\DeclareMathOperator{\Sp}{Sp}       % Sympletic group
\newcommand{\PR}{\mathbb{PR}}       % Projective real group
\newcommand{\RP}{\mathbb{RP}}       % Projective real group
\newcommand{\PC}{\mathbb{PC}}       % Projective complex group
\newcommand{\CP}{\mathbb{CP}}       % Projective complex group
\DeclareMathOperator{\PGL}{PGL}     % Projective general linear group
\DeclareMathOperator{\PSL}{PSL}     % Projective general linear group
\newcommand{\gl}{\mathfrak{gl}}     % Lie algebra of \GL
\renewcommand{\sl}{\mathfrak{sl}}   % Lie algebra of \SL
\newcommand{\so}{\mathfrak{so}}     % Lie algebra of \SO
% The following is ommited because \sp is a spacing character
% \renewcommand{\sp}{\mathfrak{sp}} % Lie algebra of \Sp
\newcommand{\pr}{\mathfrak{pr}}     % Lie algebra of \PR
\newcommand{\rp}{\mathfrak{rp}}     % Lie algebra of \RP
\newcommand{\pc}{\mathfrak{pC}}     % Lie algebra of \PC
\newcommand{\cp}{\mathfrak{cp}}     % Lie algebra of \CP
\newcommand{\pgl}{\mathfrak{pgl}}   % Lie algebra of \PGL
\newcommand{\psl}{\mathfrak{psl}}   % Lie algebra of \PSL

% Representation theory of Lie groups and algebras
\DeclareMathOperator{\Ad}{Ad}
\DeclareMathOperator{\ad}{ad}

% Projective spaces
\renewcommand{\RP}{{\mathbb{R}\mathrm{P}}}
\renewcommand{\CP}{{\mathbb{C}\mathrm{P}}}

% Double Hat! (for Pontryagin duals of Pontryagin duals)
\makeatletter
\newcommand{\doublehat}[1]{% 
\begingroup%
  \let\macc@kerna\z@%
  \let\macc@kernb\z@%
  \let\macc@nucleus\@empty%
  \widehat{\raisebox{.5ex}{\vphantom{\ensuremath{#1}}}\smash{\widehat{#1}}}%
\endgroup%
}
\makeatother