ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "kauśika via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
Cc: kauśika <citturs@gmail.com>,
	"Wolfgang Schuster via ntg-context" <ntg-context@ntg.nl>
Subject: Re: Achieving the effect of \overset outside math mode
Date: Fri, 12 Nov 2021 11:56:50 +0530	[thread overview]
Message-ID: <2604698.mvXUDI8C0e@sreeramtplt> (raw)
In-Reply-To: <f478c601-0cd0-d1e0-25c6-56c48f12bf9a@gmail.com>

On Friday, November 12, 2021 11:04:20 AM IST Wolfgang Schuster via ntg-context 
wrote:
> 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/cont
> > ext/third/ruby
> 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
> 
> ____________________________________________________________________________
> _______ 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
> ____________________________________________________________________________
> _______

Thanks Aditya and Wolfgang! I am now using the \ruby function in LMTX to 
achieve this.

Thanks,
kauśika


___________________________________________________________________________________
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
___________________________________________________________________________________

      parent reply	other threads:[~2021-11-12  6:26 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
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 [this message]

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=2604698.mvXUDI8C0e@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    /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).