Math & ScienceExpression like binomial Coefficient with Angle Delimiters

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Richard_B
Posts: 4
Joined: Mon May 28, 2012 4:37 am

Expression like binomial Coefficient with Angle Delimiters

Post by Richard_B »

I want to typest a binomial coefficient but using angle brackets instead of round parentheses. This notation is used in the book "Counting: The Art of Enumerative Combinatorics" by George E. Martin to denote "n choose r with repetition."

I tried

Code: Select all

$\left\langle\begin{array}{c} n \\ r \end{array}\right\rangle$
but that was too big and didn't look right. I also tried

Code: Select all

$\langle \stackrel{n}{r} \rangle$
but that didn't look right either.

If anyone has a solution to this, please let me know.
Last edited by localghost on Tue May 29, 2012 6:26 pm, edited 2 times in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Expression like binomial Coefficient with Angle Delimiters

Post by Stefan Kottwitz »

Hi Richard,

welcome to the board!

You could use \genfrac of amsmath and define your own macro.

Code: Select all

\documentclass[a4paper]{article}
\usepackage{amsmath}

\DeclareRobustCommand{\abinom}{\genfrac{\langle}{\rangle}{0pt}{}}

\begin{document}
  \[
    \abinom{n}{r}
  \]
\end{document}
Stefan
LaTeX.org admin
Richard_B
Posts: 4
Joined: Mon May 28, 2012 4:37 am

Re: Expression like binomial Coefficient with Angle Delimite

Post by Richard_B »

Hi Stefan,

Thank you. That works perfectly and is exactly what I needed.
Post Reply