ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to put a circle on top of a character
Date: Wed, 30 Aug 2017 15:39:02 +0200	[thread overview]
Message-ID: <4A132663-2913-45F6-827C-F9006E1874A2@gmail.com> (raw)
In-Reply-To: <caccd6da-289b-440c-e5f4-fe5fc41f90f6@wxs.nl>

Hi Hans,

Regarding what you have added on line 1327 of math-stc.mkvi, that line should be

	\definemathover[\v!symbol][interiorset]["2218]

(instead of "2217).

I added also a wiki page for mathstackers:

	http://wiki.contextgarden.net/mathstackers

Best regards: OK

> On 29 Aug 2017, at 23:28, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 8/29/2017 9:56 PM, Otared Kavian wrote:
>> Hi Hans,
>> That’s wonderful! Indeed this is very handy and I’ll add it to the wiki.
>> However, before doing so, I would like to ask how is it possible to get the command act entirely in math mode, that is respecting the distances and the math fonts. Please see the attached output.
>> %%% begin interior-of-a-set.tex
>> \definemathstackers[symbol][voffset=-.30\mathexheight,hoffset=\zeropoint]
>> \definemathover[symbol][interiorset]["2218]
>> \starttext
>> Here is the new command \type{\interiorset{K}}: $\mathring{K} \neq \interiorset{K}$
>> \stoptext
>> %%% end interior-of-a-set.tex
> 
> I'll add an offset
> 
> \definemathstackers
>  [\v!symbol]
>  [\c!voffset=-.3\mathexheight,
>   \c!hoffset=\zeropoint,
>   \c!mathclass=ord,
>   \c!topoffset=.4\mathemwidth, % poor man's italic correction
>   \c!middlecommand=\mathematics]
> 
> but keep in mind, this is not really meant for accented math, more for special cases
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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:[~2017-08-30 13:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 12:54 Otared Kavian
2017-08-29 13:34 ` Aditya Mahajan
2017-08-29 14:24   ` Otared Kavian
2017-08-29 17:23     ` Hans Hagen
2017-08-29 19:56       ` Otared Kavian
2017-08-29 21:28         ` Hans Hagen
2017-08-30 11:45           ` Otared Kavian
2017-08-30 13:39           ` Otared Kavian [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=4A132663-2913-45F6-827C-F9006E1874A2@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).