Aditya Mahajan via ntg-context schrieb am 12.11.2021 um 05:45:
On Fri, 12 Nov 2021, kauĊika via ntg-context wrote:
Dear list,
I don't have a MWE per se, but as the title suggests, I want to be able to achieve the effect of \overset outside math mode. As I understand, \overset itself is implemented using \mathop and \limits.
Currently to achieve this I have defined some macros using \offset thus : \define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}} Unfortunately, I have to hard code the x values. So I have define several such macros with different offsets. Not an elegant solution, but it is what I could muster.
So, my objective is to place a smaller piece of text above another larger piece of text so that the text above is centered w.r.t the text below. Wolfgang has a ruby module, which provides this feature.
https://ctan.org/pkg/context-ruby
Doc: https://ctan.org/tex-archive/macros/context/contrib/context-ruby/doc/context...
Use the built-in \ruby function, the module broke at some point after Hans added a similar function himself and I never fixed my own code afterwards. Wolfgang