2

In some cases, text under underbrace look distant. Hence, I want to shift the text under underbrace in y-axis.

Using \usepackage{newtxmath} (based on How to write absolute value symbol in subscript of a subscript?) causes arrow to look more like a straight line and generates more space in between underbrace and its label.

\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage{amsmath}
\usepackage{newtxmath}
\newcommand{\function}{\mathrm}
\newcommand{\require}[1]{\function{require(#1)}}
\begin{document}
    \phantom{} \\
    \(\underbrace{b_{D}}_{a}\)
\end{document}

output:

enter image description here

Here if possible, I want to shift a little closer to tip of the underbrace (shift to north) till it has a cramped "look".

wanted output example:

enter image description here

alper
  • 1,389
  • Just out of curiosity: What's the use case for creating a rather cramped "look"? – Mico Sep 26 '22 at 10:51
  • 1
    I have a equation in one-column, I just wanted to save some space. I have start using \usepackage{newtxmath} based on https://tex.stackexchange.com/a/657756/127048 and the underbrach looks much more horizontal line, hence that have more space in between the arrow and its label – alper Sep 26 '22 at 11:00

1 Answers1

3

Something like this?

enter image description here

\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage{amsmath,newtxtext,newtxmath}
\begin{document}
$
\underbrace{b_{D}}_{a} 
\underset{\raisebox{-1.55ex}{$\scriptstyle a$}}{\smash[b]{\underbrace{b_{D}}_{}}}
\underbrace{b_{D}}_{[C]} 
\underset{\raisebox{-1.95ex}{$\scriptstyle [C]$}}{\smash[b]{\underbrace{b_{D}}_{}}}
$
\end{document}
Mico
  • 506,678