From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95140 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Freddy_Omar_L=C3=B3pez_Quintero?= Newsgroups: gmane.comp.tex.context Subject: Math using sans serif font and problems with the alignment Date: Fri, 10 Jun 2016 11:18:39 -0300 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0487767737503225141==" X-Trace: ger.gmane.org 1465568408 30979 80.91.229.3 (10 Jun 2016 14:20:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2016 14:20:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 10 16:19:55 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bBNHs-0005mW-He for gctc-ntg-context-518@m.gmane.org; Fri, 10 Jun 2016 16:19:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5CD72F110; Fri, 10 Jun 2016 16:19:34 +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 U7GxrbixFknm; Fri, 10 Jun 2016 16:19:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 80F72F11A; Fri, 10 Jun 2016 16:19:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B300BF10E for ; Fri, 10 Jun 2016 16:19:31 +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 2i3alPtgIndZ for ; Fri, 10 Jun 2016 16:19:31 +0200 (CEST) Original-Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D4FC3F10D for ; Fri, 10 Jun 2016 16:19:20 +0200 (CEST) Original-Received: by mail-vk0-f53.google.com with SMTP id g67so99187673vkb.3 for ; Fri, 10 Jun 2016 07:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=oZf7P3oOCCbTF1gVPfGTSDPzo4j1GRZcxDH3HQYnZ5A=; b=F5q+jtElxSPRmJW91VtnJapQNTO6PsdG7SAEdwOuOuIoutSItS52DHDZz2mGAY01UW GPgISHDAsQ+CskDHX5jli5/jj8JcedlfIKfDeV9EF7OmJ0dM6pB5uD93iC8XMLIsoxnK j9H5iN5KfDY0kvoZreO/AnnAGs8AUmEXTKEPN/4pXsFF23hFecOfEhUXnilw7fg/52jM fDnbtpVkTFNvdAnb+SMZAfLFtTtqjhYW00Fo8Xj6QdE+S3pjKpKzbjbxA5iaIaSYzIPs MAyiT45QXeXpMW7q1SCJenpiSBCzXJsdp3PSKJ4FDjBVkdU4/QaTw+Evincrb3YFPKKb 4DsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oZf7P3oOCCbTF1gVPfGTSDPzo4j1GRZcxDH3HQYnZ5A=; b=M+3lupRFIqF11MiIZkpkcQ0Thup1Q1a0/q+jLEgMRTPp16JyOIMR+3b6ibzH6kNqwA jwkzDAmfYHwbUQ91weYp+PI/Qu4uQqlhDqgEK25uZQor/MJYwBjgysTwLMpu8PI5/wRs eAswcIWUF2nEIc1R4UxJn7jXuG8NoOQLSsDa0i2tysacol0T9NAD8ncgXcl2wdcUtPge RCLve20rP8sVHudFLz4KW2l8HYb3Fp+6nSmFdVYwfUKupzXG2xKUZcj6ZG8/gcdA98Co fR74Ojrqj1Vcx4zadnPcYJx3clyUlk+wgyliHSAHEfuP4aWF3kUu2Ckc4co8PirehfkC bh8g== X-Gm-Message-State: ALyK8tJPAWrjSBtTm3P1X+DMPsk699lM3/tf3uqpmhpqv6VJJsqPQNnfdG7Qq76KsdZxedAIxfnKGBHBHQBsMQ== X-Received: by 10.31.51.68 with SMTP id z65mr774200vkz.10.1465568358642; Fri, 10 Jun 2016 07:19:18 -0700 (PDT) Original-Received: by 10.103.132.137 with HTTP; Fri, 10 Jun 2016 07:18:39 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:95140 Archived-At: --===============0487767737503225141== Content-Type: multipart/alternative; boundary=001a1144a44e693eaf0534ed399d --001a1144a44e693eaf0534ed399d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! Some days ago, I asked about how to use sans serifed font in all math document. My approach, given those answers, was create a little function to use the serif fonts in math (using \definestartstop) but, when there is some align involved, it produces an error :-\ . An example is the following: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \definefontfamily [mainface] [ss] [Latin Modern Sans] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:digitsnormal] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:digitsbold] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:uppercasenormal] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:uppercaseitalic] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:uppercasebold] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:uppercasebolditalic] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:lowercasenormal] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:lowercaseitalic] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:lowercasebold] \definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:lowercasebolditalic] \definefontfamily [mainface] [mm] [Latin Modern Math] \definestartstop [formulass] [ before=3D{\startformula \setupbodyfont[mainface]}, after=3D\stopformula ] \starttext abcdefg ABCDEFG 123456 i \startformula {\tf abcdefg\,ABCDEFG} \quad abcdefg\,ABCDEFG \quad 123456 \quad {\bf 123456} \stopformula % it works: \startformula Y=3DX\beta+\varepsilon \stopformula % it works: \startformulass Y=3DX\beta+\varepsilon \stopformulass % it doesn't work: \startformulass \startalign[n=3D4] \NC Y_t \NC =3D \beta_0 \NC + \beta_1 x_t \NC + \varepsilon_t \NR \NC Y_t \NC =3D \beta_0 \NC + \beta_1 x_t \NC + \varepsilon_t \NR \stopalign \stopformulass \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Could you please give me some advices? Thanks in advance! --=20 =C2=AB...my role is to be on the bottom of things.=C2=BB Donald Knuth --001a1144a44e693eaf0534ed399d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello!

Some days ago, I asked about how to use sans serifed font in all math doc= ument. My approach, given those answers, was create a little function to us= e the serif fonts in math (using \definestartstop) but, when there is some = align involved, it produces an error :-\ .

An example is the following:


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= %%%%%%%%%%%
\definefontfamily =C2=A0 =C2=A0 [mainface] [ss] [Latin Modern Sans= ]

\defin= efallbackfamily [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:digitsno= rmal]
\definefallbackfamily [mainface] [mm] = [Latin Modern Sans] [preset=3Dmath:digitsbold]

\definefallbackfamily [mainface] [mm= ] [Latin Modern Sans] [preset=3Dmath:uppercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset= =3Dmath:uppercaseitalic]
\definefallbackfami= ly [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:uppercasebold]=
\definefallbackfamily [mainface] [mm] [Latin Mode= rn Sans] [preset=3Dmath:uppercasebolditalic]

\definefallbackfamily [mainface] [mm] = [Latin Modern Sans] [preset=3Dmath:lowercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] [preset= =3Dmath:lowercaseitalic]
\definefallbackfami= ly [mainface] [mm] [Latin Modern Sans] [preset=3Dmath:lowercasebold]=
\definefallbackfamily [mainface] [mm] [Latin Mode= rn Sans] [preset=3Dmath:lowercasebolditalic]

\definefontfamily =C2=A0 =C2=A0 [mainf= ace] [mm] [Latin Modern Math]


\de= finestartstop
[formulass]
[
before=3D{\startformula
\setupbodyfont[mainface]},
after=3D\stopformula
]
=


\starttext

=C2=A0 =C2=A0 abcdefg ABCDEFG 123456 i

=C2=A0 =C2=A0 \startfor= mula
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {\tf abcdef= g\,ABCDEFG} \quad abcdefg\,ABCDEFG \quad 123456 \quad {\bf 123456}
=C2=A0 =C2=A0 \stopformula

% it works:
\startformula
Y=3DX\beta+\varepsi= lon
\stopformula

% it works:
\startformulass
Y=3DX\beta+\varepsi= lon
\stopformulass

% it doesn't work:
\startformulass
\start= align[n=3D4]
\NC =C2=A0Y_t \NC =3D \beta_0 \= NC + \beta_1 =C2=A0x_t \NC + \varepsilon_t \NR
\NC =C2=A0Y_t \NC =3D \beta_0 \NC + \beta_1 =C2=A0x_t \NC + \varepsilon_= t \NR
\stopalign
\stopformulass


\stoptext
=
%%%%%%%%%%%%%%%= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Could you please give me some advices?

Thanks in advance!


=
--
=C2=AB...my role is to be on the bottom of t= hings.=C2=BB

Donald Knuth
<= /div>
--001a1144a44e693eaf0534ed399d-- --===============0487767737503225141== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0487767737503225141==--