summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ytableau/ytableau.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-14 03:01:12 +0000
committerNorbert Preining <norbert@preining.info>2021-06-14 03:01:12 +0000
commit269940e8e52b921a855083542b9e1109af49af09 (patch)
treeba8b7431f6e4878661215e5a6127aba941f5d711 /macros/latex/contrib/ytableau/ytableau.dtx
parent2ba4b1ac7860085c0b259aacb0d99bd2c730edbc (diff)
CTAN sync 202106140301
Diffstat (limited to 'macros/latex/contrib/ytableau/ytableau.dtx')
-rw-r--r--macros/latex/contrib/ytableau/ytableau.dtx53
1 files changed, 40 insertions, 13 deletions
diff --git a/macros/latex/contrib/ytableau/ytableau.dtx b/macros/latex/contrib/ytableau/ytableau.dtx
index 25fb4ca5e6..d9d29be8b2 100644
--- a/macros/latex/contrib/ytableau/ytableau.dtx
+++ b/macros/latex/contrib/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}