From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83616 Path: news.gmane.org!not-for-mail From: "Keith J. Schultz" Newsgroups: gmane.comp.tex.context Subject: Re: Math accents set too close to capital Date: Wed, 31 Jul 2013 09:05:18 +0200 Message-ID: References: <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="===============0093498485==" X-Trace: ger.gmane.org 1375338677 18842 80.91.229.3 (1 Aug 2013 06:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2013 06:31:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 01 08:31:20 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 1V4mPv-0007RC-RN for gctc-ntg-context-518@m.gmane.org; Thu, 01 Aug 2013 08:31:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CD931101FE; Thu, 1 Aug 2013 08:30:47 +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 11Hlhnz-nO-r; Thu, 1 Aug 2013 08:30:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7A509101E8; Thu, 1 Aug 2013 08:30:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A740101E5 for ; Wed, 31 Jul 2013 09:05:05 +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 yk1q0FuJZPkd for ; Wed, 31 Jul 2013 09:04:51 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 73F82101E4 for ; Wed, 31 Jul 2013 09:04:51 +0200 (CEST) Original-Received: from mx2.uni-trier.de (mx2.uni-trier.de [136.199.224.18]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6V75JPv026438 for ; Wed, 31 Jul 2013 09:05:20 +0200 X-IronPort-AV: E=Sophos;i="4.89,785,1367964000"; d="scan'208,217";a="6022223" Original-Received: from rzmail.uni-trier.de ([136.199.8.220]) by mx2i.uni-trier.de with ESMTP; 31 Jul 2013 09:05:19 +0200 Original-Received: from [10.0.62.6] (dslb-084-058-199-078.pools.arcor-ip.net [84.58.199.78]) by rzmail.uni-trier.de (Postfix) with ESMTPA id 702E140397 for ; Wed, 31 Jul 2013 09:05:19 +0200 (CEST) In-Reply-To: <4BE8266A-DC19-4603-B639-DB1932B6AE14@gmail.com> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=136.199.224.18; country=DE; region=08; city=Trier; latitude=49.7500; longitude=6.6333; http://maps.google.com/maps?q=49.7500,6.6333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WK6T5kN8 - 6347770f0c69 - 20130731 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-Mailman-Approved-At: Thu, 01 Aug 2013 08:30:35 +0200 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:83616 Archived-At: --===============0093498485== Content-Type: multipart/alternative; boundary="Apple-Mail=_941B2411-00FF-4965-9A2F-431E51BEAA3E" --Apple-Mail=_941B2411-00FF-4965-9A2F-431E51BEAA3E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, Have you tries U+1024 or LETTER CAPITAL H WITH CIRCUMFLEX? True not all Fonts might not have it and it is TEXT not Math. Just a thought. regards Keith. Am 31.07.2013 um 00:04 schrieb Michael Murphy : > Hello all, >=20 > 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.) >=20 > Thanks, > Michael >=20 > \starttypescript [mathfont] > \definetypeface [mathfont] [mm] [math] [palatino] [default] = [rscale=3D1.0] > \stoptypescript > \usetypescript[mathfont] > \setupbodyfont[mathfont] >=20 > \starttext >=20 > $\hat{H}$ >=20 > \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} >=20 > $\hat{H}$ >=20 > \stoptext >=20 > -- >=20 > Michael Murphy > murphy.md@gmail.com --Apple-Mail=_941B2411-00FF-4965-9A2F-431E51BEAA3E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii = Keith.

Am 31.07.2013 um 00:04 schrieb = Michael Murphy <murphy.md@gmail.com>:

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

--
Michael Murphy
murphy.md@gmail.com

= --Apple-Mail=_941B2411-00FF-4965-9A2F-431E51BEAA3E-- --===============0093498485== 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 ___________________________________________________________________________________ --===============0093498485==--