Math & ScienceText alignment in array environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Dominique
Posts: 3
Joined: Mon Sep 10, 2012 3:14 am

Text alignment in array environment

Post by Dominique »

Hey everyone,

I want to make a scale that looks like the one at the top of page 8 of this article: http://ricknouwen.org/rwfn/wp-content/u ... -round.pdf and I've succeeded in creating large square brackets but I can't figure out how to get the gamma between the "alpha-line" and the "beta-line". Right now there is a line between alpha and beta and I don't like the way that looks. This is the code I used:

Code: Select all

$\left< \begin{array}{cc}
\alpha \\  & \gamma \\ \beta \end{array} \right>$
Can anyone help me out?

Thanks in advance!
pict.png
pict.png (2.1 KiB) Viewed 3289 times
Last edited by cgnieder on Mon Apr 08, 2013 7:13 pm, edited 1 time in total.

Recommended reading 2024:

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

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Text alignment in array environment

Post by cgnieder »

There might be better ways but here's an idea:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\newcommand\AoverB[2]{\genfrac{}{}{0pt}{}{#1}{#2}}
\begin{document}

\[
\Biggl\langle \quad \AoverB{\alpha}{\beta} \quad \gamma \quad\Biggr\rangle
\]

\end{document}
You can find details about \genfrac in amsmath or mathmode.

Regards
site moderator & package author
Dominique
Posts: 3
Joined: Mon Sep 10, 2012 3:14 am

Re: Text alignment in array environment

Post by Dominique »

That looks great; thank you very much! :)
Post Reply