summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ltxmisc/linsys.sty
blob: e1e43124d152a74fa3fc8ad37ca95f51141cc475 (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