1 2 3 4 5 6 7 8 9 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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
% schulmathematik bundle: package schulma
% Version 1.3
% 12. August 2022
\ProvidesExplPackage{schulma}{2022-08-12}{1.3}{Befehle für die Schulmathematik}
\RequirePackage [intlimits] {mathtools}
\RequirePackage {autoaligne}
\RequirePackage {icomma}% verträgt sich nicht mit libertinus-otf
\RequirePackage {pgfplots}
\ExplSyntaxOff
\usetikzlibrary{shapes.misc}
\ExplSyntaxOn
\pgfplotsset
{
compat = newest ,
axis~lines = middle ,
label~style =
{
font = \small
},
ticklabel~style =
{
font = \footnotesize ,
/pgf/number~format/use~comma ,
/pgf/number~format/fixed
},
tick~style = {thick} ,
scaled~ticks = false ,
every~axis~plot/.append~style =
{
semithick
}
}
\NewDocumentEnvironment {Kosy} {o}
{
\tl_set:Nn \l_tmpa_tl
{
xlabel = {$x$} , ylabel = {$y$} ,
minor~tick~num = 1 , minor~tick~length = 0pt ,
grid = both
}
\begin {tikzpicture}
\IfValueTF {#1}
{
\begin {axis} [ \l_tmpa_tl , #1 ]
}
{
\begin {axis} [\l_tmpa_tl]
}
}
{
\end {axis}
\end {tikzpicture}
}
\NewDocumentCommand \LGS {m}
{
\ensuremath
{
\left |
\,
\autoaligne {#1}
\,
\right |
}
}
\tl_new:N \g_schulma_eulersche_zahl_tl
\tl_new:N \g_schulma_differential_tl
\AtBeginDocument
{
\tl_gset:Nx \g_schulma_eulersche_zahl_tl
{
\@ifpackageloaded {euler} {e} { \exp_not:N \mathrm {e} }
}
\tl_gset:Nx \g_schulma_differential_tl
{
\@ifpackageloaded {euler} {d} { \exp_not:N \mathrm {d} }
}
}
\NewDocumentCommand \ehoch {m}
{
\g_schulma_eulersche_zahl_tl ^ {#1}
}
\NewDocumentCommand \diff {m}
{
\g_schulma_differential_tl
#1
}
\NewDocumentCommand \Pkt {o m m}
{
\ensuremath
{
\IfValueT {#1} {#1}
\mathopen {} % Zusatzabstand entfernen
\left( {#2} \, \middle| \, {#3} \right)
}
}
\NewDocumentCommand \PktR {o m m m}
{
\ensuremath
{
\IfValueT {#1} {#1}
\mathopen {} % Zusatzabstand entfernen
\left( {#2} \, \middle| \, {#3} \, \middle| \, {#4} \right)
}
}
\NewDocumentCommand \Vek {m m m}
{
\ensuremath
{
\begin {pmatrix}
#1 \\ #2 \\ #3
\end {pmatrix}
}
}
\NewDocumentCommand \VekBr {m m m}
{
\ensuremath
{
\begin {pmatrix}
#1 \\[0,5ex] #2 \\[0,5ex] #3
\end {pmatrix}
}
}
\NewDocumentCommand \GTRY {mo}
{
\texttt { Y \textsubscript {#1} }
\IfValueT {#2} { \texttt {=} \, \ensuremath {#2} }
}
% Knotentyp zum Setzen von Kreuzen ins Koordinatensystem:
\tikzset
{
Kreuz/.style =
{
cross~out ,
draw ,
minimum~size = 5pt ,
inner~sep = 0pt ,
outer~sep = 0pt
}
}
|