62 lines
1.8 KiB
TeX
62 lines
1.8 KiB
TeX
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{jrpie-math}[2022/01/30 - Main math package.]
|
|
|
|
|
|
% Collects the basic math packages used for my lecture-note write-ups
|
|
% This just imports all the packages I use for writing up mathematics
|
|
% Probably, you will just want to load them separately for more
|
|
% customization
|
|
|
|
\RequirePackage{xkeyval}
|
|
|
|
\newif\ifmkessler@math@english\mkessler@math@englishtrue
|
|
\DeclareOptionX{german}{\mkessler@math@englishfalse}
|
|
\DeclareOptionX{ngerman}{\mkessler@math@englishfalse}
|
|
\DeclareOptionX{english}{\mkessler@math@englishtrue}
|
|
|
|
\DeclareOptionX*{\PackageWarning{mkessler-math}{Unknown '\CurrentOption'}}
|
|
\ProcessOptionsX*\relax
|
|
|
|
|
|
%%%% Import the other custom math packages
|
|
\RequirePackage{mkessler-mathfont} % Load this first to ensure untouched fonts
|
|
|
|
\RequirePackage{amsmath}
|
|
\RequirePackage{mathtools}
|
|
\RequirePackage{amsthm}
|
|
\RequirePackage{amssymb}
|
|
|
|
\RequirePackage{latexsym}
|
|
|
|
% Für Formeln
|
|
\RequirePackage{mathabx}
|
|
\RequirePackage{esint}
|
|
|
|
\RequirePackage{IEEEtrantools}
|
|
\RequirePackage[ngerman,ruled,vlined]{algorithm2e}
|
|
|
|
|
|
%%% Importing other custom packages
|
|
\RequirePackage{mkessler-faktor}
|
|
\RequirePackage{mkessler-mathsymb}
|
|
\RequirePackage[extended]{mkessler-mathalias}
|
|
\RequirePackage{mkessler-refproof}
|
|
|
|
% mkessler-mathfont has already been imported
|
|
\RequirePackage[\ifmkessler@math@english english\else german\fi]{mkessler-mathop}
|
|
\RequirePackage{mkessler-categories}
|
|
\RequirePackage{mkessler-mathfig}
|
|
\RequirePackage{mkessler-unicodechar}
|
|
\RequirePackage{mkessler-mathfixes} % Load this last since it renews behaviour
|
|
\DeclareMathOperator{\inter}{int} % interior
|
|
\newcommand{\defon}[1]{|_{#1}} % TODO
|
|
|
|
\RequirePackage[super]{nth}
|
|
|
|
% TODO MOVE
|
|
% https://tex.stackexchange.com/a/94702
|
|
\newenvironment{absolutelynopagebreak}
|
|
{\par\nobreak\vfil\penalty0\vfilneg
|
|
\vtop\bgroup}
|
|
{\par\xdef\tpd{\the\prevdepth}\egroup
|
|
\prevdepth=\tpd}
|