Math & ScienceYoung tableaux

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Yrg
Posts: 5
Joined: Mon Dec 13, 2010 7:28 pm

Young tableaux

Post by Yrg »

Hello everyone,
I'm using the command \begin{young} and \end{young} in order to draw Young tableaux in Latex. Is it possible to put these tableaux in vertical centering?
(I know that using the command \yng solves the problem in the case I don't need to put symbols in the tableaux, but since I precisely need to do this, I'm stucked with the command \begin{young} and thus with this problem of display)
Thanks for your answers and sorry for all the spelling and grammatical mistakes, english is not my first language :).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Young tableaux

Post by frabjous »

What package are you using? The youngtab package has a vcentermath option:

\usepackage[vcentermath]{youngtab}

See its documentation (with the link above).

If that's not what you want, or not the package you're using, please provide a minimal working example showing the problem.
Yrg
Posts: 5
Joined: Mon Dec 13, 2010 7:28 pm

Re: Young tableaux

Post by Yrg »

Here is a working example. I tried both ways but as you can see, the tableaux are not centered. Thank you for your response.

\documentclass[a4paper, 10pts]{report}
\pagestyle{headings}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{float}
\usepackage{young}
\usepackage[vcentermath]{youngtab}
\begin{document}
$
yxxx
\begin{Young}
a & b \cr
h \cr
\end{Young}
$
or
$
\Yvcentermath1
yxxx
\begin{Young}
a & b \cr
h \cr
\end{Young}
$
\end{document}
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Young tableaux

Post by frabjous »

The Young environment is from the young package, but obviously the vcentermath and \Yvcentermath1 only applies to the stuff from the youngtab package.

You can use the \young command (lowercase) to generate labeled Young tableaux with the youngtab package.

For me, this one is centered vertically:

Code: Select all

\documentclass[a4paper, 10pts]{report}
\usepackage[vcentermath]{youngtab}
\begin{document}

some text
$
yxxx\ \young(ab,h)
$

\end{document}
(I took out the unrelated usepackage lines...)

Again, it would be helpful to read its documentation. I've no first-hand experience with this, and I don't know whether or not this will suffice for your needs.
Yrg
Posts: 5
Joined: Mon Dec 13, 2010 7:28 pm

Re: Young tableaux

Post by Yrg »

Okay, I get it. The problem was to put symbols into the boxes and I was sure I had to use the other environment. In fact, I read your reference and found out a way to solve the problem. For example, the following code is giving me the desired result.

\documentclass[a4paper, 10pts]{report}
\usepackage[vcentermath]{youngtab}
\newcommand{\barone}{$\bar{1}$}
\newcommand{\bartwo}{$\bar{2}$}
\begin{document}

some text
$
\Ystdtext1
yxxx \young(\barone\bartwo,a)
$
\end{document}

As you can see, I have to add a command whenever I want to put a new symbol into a tableau. I'm not sure if this solution is optimal, in the sense that maybe I got something wrong, but it's working perfectly and that's all I need!

Anyway, thank you very much for your time, I'll try to read more before asking next time:). Sometimes in english it's difficult though.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Young tableaux

Post by frabjous »

No problem -- and from what I gather from the documentation, you're doing it exactly how you should be doing it.
Post Reply