summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/misc/linsys.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/misc/linsys.sty')
-rw-r--r--macros/latex/contrib/misc/linsys.sty27
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/latex/contrib/misc/linsys.sty b/macros/latex/contrib/misc/linsys.sty
new file mode 100644
index 0000000000..e8582db9d6
--- /dev/null
+++ b/macros/latex/contrib/misc/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