From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73223 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: simplefonts: math in headers Date: Fri, 16 Dec 2011 06:25:09 +0100 Message-ID: <310B3F20-77E6-42A4-8515-A8F7DEA29371@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/mixed; boundary="===============0454088658==" X-Trace: dough.gmane.org 1324013130 24507 80.91.229.12 (16 Dec 2011 05:25:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2011 05:25:30 +0000 (UTC) Cc: mailing list for ConTeXt users To: "Philipp A." Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 16 06:25:26 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RbQIN-0005zk-P9 for gctc-ntg-context-518@m.gmane.org; Fri, 16 Dec 2011 06:25:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C06EACB170; Fri, 16 Dec 2011 06:25:22 +0100 (CET) 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 EJw-sjIcr9uY; Fri, 16 Dec 2011 06:25:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F20EECB173; Fri, 16 Dec 2011 06:25:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C65ACB173 for ; Fri, 16 Dec 2011 06:25:18 +0100 (CET) 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 lSgr3PLA90ml for ; Fri, 16 Dec 2011 06:25:16 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 467F1CB170 for ; Fri, 16 Dec 2011 06:25:16 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBG5PBvk006291 for ; Fri, 16 Dec 2011 06:25:14 +0100 Original-Received: by eekc41 with SMTP id c41so3325222eek.14 for ; Thu, 15 Dec 2011 21:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=OLZAcRs5zwdGzA2DW9JmNqLR2rlgqXuDICDzmKWE5ZA=; b=hSMJDtzf0qaSVFJLoXa+2BkitifHgIgMaaQEpR+kC3f1LmWYk+VYXQoDwwK2lJccCj 1GQqN72pfnLXkQJ5wb8qa2UgPAvAzmiHQYPgH4UqqjYSWLzS38/nHtM7LjlcOaCu+Kfn A/8Esljj7RVJYP6T2KqMeEqA4Aq6FZA5lLAU8= Original-Received: by 10.14.2.131 with SMTP id 3mr2472425eef.23.1324013111808; Thu, 15 Dec 2011 21:25:11 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB3DF.dip.t-dialin.net. [87.175.179.223]) by mx.google.com with ESMTPS id j20sm33366424eej.8.2011.12.15.21.25.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Dec 2011 21:25:10 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06G9Fpc7I - 65878454f54b - 20111216 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73223 Archived-At: --===============0454088658== Content-Type: multipart/alternative; boundary="Apple-Mail=_157A4D0A-3DC2-4A38-80FF-62E6AA23955D" --Apple-Mail=_157A4D0A-3DC2-4A38-80FF-62E6AA23955D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 16.12.2011 um 00:13 schrieb Philipp A.: > 2011/12/15 Wolfgang Schuster > There is no way for me to fix this because it=92s a context bug. You = can see the effect with the following example, when you load LM before = Pagella the heading use LM Math but when you load Pagella before LM = Palatino math is used for the heading. >=20 > \setupbodyfont[modern] > \setupbodyfont[pagella] >=20 > \setuphead[section][style=3D{\ss\bfb}] >=20 > \starttext > \section{Wat? $y=3Dx^2$} $y=3Dx^2$ > \stoptext >=20 > Wolfgang >=20 >=20 > umm, so this happens because this bug exists and simplefonts sets the = fonts on module load? Yes. > is there a way to fix it or is an official fix on the way? Wait for Hans to fix it and use in the meantime \usemodule[simplefonts] \definesimplefonttypeface[mainface][Cambria] \definesimplefonttypeface[mainface][Ubuntu] [style=3Dsans] \definesimplefonttypeface[mainface][cambria][style=3Dmath] \setupbodyfont[mainface] \setuphead[section][style=3D{\ss\bfb}] \starttext \section{Wat? $y=3Dx^2$} $y=3Dx^2$ \stoptext or \definetypeface[mainface][rm][specserif][Cambria] \definetypeface[mainface][ss][specsans] [Ubuntu] \definetypeface[mainface][mm][math] [cambria] \setupbodyfont[mainface] \setuphead[section][style=3D{\ss\bfb}] \starttext \section{Wat? $y=3Dx^2$} $y=3Dx^2$ \stoptext Wolfgang= --Apple-Mail=_157A4D0A-3DC2-4A38-80FF-62E6AA23955D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
2011/12/15 Wolfgang Schuster <schuster.wolfgang@googlem= ail.com>
There is no way for me to fix = this because it=92s a context bug.  You can see the effect with the = following example, when you load LM before Pagella the heading use LM = Math but when you load Pagella before LM Palatino math is used for the = heading.
=

\setupbodyfont[modern]
\setupbodyfont[p= agella]

\setuphead[section][style=3D{\ss\bfb}]

\starttext
\section{Wat? $y=3Dx^2$}= $y=3Dx^2$
\stoptext

Wolfgang


umm, so this happens because this bug exists = and simplefonts sets the fonts on module load?

Yes.

is there a way to fix it or is an official fix on the = way?

Wait for Hans to fix it = and use in the = meantime

\usemodule[simplefonts]

\definesimplefonttypeface[mainface][Cambria]
\definesimplefon= ttypeface[mainface][Ubuntu] = [style=3Dsans]
\definesimplefonttypeface[mainface][cambria][styl= e=3Dmath]

\setupbodyfont[mainface]

=
\setuphead[section][style=3D{\ss\bfb}]

\starttext
\section{Wat? $y=3Dx^2$} = $y=3Dx^2$
\stoptext

or
=
\definetypeface[mainface][rm][specserif][Cambria]
\definetypeface[mainface][ss][specsans] = [Ubuntu]
\definetypeface[mainface][mm][math]     = [cambria]

\setupbodyfont[mainface]

=
\setuphead[section][style=3D{\ss\bfb}]

\starttext
\section{Wat? $y=3Dx^2$} = $y=3Dx^2$
\stoptext

Wolfgang= --Apple-Mail=_157A4D0A-3DC2-4A38-80FF-62E6AA23955D-- --===============0454088658== 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 ___________________________________________________________________________________ --===============0454088658==--