4

I would like to draw Young diagrams with LyX.

I found the LaTeX package yountab which allows me to draw such diagrams in LaTeX, but I have no idea how to install it on LyX.

How should I go about drawing Young diagrams using LyX?

11

I’m not familiar with Young tableaux and diagrams, but I think the package ytableau is better and more fully developed than youngtab.

In order to use it in LyX you need:

  1. Add \usepackage{ytableau} in the preamble (Document → Settings… → LaTeX Preamble (last one)).
  2. Wherever you want to add a Young tableau use ERT (LaTeX inside LyX, Ctrl+l shortcut) and add whatever code you want (ytableau documentation is available here).

Maybe there is a more LyXish way to do that. I don’t use LyX.

Example:

LyX screenshot

LyX output

I hope that helps you ☺

  • What is meaning of cr? Line when writing matrices, we end one row by double-slash; similarly, when closing one row in tableaux, I think cr is used; but I want to know its long-form. – Soluble Sep 25 at 8:10
7

(This builds on Júda's answer, which you should accept, but is a bit too long for a comment.)

You can make the diagrams easier to edit in LyX using this dirty hack. After the \usepackage command in the preamble, add this:

\renewenvironment{bmatrix}{\begin{ytableau}}{\end{ytableau}}

Usually, the bmatrix environment will create a matrix with square brackets around it. This command changes it to make a Young tableau instead. (You can still get a matrix with square brackets by inserting the brackets separately from the matrix.) Now you can create your diagram by typing \bmatrix and pressing space in a math equation, then using the toolbar buttons to add rows and columns. For example, if you put this into an equation:

editing a ytableu

then you'll get an output like this (if you have instant preview turned on then it'll appear as soon as you take your cursor out of the equation):

previewing a ytableu

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.