von Guelakais » Mo 24. Jul 2023, 13:45
meine lieben,
ein freund von mir hat sich beschwert, dass die Syntax für Matrizen LaTeX amsmath einfach zu kompliziert sei. Da ich auch erstmal nichts anderes gefunden habe, habe ich kurzerhand ein package geschrieben, um dem entgegen zu treten:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{betterMatrices}[betterMatrices]
\RequirePackage{amsmath}
\newcommand{\pmatrixN}[1]{
\begin{pmatrix}
#1
\end{pmatrix}}
\newcommand{\matrixN}[1]{
\begin{matrix}
#1
\end{matrix}}
\newcommand{\bmatrixN}[1]{
\begin{bmatrix}
#1
\end{bmatrix}}
\newcommand{\BmatrixN}[1]{
\begin{Bmatrix}
#1
\end{Bmatrix}}
\newcommand{\vmatrixN}[1]{
\begin{vmatrix}
#1
\end{vmatrix}}
\newcommand{\VmatrixN}[1]{
\begin{Vmatrix}
#1
\end{Vmatrix}}
\newcommand{\lAngleMatrix}[1]{
\left\langle \begin{matrix}
#1
\end{matrix} \right\rangle}
Gibt es bereits offizielle packages, die das Problem auf ähnliche Weiße lösen?
Beste Grüße
meine lieben,
ein freund von mir hat sich beschwert, dass die Syntax für Matrizen LaTeX amsmath einfach zu kompliziert sei. Da ich auch erstmal nichts anderes gefunden habe, habe ich kurzerhand ein package geschrieben, um dem entgegen zu treten: [code]
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{betterMatrices}[betterMatrices]
\RequirePackage{amsmath}
\newcommand{\pmatrixN}[1]{
\begin{pmatrix}
#1
\end{pmatrix}}
\newcommand{\matrixN}[1]{
\begin{matrix}
#1
\end{matrix}}
\newcommand{\bmatrixN}[1]{
\begin{bmatrix}
#1
\end{bmatrix}}
\newcommand{\BmatrixN}[1]{
\begin{Bmatrix}
#1
\end{Bmatrix}}
\newcommand{\vmatrixN}[1]{
\begin{vmatrix}
#1
\end{vmatrix}}
\newcommand{\VmatrixN}[1]{
\begin{Vmatrix}
#1
\end{Vmatrix}}
\newcommand{\lAngleMatrix}[1]{
\left\langle \begin{matrix}
#1
\end{matrix} \right\rangle}
[/code]
Gibt es bereits offizielle packages, die das Problem auf ähnliche Weiße lösen?
Beste Grüße