move figure handling (tikz, pgf etc) into own package

This commit is contained in:
Maximilian Keßler 2021-09-09 21:46:33 +02:00
parent 1808a78541
commit 7efb15abe6

25
math/mkessler-mathfig.sty Normal file
View File

@ -0,0 +1,25 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mkessler-mathfig}[2021/03/31 - Math figures with TikZ / pgfplots / xy]
%%%%%%%%
% This is just a collection of the packages I use to typeset mathematical figures
% most commonly plots, commutative diagrams or geometry
\RequirePackage{pgfplots} % Plots
\pgfplotsset{compat=1.7}
\RequirePackage{tikz} % Plots / drawings
\usetikzlibrary{calc, intersections, through, quotes, angles, babel, positioning, snakes}
\RequirePackage{tikz-cd} %Commutative diagrams
%%for small diagrams, similar to tikz-cd
\RequirePackage[all]{xy} % for small diagrams, e.g. arrows
%%% In older versions, you found
% \RequirePackage{xy}
% \xyoption{all}
% here, but this messes with the catcode of the @ sign (which no package should do!)
% so that further parts in this package would get broken