blob: 4cf10824675102ba732ccee57e5ea2ace2a7eb96 (
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
28
29
30
31
32
33
34
35
36
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}
|