How can I place some text centered below other text on the line?
I want to create similar to results to what is found in the ruby package, but instead of placing text above, the extra text is put below the baseline text. In the source code (see ruby.sty), I think I have found the code which places #2 above #1 in \ruby{}{}:
{\@tempdimc \f@size\p@
\@tempdimc \rubysize\@tempdimc
\sbox\z@{\vrule\@height.7\baselineskip\@depth\z@\@width\z@ #1}
\sbox\@tempboxa{\fontsize{\@tempdimc}{1.2\@tempdimc}\selectfont
\vrule\@height\z@\@depth.3\baselineskip\@width\z@ #2}
- It is possible that
ruby.styalready provides this feature, but I could not find any mention of this in the documentation (see ruby.txt).
I have also tried these, but the results are a bit different:
$\stackrel[below]{above}{middle}$, but I do not need any text above.$\underbrace{above}_{\hbox{below}}$, but I do not need the underbrace.
I would prefer if the format and distance copied that of \ruby{}{}.
