From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95860 Path: news.gmane.org!.POSTED!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: \definemathcommand lowers the text Date: Thu, 18 Aug 2016 21:25:32 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8936895829259184975==" X-Trace: blaine.gmane.org 1471548373 9465 195.159.176.226 (18 Aug 2016 19:26:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2016 19:26:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 18 21:26:09 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1baSx6-00029J-N8 for gctc-ntg-context-518@m.gmane.org; Thu, 18 Aug 2016 21:26:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CA17815230; Thu, 18 Aug 2016 21:25:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4jIDZ5R6WZKq; Thu, 18 Aug 2016 21:25:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BD98415233; Thu, 18 Aug 2016 21:25:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9E91A15230 for ; Thu, 18 Aug 2016 21:25:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H_OrJQaoYMuo for ; Thu, 18 Aug 2016 21:25:47 +0200 (CEST) Original-Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 59B7B1522F for ; Thu, 18 Aug 2016 21:25:37 +0200 (CEST) Original-Received: by mail-oi0-f49.google.com with SMTP id f189so35549455oig.3 for ; Thu, 18 Aug 2016 12:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=B4NZG1/VMpGbBifS/vGjpyOw8pFMGd7thFrSo6hj168=; b=hVgMClW4K+T2FhqEMxua0hS/tYyrOjtOvVJI4TOmCmaC8JP6Phs0xZqPHjTBzk7uiH 4Hll6o5S6q5lP6PC0dzXNcbi29PlU5WfIOc1m/p5NF+iHkmmRxcHjcLDP3lj0WmdCErK IuyQ6fRJA+XQ/RR1zIrVa0hTrL1fVehqmE9/hsG24XTzU6pYXU+LjDrud7ZFjLDlDkde qbM/NEC8J/KRMUGjn1ybIQIVXrOm3QxufvwdQygaxZzCCadFHF3je4E3C8Rj6lX5pCpm rqIIU3t6VBVzHSQXeAtBn5Zdn6vjK6FU9WvfEoj/7Eg/4zUGAlHSgFmXGoMC5GrKRcFd 4cYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=B4NZG1/VMpGbBifS/vGjpyOw8pFMGd7thFrSo6hj168=; b=ctF9/3RCy4An/+QKgEA7qkhxLgLqtXLoLCDTa3UslR48Fu2keR+MhY/rxL1ddTAKfi EGyottZr9+YP2IoDgoz/J837lOPBee1+bUMuEVqT50t2sbWq8qZ1QmXiF1V7ZWa5JQiQ bdZTgM3xGrM26P3MHdEvqsu+ppv+2286qmGrfOc6pVoyGPedUnpy/B3NkBMD8fkPVbpS UWAkeo15Q6a7gaHo65jkfQOZ+k4UWYDpG/bIH5srK+xDqi1ZWz2AcIsKPoGU0Ro2jqzl 69uqefmhehBKeVfFytBOMzMeXN6vYe9G+k6R3+EG3/gnHRmUDf9YbyfmySaYWXmbyo8f 9MUw== X-Gm-Message-State: AEkoouv/+eg194i4rk2NvjQ194NLfpH8sZ6EE7lQUqbraNsxtvoG9YzXSz+BfaW8enDczyoZVoMr/+7vpRRNuQ== X-Received: by 10.157.46.233 with SMTP id w96mr2638643ota.2.1471548333521; Thu, 18 Aug 2016 12:25:33 -0700 (PDT) Original-Received: by 10.182.214.73 with HTTP; Thu, 18 Aug 2016 12:25:32 -0700 (PDT) Original-Received: by 10.182.214.73 with HTTP; Thu, 18 Aug 2016 12:25:32 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95860 Archived-At: --===============8936895829259184975== Content-Type: multipart/alternative; boundary=001a11463904b081af053a5d8b67 --001a11463904b081af053a5d8b67 Content-Type: text/plain; charset=UTF-8 Den 18 aug. 2016 9:09 em skrev "Aditya Mahajan" : > > 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 --001a11463904b081af053a5d8b67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Den 18 aug. 2016 9:09 em skrev "Aditya Mahajan" &l= t;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 el= se I
>> misuse something. If so, how should I define my own operator (I fo= und
>> 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 cir= cumvent 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.n= tg.nl/mailman/listinfo/ntg-context
> webpage=C2=A0 : http://www.pragma= -ade.nl / http://tex.aanhet.net > archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/
> wiki=C2=A0 =C2=A0 =C2=A0: http://= contextgarden.net
> ______________________________________________________________________= _____________

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

/Mikael

--001a11463904b081af053a5d8b67-- --===============8936895829259184975== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============8936895829259184975==--