summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ytableau
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-13 20:53:21 +0000
committerKarl Berry <karl@freefriends.org>2021-06-13 20:53:21 +0000
commit774cd5dac6a847beded848fd8d2c47d97675ff76 (patch)
tree7305dbb13d1ae25027bb33c5ca1544c75124093d /Master/texmf-dist/source/latex/ytableau
parentb7e5ac45c380741bed7e201ab7a99d213a36e4b7 (diff)
ytableau (13jun21)
git-svn-id: svn://tug.org/texlive/trunk@59580 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ytableau')
-rw-r--r--Master/texmf-dist/source/latex/ytableau/ytableau.dtx53
1 files changed, 40 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/ytableau/ytableau.dtx b/Master/texmf-dist/source/latex/ytableau/ytableau.dtx
index 25fb4ca5e6f..d9d29be8b24 100644
--- a/Master/texmf-dist/source/latex/ytableau/ytableau.dtx
+++ b/Master/texmf-dist/source/latex/ytableau/ytableau.dtx
@@ -18,7 +18,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{ytableau}
-%<package> [2012/08/14 v1.3 Many-featured Young tableaux and Young diagrams]
+%<package> [2021/06/12 v1.4 Many-featured Young tableaux and Young diagrams]
%
%<*driver>
\documentclass{ltxdoc}
@@ -98,7 +98,7 @@
%</driver>
% \fi
%
-% \CheckSum{580}
+% \CheckSum{594}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -147,7 +147,7 @@
% \title{The \textsf{ytableau} package\thanks{This document describes
% \textsf{ytableau}~\fileversion, dated~\filedate.}}
% \author{Ryan Reich\\\texttt{ryan.reich@gmail.com}}
-% \date{August 14th, 2012}
+% \date{June 12th, 2021}
% \maketitle
%
% \tableofcontents
@@ -156,10 +156,10 @@
%
% \section{Y tableau?}
%
-% At present there exist two packages with which one can draw Young tableaux: \textsf{young} and
-% \textsf{youngtab}. As the latter is explicitly an alternative to the former, they do not overlap
-% very much except in what they eventually produce. Between them, they define the following three
-% basic constructions of Young tableaux:
+% At the time this package was first written, there there existed two packages with which one can
+% draw Young tableaux: \textsf{young} and \textsf{youngtab}. As the latter is explicitly an
+% alternative to the former, they do not overlap very much except in what they eventually produce.
+% Between them, they define the following three basic constructions of Young tableaux:
%
% \begin{itemize}
% \item An environment with array-style syntax;
@@ -338,6 +338,11 @@
% |boxsize|=\meta{dimension}. This manually sets the height (and width, which is the same)
% of boxes in all tableaux to \meta{dimension}. If you change the size and want to get back to
% the default (1.5em), just say |boxsize = normal|.
+%
+% \item \DescribeOption{boxframe}
+% |boxframe|=\meta{dimension}. Like |boxsize|, but sets the width of the lines of the frame around
+% the boxes of the tableau to \meta{dimension}. If you change the size and want to get back to the
+% default (0.04em) just say |boxframe = normal|.
%
% \item \DescribeOption{smalltableaux} \DescribeOption{nosmalltableaux}
% |smalltableaux|/|nosmalltableaux|. The first option makes the box size quite small;
@@ -402,7 +407,7 @@
% \end{center}
%
% \begin{center}
-% \ytableausetup{textmode}
+% \ytableausetup{textmode, boxframe=0.1em}
% \begin{ytableau}
% a & d & f \\
% b & e & g \\
@@ -411,7 +416,7 @@
% \hfill
% \begin{minipage}{0.5\textwidth}
% \begin{verbatim}
-% \ytableausetup{textmode}
+% \ytableausetup{textmode, boxframe=0.1em}
% \begin{ytableau}
% a & d & f \\
% b & e & g \\
@@ -423,7 +428,7 @@
%
% \begin{center}
% \ytableausetup
-% {mathmode, boxsize=2em}
+% {mathmode, boxframe=normal, boxsize=2em}
% \begin{ytableau}
% 1 & 2 & 3 & \none[\dots] & \scriptstyle 2n-1 & 2n \\
% 2 & 3 & 4 & \none[\dots] & 2n \\
@@ -435,7 +440,7 @@
% \begin{minipage}{0.5\textwidth}
% \begin{verbatim}
% \ytableausetup
-% {mathmode, boxsize=2em}
+% {mathmode, boxframe=normal, boxsize=2em}
% \begin{ytableau}
% 1 & 2 & 3 & \none[\dots]
% & \scriptstyle 2n - 1 & 2n \\
@@ -655,6 +660,7 @@
% \changes{v1.2}{2012/06/17}{Removed a lot of pointless endline-comments after control sequences and added spaces after numbers.}
% \changes{v1.2}{2012/06/17}{Fixed a bug where the prevailing font size was ignored or imperfectly obeyed.}
% \changes{v1.3}{2012/08/14}{Require sufficiently new \textsf{pgfopts} since v.1 breaks.}
+% \changes{v1.4}{2021/06/12}{Added option |boxframe|.}
%
% \subsection{Global defintions}
%
@@ -772,11 +778,15 @@
%
% \begin{macro}{\boxframe@YT}
% \changes{v1.2}{2012/06/17}{Made a macro.}
-% The font-independent width of the frame in a tableau. Used in |\ytableau| and |\none@YT|.
+% \begin{macro}{\boxframe@normal@YT}
+% \changes{v1.4}{2021/06/12}{Added.}
+% The font-independent "normal" width of the frame in a tableau. Used in option |boxframe|.
% \begin{macrocode}
-\def\boxframe@YT{0.04em}
+\def\boxframe@normal@YT{0.04em}
+\edef\boxframe@YT{\boxframe@normal@YT}
% \end{macrocode}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\boxdim@normal@YT}
% \changes{v1.2}{2012/06/17}{Made a macro.}
@@ -968,6 +978,23 @@
}
\pgfkeys{/ytableau/options,
% \end{macrocode}
+% \begin{option}{boxframe}
+% \changes{v1.4}{2021/06/12}{Added.}
+% Box frame width. Takes a dimension or |normal|.
+% \end{option}
+% \begin{macrocode}
+ boxframe/.value required,
+ boxframe/.code = {%
+ \compare@YT{#1}{normal}%
+ \ifeq@YT
+ \xdef\boxframe@YT{\expandonce@YT\boxframe@normal@YT}%
+ \else
+ \xdef\boxframe@YT{#1}%
+ \fi
+ }
+}
+\pgfkeys{/ytableau/options,
+% \end{macrocode}
% \begin{option}{aligntableaux}
% Most general alignment option, can be any of |top|, |center|, or |bottom|.
% \end{option}