From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105290 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Unexpected symbol with Enumeration Date: Wed, 16 Oct 2019 05:28:37 +0200 Message-ID: References: <64B32710-FBC7-4A14-806E-B7779DD17297@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="===============6261374916587978043==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8889"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 16 05:29:10 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iKZzp-0002A5-3w for gctc-ntg-context-518@m.gmane.org; Wed, 16 Oct 2019 05:29:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F188A161CFC; Wed, 16 Oct 2019 05:28:45 +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 WTFHM1beEGH9; Wed, 16 Oct 2019 05:28:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A51A161CFF; Wed, 16 Oct 2019 05:28:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 19205161CFC for ; Wed, 16 Oct 2019 05:28:43 +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 SiXQAZX0JdV0 for ; Wed, 16 Oct 2019 05:28:42 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.46; helo=mail-wm1-f46.google.com; envelope-from=otared@gmail.com; receiver= Original-Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3BD68161CFB for ; Wed, 16 Oct 2019 05:28:42 +0200 (CEST) Original-Received: by mail-wm1-f46.google.com with SMTP id b24so1049403wmj.5 for ; Tue, 15 Oct 2019 20:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=ofwidGEFf0SPOAUbm42Gr0OqYoGFMisxdu9qnSSGY2A=; b=rGO2SSKhpNZ9jwE1NYnhW1iDf/G/WjgRNElfmprjtf7b0j59gy1QmfOwGYDW0HGF0M 19gFObFEQY7ssrdZzK8CM55UvRsFfchozenwCMZjRUXsqElozFrPw9CqNVZfBekM4i40 +6Kw16O0x43bePTC/51W0DJOSgw3tU0Eji7nYzducjVhjlwVAIvWUnHHBaDV0IaKaWgN N2aQvcQ2lUEPtjdu3yb2T2ujmkZTqTWDZ0gyZLSfzKPhGNWXfUtRAqFMDF3P2GxknSN3 yPNRrDmtrt0Dc91aoJB5HJTwDQ0ovZsiO/avVKDUFNC2CFLyh7eN1X5w/ZsqTLEkQX+t 4FCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=ofwidGEFf0SPOAUbm42Gr0OqYoGFMisxdu9qnSSGY2A=; b=GeIE7G7F+oR9XntB2y3mxwUcLBEX9KbgQvIGngVdksM4IfQY2r0NEj4TIg7WCLBWF9 f4RX6jaQHtxnhZGpOqQb7nsL4q/c89CqWe71VOdN/3feX6M13zEXB3g/TYIWvi1N+Sn/ HnIQPxAdC24VW6eBliqnHc+9qcP5+uD+AOiZPNbTudy2V0e6fecAC1vQ3bRTZK8X33q+ EuDlzeJPISwpOpwD2QZcSCQh3VkLvzaR8yJWjs3Guo/ZI6ApU4UB5NtYMDnQ0t6UyyC0 0EmiUKHXebIRcdVdX5Hqq0raaOxLWixeL5pa0VCR7y9nUT5CZ5JU6nU+/9+tGlBTTMr5 Vqbw== X-Gm-Message-State: APjAAAWXdRlltvCrpJRKUrOXTmJ0yKS5Bgzdsuk9qDFfRmpff4wI0zDy hhWO2nwRAvtsmnASQ1Mgf5mL5TIu X-Google-Smtp-Source: APXvYqxrvYDj/2/2sIk/ISo7eoT4lteYrJiyyTS2cefKVwFlY/PS8BeCvl4pX8fJRovpyWr/9UL8Lw== X-Received: by 2002:a7b:cf28:: with SMTP id m8mr1445704wmg.161.1571196521332; Tue, 15 Oct 2019 20:28:41 -0700 (PDT) Original-Received: from ?IPv6:2a01:e34:ec02:4760:f96b:9c23:c9e7:e4dd? ([2a01:e34:ec02:4760:f96b:9c23:c9e7:e4dd]) by smtp.gmail.com with ESMTPSA id v20sm1013629wml.26.2019.10.15.20.28.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 20:28:40 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:105290 Archived-At: --===============6261374916587978043== Content-Type: multipart/alternative; boundary="Apple-Mail=_524955EC-1BBF-4259-B5CD-73991F20AAEC" --Apple-Mail=_524955EC-1BBF-4259-B5CD-73991F20AAEC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Fabrice, I use Lucida OT fonts for all my documents, but since I prefer the = script fonts from another font I have the following setups for my font: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Some Font Definitions \definefallbackfamily[myfont][math][Asana Math] [range=3D{uppercasescript,lowercasescript}] % lucida font \definefontfamily[myfont][serif][Lucida Bright OT] \definefontfamily[myfont][math][LucidaBrightMathOT] \definefontfamily[myfont][sans][LucidaSansOT] \definefontfamily[myfont][mono][LucidaSansTypewriterOT] \setupbodyfont[myfont,9pt] %% End of Font Definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Then when I use for instance the command $\cal{C}$ the script font from = Asana Math is used, instead of from Lucida OT. Best regards: OK > On 15 Oct 2019, at 21:57, Fabrice Couvreur = wrote: >=20 > Hello, > Thanks to you two.=20 > "Another solution is to define your own mixture of math fonts and text = fonts." > I thought you should not mix several fonts in one text. I know you're = a teacher, what are you doing to write your documents ? > Fabrice >=20 > Le mar. 15 oct. 2019 =C3=A0 19:11, Otared Kavian > a =C3=A9crit : > Hi Fabrice, >=20 > Wolfgang gave the right answer, but I wanted to point out that it is = better not to use \setupbodyfont in the middle of your document, as you = did in the excerpt below: in this case it is better to use=20 >=20 > \switchtobodyfont[xits] >=20 > or even better define the character you want before using it as in >=20 > \define\CScript{\start\switchtobodyfont[xits] \m{\mathscript{C}} = \stop} >=20 > and then use that command as in: >=20 > La droite \m{(AM)} est {\bf une s=C3=A9cante} =C3=A0 la courbe = \CScript en \m{A}. >=20 > Another solution is to define your own mixture of math fonts and text = fonts. >=20 > Best regards: OK >=20 >=20 >> On 15 Oct 2019, at 18:39, Fabrice Couvreur = > = wrote: >>=20 >> La droite \m{(AM)} est {\bf une s=C3=A9cante} =C3=A0 la courbe = {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}. >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context = > webpage : http://www.pragma-ade.nl / = http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ = > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_524955EC-1BBF-4259-B5CD-73991F20AAEC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Fabrice,

I use = Lucida OT fonts for all my documents, but since I prefer the script = fonts from another font I have the following setups for my = font:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Some Font Definitions
\definefallbackfamily[myfont][math][Asana Math]
= [range=3D{uppercasescript,lowercasescript}]

% lucida font
\definefontfamily[myfont][serif][Lucida Bright OT]
\definefontfamily[myfont][math][LucidaBrightMathOT]
\definefontfamily[myfont][sans][LucidaSansOT]
\definefontfamily[myfont][mono][LucidaSansTypewriterOT]

\setupbodyfont[myfont,9pt]

%% End of Font = Definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Then when I use for instance the = command $\cal{C}$ the script font from Asana Math is used, instead of = from Lucida OT.

Best regards: OK

On 15 Oct 2019, at 21:57, = Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hello,
Thanks to you two.
"Another solution = is to define your own mixture of math fonts and text = fonts."
I = thought you should not mix several fonts in one text. I know you're a teacher, what are you doing = to write your documents ?
Fabrice

Le mar. 15 oct. 2019 =C3=A0 19:11, Otared = Kavian <otared@gmail.com> a =C3=A9crit :
Hi Fabrice,

Wolfgang gave the right answer, but I = wanted to point out that it is better not to use \setupbodyfont in the = middle of your document, as you did in the excerpt below: in this case = it is better to use 

\switchtobodyfont[xits]

or even better define the = character you want before using it as in

\define\CScript{\start\switchtobodyfont[xits] = \m{\mathscript{C}} \stop}

and then use that = command as in:

La = droite \m{(AM)} est {\bf une s=C3=A9cante} =C3=A0 la courbe \CScript en = \m{A}.
Another solution is to define your own mixture of math fonts = and text fonts.
Best regards: OK


On 15 Oct 2019, at 18:39, Fabrice Couvreur = <fabrice1.couvreur@gmail.com> wrote:

 La droite \m{(AM)} est {\bf une s=C3=A9cante} =C3=A0= la courbe {\setupbodyfont[xits]\m{{\mathscript C}}} en = \m{A}.

_______________________________________= ____________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
= __________________________________________________________________________= _________
= __________________________________________________________________________= _________
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://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_524955EC-1BBF-4259-B5CD-73991F20AAEC-- --===============6261374916587978043== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6261374916587978043==--