summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/jknappen/young.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/jknappen/young.sty
Initial commit
Diffstat (limited to 'macros/latex/contrib/jknappen/young.sty')
-rw-r--r--macros/latex/contrib/jknappen/young.sty37
1 files changed, 37 insertions, 0 deletions
diff --git a/macros/latex/contrib/jknappen/young.sty b/macros/latex/contrib/jknappen/young.sty
new file mode 100644
index 0000000000..4cf1082467
--- /dev/null
+++ b/macros/latex/contrib/jknappen/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}