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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
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