6

I'm writing a math proof and need to expand an exponentiation into n multiplications. I would like to have something like:

A x A x A x A ........... A x A x A

with a largy curly bracket open upwards around the whole thing saying "n times" Is there some way to do this?

2
  • Welcome to TeX.SE! I don't really understand what your intended output is. Maybe you can draw a sketch, or make a screenshot from a book or paper where this is done, and add this to your question? Also, for potential answerers to try things out it would be helpful if you would provide the code for a small example document that contains this expression (but without the brackets etc.), that makes it easier to provide an answer and also it would increase the probability that the solution is actually something that you can use in your real document.
    – Marijn
    Mar 20, 2020 at 12:49
  • 2
    @Marijn - I think the OP is looking for the \overbrace macro...
    – Mico
    Mar 20, 2020 at 12:52

3 Answers 3

8

Like this?

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
    \underbrace{A \times A \times A \times \dots \times A}_{n \text{ times}}
\end{equation}
\end{document}
6

I think you're looking to use the \overbrace{...}^{...} macro.

enter image description here

\documentclass{article}
\usepackage{amsmath}  % for '\overbrace' macro
\begin{document}
\[
\overbrace{A\times A\times\dots\times A\times A}^{\text{$n$ times}}
\]
\end{document}
4

For later, and if you have a lot of them, lmake package does nice patterns.

MWE

\documentclass{article}
\usepackage{amsmath}
\usepackage{lmake}
\begin{document}
\Large

\[ \lmake[A_{\i}, \!] \]

\[ \lmake[A_{\i}, \,] \]

\[ \lmake[{A_{\i}}, \times] \]

\[ \lmake[\left(\frac{\i}{\i+1}\right),\!]\]

\end{document}

example

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .