From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83578 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: Math accents set too close to capital Date: Tue, 30 Jul 2013 23:04:38 +0100 Message-ID: <4BE8266A-DC19-4603-B639-DB1932B6AE14@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/mixed; boundary="===============2099110390==" X-Trace: ger.gmane.org 1375221906 17452 80.91.229.3 (30 Jul 2013 22:05:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2013 22:05:06 +0000 (UTC) To: Context Mailing List Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 31 00:05:10 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4I2T-0005E2-4q for gctc-ntg-context-518@m.gmane.org; Wed, 31 Jul 2013 00:05:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 93A0A101F1; Wed, 31 Jul 2013 00:04:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vAv827rW+ukx; Wed, 31 Jul 2013 00:04:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 761CA101E5; Wed, 31 Jul 2013 00:04:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0742101E5 for ; Wed, 31 Jul 2013 00:04:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UZhg9mwU1Gs8 for ; Wed, 31 Jul 2013 00:04:02 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 6A3C5101E4 for ; Wed, 31 Jul 2013 00:04:02 +0200 (CEST) Original-Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6UM4UPF016882 for ; Wed, 31 Jul 2013 00:04:30 +0200 Original-Received: by mail-we0-f179.google.com with SMTP id t57so5578920wes.38 for ; Tue, 30 Jul 2013 15:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version:x-mailer; bh=ZdBtyZ1NqUYCQcVzSOs4sqn9uxkGbjAKTgPDWMvxBs0=; b=vZN1cabtresEPktZl0WkxNNJJOgudDcC3YJvgdq4FL3NJ7E2eerepBW50Ec8lR336G 7Cuf+VtBFD0Wm++Z2MkPSSDDuiRDGx6N2gSHp7VikSxR4hvxjALLs55v4PDHpcWoDPeP 2NB7RymdxUJg0j76lRmjiuc0WSJEAzgRY1BX+JZhetpnckrFDMFunwZtwsMySkMKpwPh +umClSyOBAODIfu6hxylMJ8+t/0S/f23wamZqyA+y8fMETmj0w1aZDsCluL1dSmEFCt5 YdJdJUtr7K+sKqFMYSgdkSEl6LpgcT0yfp5jJoykuVO6Y8LCShqtmUvbPMFb7EE6xP+i 0PQQ== X-Received: by 10.180.126.10 with SMTP id mu10mr2266002wib.64.1375221870271; Tue, 30 Jul 2013 15:04:30 -0700 (PDT) Original-Received: from silver.home (host86-186-98-100.range86-186.btcentralplus.com. [86.186.98.100]) by mx.google.com with ESMTPSA id n7sm31426313wib.1.2013.07.30.15.04.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Jul 2013 15:04:29 -0700 (PDT) X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06K6K4uXB - 033465609615 - 20130731 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83578 Archived-At: --===============2099110390== Content-Type: multipart/alternative; boundary="Apple-Mail=_681A6628-CA48-4C32-BE70-6E16A6249337" --Apple-Mail=_681A6628-CA48-4C32-BE70-6E16A6249337 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello all, I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but = the result is rather ugly when not using latin-modern. I've tried to = redefine the \hat macro to move the accent up a bit using \topaccent: is = this the best approach? Having to nest '$' does not seem right at all. = (Also, for some reason although I find \mathhat in enco-ini.mkiv, when I = try to use it I get undefined control sequence.) Thanks, Michael \starttypescript [mathfont] \definetypeface [mathfont] [mm] [math] [palatino] [default] = [rscale=3D1.0] \stoptypescript \usetypescript[mathfont] \setupbodyfont[mathfont] \starttext $\hat{H}$ \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} $\hat{H}$ \stoptext -- Michael Murphy murphy.md@gmail.com --Apple-Mail=_681A6628-CA48-4C32-BE70-6E16A6249337 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hello = all,

I'm trying to typeset 'H' with a circumflex (or = hat) in math mode, but the result is rather ugly when not using = latin-modern. I've tried to redefine the \hat macro to move the accent = up a bit using \topaccent: is this the best approach? Having to nest '$' = does not seem right at all. (Also, for some reason although I find = \mathhat in enco-ini.mkiv, when I try to use it I get undefined control = sequence.)

Thanks,
Michael
\starttypescript [mathfont]
  = \definetypeface [mathfont] [mm] [math]  [palatino]  [default] = [rscale=3D1.0]
\stoptypescript
\usetypescript[mathfont= ]
\setupbodyfont[mathfont]

\starttext

$\hat{H}$

\def\hat#1{\top= accent{3pt}{0}{90}{\textcircumflex}{$#1$}}

$\hat{= H}$

\stoptext

= --Apple-Mail=_681A6628-CA48-4C32-BE70-6E16A6249337-- --===============2099110390== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2099110390==--