From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94975 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: fontsize changes not understood Date: Tue, 24 May 2016 15:57:46 +0200 Message-ID: <57445DDA.6080204@gmail.com> References: <5884AA43-E086-41B3-8D94-3C6F7C88BE5F@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3019979253632090000==" X-Trace: ger.gmane.org 1464098325 12929 80.91.229.3 (24 May 2016 13:58:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 May 2016 13:58:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 15:58:32 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 1b5Cqo-0002H1-0c for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2016 15:58:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 93741DE73; Tue, 24 May 2016 15:58:07 +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 3zwDVDnniam8; Tue, 24 May 2016 15:58:06 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CD575DE90; Tue, 24 May 2016 15:58:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A331DE78 for ; Tue, 24 May 2016 15:58:05 +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 PCggQ6LB5u2m for ; Tue, 24 May 2016 15:58:04 +0200 (CEST) Original-Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (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 CC93FDE73 for ; Tue, 24 May 2016 15:57:54 +0200 (CEST) Original-Received: by mail-wm0-f46.google.com with SMTP id a136so75566200wme.0 for ; Tue, 24 May 2016 06:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=23mlmIa5QMoXVECzxew4ALE7j43WVHmeontAAmMIVPw=; b=ndCfnDTEVqicT22QIdILl5XguMO0aM0/a0BbosnD6xmb7u5D4qxh7tU79YJIvzutut V7P7ZahkEviKVxmxyvVSIs8a+ww65aM6C98Fd9Qe2CWPnLv7Q2RvMYPaFnOmso1iKkdB /mxaslFuJWQUbBB3li2SR4gUbp2XvSq3K26cbelpXvekmETVwkKo2cPW0m72hr9PK6pB 04BaojUnCzdYr71ru491lmSDG7BbspYPin1m7+X61fvLsA9Y8bIcUj5VQ/y+SY3Q5idV olo4DBwaH0vYpM6jTgUEagKfdp7iOW5p7BRhnHabxQUViseXVtulKBzA5LwP7bGxyNLG k+cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=23mlmIa5QMoXVECzxew4ALE7j43WVHmeontAAmMIVPw=; b=GhBFChrPUqXDv/KsSMpeMBgmvjidG0gnM8f7i3lOU85zadyfhSceVpnFsRLMifa22w daG3Qna/wDNLK5hnSar5+Ax3hgfEBE0feO2qv/oa6b0P2qdS/NTlwzJfDjthLBxVo8s9 GsyHXGCIaBfDl7szAVPawiaaXfI4SVzlhSOy78spOwuYexFJoRtRnHPHYmo1c7YKYvIQ 97HbdpVCXJneqAh+rMoaKX2sH14hh+V2LHDiXkP5NK5cRxWNzAf27TDvkj5vu0LnjdoJ KInCjaqTcqyPdKekCDc9fvrHbEe2HpqgE3Aw4n/cZ/hGzNQrKP+gKq/x8vlaqR6OMbiX BemQ== X-Gm-Message-State: AOPr4FWC7bc5z2HRgyaf8JsSLx7GHz9q9Tq4+i0lmHRhJARGe2UxNr5udib6n9STvS0cYQ== X-Received: by 10.28.12.8 with SMTP id 8mr23387496wmm.6.1464098274528; Tue, 24 May 2016 06:57:54 -0700 (PDT) Original-Received: from keima.localdomain (x2f2429f.dyn.telefonica.de. [2.242.66.159]) by smtp.gmail.com with ESMTPSA id h14sm15962256wme.1.2016.05.24.06.57.52 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2016 06:57:52 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <5884AA43-E086-41B3-8D94-3C6F7C88BE5F@uva.nl> 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:94975 Archived-At: This is a multi-part message in MIME format. --===============3019979253632090000== Content-Type: multipart/alternative; boundary="------------030407020301090404080709" This is a multi-part message in MIME format. --------------030407020301090404080709 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Meer, Hans van der > 24. Mai 2016 um 15:04 > > Can someone explain to me the changes in fontsize in the following > example? > Enclosing the fontswitches in a group did not change the behaviour. > > \setupbodyfont[dejavu,12pt] > \def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red > Master\egroup}} > \def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red > Master\egroup}} > \starttext > \startsection[title=\MarkMasterA First title] > \input hawking > \MarkMasterA > \input hawking > \stopsection > \startsection[title=\MarkMasterB First title] > \input hawking > \MarkMasterB > \input hawking > \blank > contextversion=\contextversion > \stopsection > \stoptext > > In the first section the absolute value of 9 pt appears not to be > honoured but it looks as if there is a reduction relative to the > surrounding font. > In the second section the size does not change and looks even bigger > than the first one above. > > I am baffled and do not understand why not all fontsizes are the same > absolute 9pt as requested? When you flush the margin text in the heading its style (e.g. \tfa) is added to your font size for the margin text. To get rid of the size change from \section in your example you can add the "reset" keyword to \switchtobodyfont. \def\MarkMasterA{\margindata[inleft][style={\switchtobodyfont[reset,9pt]},color=red]{Master}} Wolfgang --------------030407020301090404080709 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
24. Mai 2016 um 15:04

Can someone explain to me the changes in fontsize in the following example?
Enclosing the fontswitches in a group did not change the behaviour.

\setupbodyfont[dejavu,12pt]
\def\MarkMasterA{\inmargin[location=left]{\bgroup\switchtobodyfont[9pt]\red Master\egroup}}
\def\MarkMasterB{\inmargin[location=left]{\bgroup\usebodyfont[9pt]\red Master\egroup}}
\starttext
\startsection[title=\MarkMasterA First title]
\input hawking
\MarkMasterA
\input hawking
\stopsection
\startsection[title=\MarkMasterB First title]
\input hawking
\MarkMasterB
\input hawking
\blank
contextversion=\contextversion
\stopsection
\stoptext

In the first section the absolute value of 9 pt appears not to be honoured but it looks as if there is a reduction relative to the surrounding font.
In the second section the size does not change and looks even bigger than the first one above.

I am baffled and do not understand why not all fontsizes are the same absolute 9pt as requested?
When you flush the margin text in the heading its style (e.g. \tfa) is added to your font size for the margin text.

To get rid of the size change from \section in your example you can add the "reset" keyword to \switchtobodyfont.

\def\MarkMasterA{\margindata[inleft][style={\switchtobodyfont[reset,9pt]},color=red]{Master}}

Wolfgang
--------------030407020301090404080709-- --===============3019979253632090000== 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= --===============3019979253632090000==--