diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ltxmisc/linsys.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ltxmisc/linsys.sty | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/linsys.sty b/Master/texmf-dist/tex/latex/ltxmisc/linsys.sty new file mode 100644 index 00000000000..e1e43124d15 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ltxmisc/linsys.sty @@ -0,0 +1,27 @@ +%%%%%%%%%%%%%%%%%%%%%%% +%% Copyleft +%% Walter A. Kehowski +%% Department of Mathematics +%% Glendale Community College +%% walter.kehowski@gcmail.maricopa.edu +%% \begin{linsys}{2} +%% -x & + & 4y & = & 8\\ +%% -3x & - & 2y & = & 6 +%% \end{linsys} +%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage{array} % TLC p465 +\RequirePackage{pifont} +\makeatletter +%% math-mode column types ------------------ +\newcolumntype{\@R}{>{$}r<{$}} +\newcolumntype{\@L}{>{$}l<{$}} +\newcolumntype{\@C}{>{$}c<{$}} +\newcounter{@dingctr} +\newcommand{\@wding}{\ding{\value{@dingctr}}\stepcounter{@dingctr}} +\newcommand{\@dinglabel}{\@wding} +\newenvironment{linsys}[1]{% +\setcounter{@dingctr}{192}% +\begin{tabular}{!{\@dinglabel}*{#1}{\@R\@C}\@R}}% +{\end{tabular}\setcounter{@dingctr}{192}} +\makeatother +\endinput |