diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:57:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:57:21 +0000 |
commit | 5ab48c515e7f18de489791d28188b43a389fe4c8 (patch) | |
tree | d11d232a328cd0436ccd36c402481be300e6d1e1 /Master/texmf-dist/tex/latex/jknapltx/young.sty | |
parent | 350ddf44c5a7b4a3fd69591394cd828cd6518eb3 (diff) |
jknapltx
git-svn-id: svn://tug.org/texlive/trunk@1006 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jknapltx/young.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/jknapltx/young.sty | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/jknapltx/young.sty b/Master/texmf-dist/tex/latex/jknapltx/young.sty new file mode 100644 index 00000000000..4cf10824675 --- /dev/null +++ b/Master/texmf-dist/tex/latex/jknapltx/young.sty @@ -0,0 +1,37 @@ +% YOUNG.STY by J"org Knappen 7-feb-1992 +% Licence: GNU licence version 2 +% based on YOUNG.TEX +% macro to make Young tableaux +% by: Paul E. S. Wormer <U644301@HNYKUN11> +% \magnification=\magstep1 +% +\newdimen\hoogte \hoogte=12pt % hoogte van hokje +\newdimen\breedte \breedte=14pt % breedte van hokje +\newdimen\dikte \dikte=0.5pt % dikte lijn +\def\beginYoung{ + \begingroup + \def\vr{\vrule height0.8\hoogte width\dikte depth 0.2\hoogte} + \def\fbox##1{\vbox{\offinterlineskip + \hrule height\dikte + \hbox to \breedte{\vr\hfill##1\hfill\vr} + \hrule height\dikte}} + \vbox\bgroup \offinterlineskip \tabskip=-\dikte \lineskip=-\dikte + \halign\bgroup &\fbox{##\unskip}\unskip \crcr } +% +\def\End@Young{\egroup\egroup\endgroup} +\newenvironment{Young}{\beginYoung}{\End@Young} +\endinput +% +example of use of the macro to make Young tableaux +Example: + \documentclass{article} + \usepackage{young} + \begin{document} + This is a Young tableau: + \begin{Young} + 1 & 2 & 3\cr + 4 & 5 \cr + 6 & 7 \cr + 8 \cr + \end{Young} + \end{document} |