Macaulay2 » Documentation
Packages » HookPieri :: youngTex
next | previous | forward | backward | up | index | toc

youngTex -- KaTeX source for a Young tableau, optionally with colored cells

Description

The paper colors the diagonal hooks of a tabloid; passing the fills reproduces that. For instance, the tabloid of Example 1.2.2 with its hook of type $(2,2)$ in blue and its hook of type $(0,0)$ in green is $$\begin{array}{l}\fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{#a8e8a8}{\phantom{|}1\phantom{|}}\\[-2pt]\fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\end{array}$$

i1 : youngTex {{1,3},{2,2}}

o1 = \begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\
     fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black
     }{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2
     \phantom{|}}\end{array}
i2 : youngTex tabloid({3},{1,2})

o2 = \begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\
     fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black
     }{white}{\phantom{|}2\phantom{|}}\end{array}
i3 : youngTex({{1,2,3},{2,1},{3}}, Colors => {{"#b8c8f0","#b8c8f0","#b8c8f0"},{"#b8c8f0","#a8e8a8"},{"#b8c8f0"}})

o3 = \begin{array}{l}\fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\!\
     fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{#
     b8c8f0}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{#b8c8f0}{\
     phantom{|}2\phantom{|}}\!\fcolorbox{black}{#a8e8a8}{\phantom{|}1\phantom
     {|}}\\[-2pt]\fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\end{
     array}

See also

Ways to use youngTex:

  • youngTex(HookTabloid)
  • youngTex(List)

For the programmer

The object youngTex is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/HookPieri/doc.m2:1474:0.