Debian Codegraph @

texmf-dist/tex/latex/jknapltx/young.sty

raw
1 % YOUNG.STY by J"org Knappen 7-feb-1992
2 % Licence: GNU licence version 2
3 % based on YOUNG.TEX
4 % macro to make Young tableaux
5 % by: Paul E. S. Wormer <U644301@HNYKUN11>
6 % \magnification=\magstep1
7 %
8 \newdimen\hoogte \hoogte=12pt % hoogte van hokje
9 \newdimen\breedte \breedte=14pt % breedte van hokje
10 \newdimen\dikte \dikte=0.5pt % dikte lijn
11 \def\beginYoung{
12 \begingroup
13 \def\vr{\vrule height0.8\hoogte width\dikte depth 0.2\hoogte}
14 \def\fbox##1{\vbox{\offinterlineskip
15 \hrule height\dikte
16 \hbox to \breedte{\vr\hfill##1\hfill\vr}
17 \hrule height\dikte}}
18 \vbox\bgroup \offinterlineskip \tabskip=-\dikte \lineskip=-\dikte
19 \halign\bgroup &\fbox{##\unskip}\unskip \crcr }
20 %
21 \def\End@Young{\egroup\egroup\endgroup}
22 \newenvironment{Young}{\beginYoung}{\End@Young}
23 \endinput
24 %
25 example of use of the macro to make Young tableaux
26 Example:
27 \documentclass{article}
28 \usepackage{young}
29 \begin{document}
30 This is a Young tableau:
31 \begin{Young}
32 1 & 2 & 3\cr
33 4 & 5 \cr
34 6 & 7 \cr
35 8 \cr
36 \end{Young}
37 \end{document}