From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107216 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Changing the font size in an environment changes the behavior of a macro Date: Mon, 4 May 2020 18:51:20 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3626530987333963509==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="36694"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 04 18:52:22 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVeKL-0009PH-MG for gctc-ntg-context-518@m.gmane-mx.org; Mon, 04 May 2020 18:52:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6777D183AAA; Mon, 4 May 2020 18:52:00 +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 K4e_Wr3ciMPI; Mon, 4 May 2020 18:51:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0F1B9183AB8; Mon, 4 May 2020 18:51:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 05088183AB4 for ; Mon, 4 May 2020 18:51:58 +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 ANJvx3wB1lZC for ; Mon, 4 May 2020 18:51:57 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.49; helo=mail-wr1-f49.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 6E6F0183AAA for ; Mon, 4 May 2020 18:51:57 +0200 (CEST) Original-Received: by mail-wr1-f49.google.com with SMTP id f13so21769745wrm.13 for ; Mon, 04 May 2020 09:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=h0KzRnG8fadOY7p+6KHOfLlBPNQv261mQ7vRI45xyZQ=; b=Z7KoTjZaLwbZxb9/DWkDcSL+3GLlXQTdmWMWjInCa33bGTLzfMmk7ysyFUkpPUCujx fHLg5kbL7bOpAu8EffDp0FKjXWeEZ2I0JM1BgcUbMASj6rD/yU5DweW8UhhS96PlBesO GIPS0usUdfYx+ygmaYpJBlNoPF95cEqN9TnZSPQayFcOH55hVqnibPHVfhhyrM8YJkIR XXptqBlywwW7fLLz5rjm33YYU4XBYHJJpc9vFcfYYX2rxL+p2ihrIvHar9nz+3f1t6ay VmR0l1kg3IM9n+yda/ggmCFycZTnqAjrgXIYZ6ljdFtm2HkeqEYJ6kU2HeChgOn85Mpi /0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=h0KzRnG8fadOY7p+6KHOfLlBPNQv261mQ7vRI45xyZQ=; b=sIa3m8VFGE03IA5OhO/27H29rRWMqgxt3+qctXl63OF+0lGnzPIbmBLsuvYpvLrc+S Xqxvbl4COAhFdFa/mJmTz/Pih+hKsPVu4yQpyKxCz1IpecRH57aqcSJL9R3pBoF+N5p0 VgONmC3gWWow3VZSZ468FdaNCYOY7LpVSCaD7++pUW45N2Oa4n3k9ljOwQgx8e5SuVfJ U4eGGFjpdTUAoo+69eEsNRyZbQOS1o4nwOR1hiCUPxYNwivfFC2pLTVqyeRGY/c7ua1A YLYJ4jnzmHfgTjsKFL6C94DJB0sS6vZIQvs+SixyRRojJ2kIKrgA8OhU9pBtp8hrS9xv kzHA== X-Gm-Message-State: AGi0PuZ4oRq339yn3JHGYxICrlPURoLNdIgOOyFhakIldok03A+EEnIx 7ECYyEeqynIZV35WYwHn0VVe+Wvh9uj3glFu9QBPH1Qz X-Google-Smtp-Source: APiQypKiCKMGfs0hnm2VeeDM8BdO0vVrcqOI614VJq/nDp8FaPlyWGcz3o7n7unlsa7BCCunVXszbYvPU1R2BXZCn9M= X-Received: by 2002:adf:8162:: with SMTP id 89mr19412835wrm.387.1588611116849; Mon, 04 May 2020 09:51:56 -0700 (PDT) In-Reply-To: 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.io gmane.comp.tex.context:107216 Archived-At: --===============3626530987333963509== Content-Type: multipart/alternative; boundary="0000000000004e606205a4d559b3" --0000000000004e606205a4d559b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. Fabrice Le sam. 25 avr. 2020 =C3=A0 00:13, Fabrice Couvreur a =C3=A9crit : > Hi, > This macro was written by Otared and it works well unless I change the > size of the font (see the second graph). > How to correct this problem ? > Thanks for your help. > Fabrice > > %%%% begin example > > \usemodule[pgfplots] > \pgfplotsset{compat=3Dnewest} > > \define[2]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_= {#2}}\stop} > > \starttext > > \startmidaligned > \starttikzpicture > \startaxis > \addplot {x}; > \node[above left] at (2,2) {\cscript{C}{f}}; > \stopaxis > \stoptikzpicture > \stopmidaligned > \blank > \startmidaligned > \switchtobodyfont[9pt] > \starttikzpicture > \startaxis > \addplot {x}; > \node[above left] at (2,2) {\cscript{C}{f}}; > \stopaxis > \stoptikzpicture > \stopmidaligned > > \stoptext > > %%%%end example > --0000000000004e606205a4d559b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Sorry to insist but= I cannot fix this problem.
Thanks for any help.=
Fabrice

Le=C2=A0sam. 25 avr.= 2020 =C3=A0=C2=A000:13, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a =C3=A9crit=C2=A0:
=
Hi,
This macro was= written by Otared and it works well unless I change the size of the font (= see the second graph).
How to correct this probl= em ?
Thanks for your help.
Fabrice

<= /span>
%%%% begin example<= /div>
=
\usemodule[pgfplots]
\pgfplotsset{compat=3Dnewest}
\def= ine[2]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\= stop}

\starttext

=C2=A0\startmidaligned
=C2=A0\starttikzpi= cture
=C2=A0\startaxis
=C2=A0 =C2=A0\addplot {x};
=C2=A0 =C2=A0\no= de[above left] at (2,2) {\cscript{C}{f}};
=C2=A0 =C2=A0\stopaxis =C2=A0<= br>=C2=A0\stoptikzpicture
=C2=A0\stopmidaligned
=C2=A0\blank
=C2= =A0\startmidaligned
=C2=A0 \switchtobodyfont[9pt]
=C2=A0 \starttikzpi= cture
=C2=A0 \startaxis
=C2=A0 =C2=A0\addplot {x};
=C2=A0 =C2=A0\n= ode[above left] at (2,2) {\cscript{C}{f}};
=C2=A0 =C2=A0\stopaxis =C2=A0=
=C2=A0\stoptikzpicture
=C2=A0\stopmidaligned
=C2=A0
\stoptext<= /span>

%%%%end example
--0000000000004e606205a4d559b3-- --===============3626530987333963509== 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== --===============3626530987333963509==--