ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \definemathcommand lowers the text
Date: Thu, 18 Aug 2016 21:25:32 +0200	[thread overview]
Message-ID: <CAHy-LL_cHURFvKSTQ4cJg4AneMfEZwetjigjTb=izQpx6dpeHA@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL_AQXPcebBZn4zXj9b12krBvD2eP932FLg0zkpCTL_rQg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1493 bytes --]

Den 18 aug. 2016 9:09 em skrev "Aditya Mahajan" <adityam@umich.edu>:
>
> On Wed, 17 Aug 2016, Mikael P. Sundqvist wrote:
>
>> Hi!
>>
>> look at the output of this (attached)
>>
>> \definemathcommand [D] [nolop] {\mfunction{D}}
>> \starttext
>> Compare $\D f$ with $\mfunction{D}f$.
>> \stoptext
>>
>> In the \D, the D is lowered a bit. I think it should not be, or else I
>> misuse something. If so, how should I define my own operator (I found
>> this example on the wiki).
>
>
> This is a "feature" of \mathop.
>
>
> \definemathcommand [D] [nolop] {\mfunction{D}}
> \starttext
> Compare $\D f$ with $\mfunction{D}f$ and $\mathop{\mfunction{D}}f$.
> \stoptext
>
> If the argument of \mathop is a single character, \mathop centers the
glyph on the math axis (This is useful for \sum, \int, \prod, etc.). To
circumvent this, use:
>
> \definemathcommand [D] [nolop] {\mfunction{D}\kern\zeropoint}
>
> Aditya
>
___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
___________________________________________________________________________________

Thank you very much for the clear explanation and neat work-around, Aditya.

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 2231 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2016-08-18 19:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17  8:55 Mikael P. Sundqvist
2016-08-18 19:08 ` Aditya Mahajan
     [not found]   ` <CAHy-LL_AQXPcebBZn4zXj9b12krBvD2eP932FLg0zkpCTL_rQg@mail.gmail.com>
2016-08-18 19:25     ` Mikael P. Sundqvist [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='CAHy-LL_cHURFvKSTQ4cJg4AneMfEZwetjigjTb=izQpx6dpeHA@mail.gmail.com' \
    --to=mickep@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).