summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/misc/linsys.sty
blob: e8582db9d67311fdadeb44d13ba259cbaeb179a0 (plain)
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
%%%%%%%%%%%%%%%%%%%%%%%
%% 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