enter image description here

I want to show simple summing like in the picture, without using colors. But I've no idea, that's not a undercase command.

  • 1
    You can use mathtools package that have these specific braces.
    – Sebastiano
    Aug 28, 2022 at 11:29

1 Answer 1


Here is a solution using tikzmark. Note that you must compile the document twice.

enter image description here

Define a new command \nub (nested under-bracket). The usage is \nub{<level>}{<content>}.

The levels must be non-repeating integers, and must range from 1 to the number of brackets. The brackets will cross if they are out of order. Spacing between brackets is controlled globally by \unitht, currently set to .8ex.

If you use more than one nub sequence in the document, each sequence must have its own "prefix". As stated in the screenshot, you must redefine \nubpre using \renewcommand{\nubpre}{<prefix>}.

Here is the code for the screenshot above:



    \begin{tikzpicture}[remember picture,overlay]
        \draw (pic cs:a\nubpre#1) --++(0,-#1*\unitht) -| (pic cs:b\nubpre#1);


You must choose a different nub prefix for each subsequent use
using \verb`\renewcommand{\nubpre}{<prefix>}`. The default prefix is \verb`A`.


You must log in to answer this question.

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