From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: "kauśika via ntg-context" <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Achieving the effect of \overset outside math mode
Date: Thu, 11 Nov 2021 23:45:11 -0500 (EST) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2111112341190.755475@nqv-guvaxcnq> (raw)
In-Reply-To: <5765414.lOV4Wx5bFT@sreeramtplt>
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
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/third/ruby
Aditya
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2021-11-12 4:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 2:47 kauśika via ntg-context
2021-11-12 2:49 ` kauśika via ntg-context
2021-11-12 3:02 ` Rik Kabel via ntg-context
2021-11-12 3:20 ` kauśika via ntg-context
2021-11-12 4:45 ` Aditya Mahajan via ntg-context [this message]
2021-11-12 5:34 ` Wolfgang Schuster via ntg-context
2021-11-12 6:25 ` kauśika via ntg-context
2021-11-12 6:26 ` kauśika via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nycvar.YAK.7.78.908.2111112341190.755475@nqv-guvaxcnq \
--to=ntg-context@ntg.nl \
--cc=adityam@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).