From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28590 invoked from network); 26 May 2023 19:38:58 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 26 May 2023 19:38:58 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C20C51C3893; Fri, 26 May 2023 21:38:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 ICAP04JLQLz8; Fri, 26 May 2023 21:38:22 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9A2D11C3879; Fri, 26 May 2023 21:38:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E116E1C3879 for ; Fri, 26 May 2023 21:38:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 sbhi_wDjh44o for ; Fri, 26 May 2023 21:38:19 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.166; helo=smtpq3.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 178AEA47 for ; Fri, 26 May 2023 21:38:18 +0200 (CEST) Received: from [212.54.42.107] (helo=smtp3.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2dGU-0006I9-NM for ntg-context@ntg.nl; Fri, 26 May 2023 21:38:18 +0200 Received: from smtpclient.apple ([84.104.102.59]) by smtp3.tb.mail.iss.as9143.net with ESMTPA id 2dGUqxUmMzh7D2dGUq819w; Fri, 26 May 2023 21:38:18 +0200 X-Env-Mailfrom: havdmeer@ziggo.nl X-Env-Rcptto: ntg-context@ntg.nl X-SourceIP: 84.104.102.59 X-CNFS-Analysis: v=2.4 cv=ZrAraf3G c=1 sm=1 tr=0 ts=64710aaa cx=a_exe a=r8aFSP8g8qyxuwAfcqn69g==:117 a=r8aFSP8g8qyxuwAfcqn69g==:17 a=W6sU97k0Pqo7hxW6YfMA:9 a=QEXdDO2ut3YA:10 a=K4pYTa7-VPrnNCFmuvgA:9 a=d2NWq9mChTZzvlxn:21 a=_W_S_7VecoQA:10 X-Authenticated-Sender: havdmeer@ziggo.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ziggo.nl; s=202002corplgsmtpnl; t=1685129898; bh=guUvO9xlTzBhmRID++uZLeptamMPbEKqisx6ZwPVKCg=; h=From:Subject:Date:To; b=b3qR2q/ADjJHwLzs3IgCYJvSNiMwNf4Cfs+1OTsTqCIu+k15fWwLgHLm0KXwinydi 1Hca1Ey1BiS6QzxqNnN8MmdIQUxMLFMcsxPLzypw+KOenV1HbowMBfyYoLVohjyHLn nbeTjlkdjc5D6q1B/mto5bQDFHabelNHkLn5mLr3rJlUFtKLWfn1ArnGlq7l5YNttv +lRqFdovklME5N23PMif98FcX8NBBDYTJPeufJuh70kNYsqXqyqHnjVWpUabu5pfNG gQ6E4kXFQeBTzwCJSVpR6GZyUo47OzKk/k6J6u7TaNsyuCMSHTvoixY0NUJwYFhWkZ LyqGUfVttg13g== Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Message-Id: <2B06211F-2AC1-43D2-A596-34CAAF4E11DC@ziggo.nl> Date: Fri, 26 May 2023 21:38:08 +0200 To: NTG ConTeXt X-Mailer: Apple Mail (2.3731.600.7) X-CMAE-Envelope: MS4xfGpkAacVI2JaCNzKLQrcmIl4tqZwOCPgOfGK+ffJUPSLmh93cMgheKTrQ6TSuiODaogB6jP65oKgjWXrDI5AOyTyJiANV6Kbg1qKn86CIM8HLw/+o2H6 xw5PhHOL/zqlt/zxjFL/3R+Szn22OFF2bDub26WuVShvBC2pzISkDQzCXkBOcFVMI3x+AZy8kK09Cg== Subject: [NTG-context] font size and style X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hans van der Meer via ntg-context Reply-To: mailing list for ConTeXt users Cc: Hans van der Meer Content-Type: multipart/mixed; boundary="===============4792361949410963108==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============4792361949410963108== Content-Type: multipart/alternative; boundary="Apple-Mail=_DEA25404-2A1A-48A5-BADD-B5E5C8A6E3AC" --Apple-Mail=_DEA25404-2A1A-48A5-BADD-B5E5C8A6E3AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Calling "\bf\tfa TEXT" for example leaves the TEXT not in bold because = \tfa does not respect the current style. As does \small, etc. Shown by looking at the meaning of for example \small: \small=3Dprotected macro:\triggergroupedcommand {\setsmallbodyfont \tf } and \tx=3Dprotected macro:\currentxfontsize \plusone \ifmmode \scriptstyle = \orelse \ifconditional \c_font_inherit_scale \font_scale_inherit_x \else = \font_scale_defined_x \fi \al=C2=AD ways\let \tx \txx Thus in contrast \tx and \txx do respect the current style setting. My question: It seems most convenient if I could retrieve the current = style and reset that after a size command. I rather would refrain from = tinkering with those. Since there is a \currentxfontsize is there an = analogue for the style? dr. Hans van der Meer --Apple-Mail=_DEA25404-2A1A-48A5-BADD-B5E5C8A6E3AC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Calling = "\bf\tfa  TEXT" for example leaves the TEXT not in bold because = \tfa does not respect the current style. As does \small, = etc.
Shown by looking at the meaning of for example = \small:

\small=3Dprotected macro:\triggergroupedcommand = {\setsmallbodyfont \tf }

and

\tx=3Dprotected macro:\currentxfontsize \plusone = \ifmmode \scriptstyle \orelse \ifconditional \c_font_inherit_scale = \font_scale_inherit_x \else \font_scale_defined_x \fi \al=C2=AD ways\let = \tx \txx

Thus in contrast \tx and = \txx do respect the current style setting.

My question: It seems = most convenient if I could retrieve the current style and reset that = after a size command. I rather would refrain from tinkering with those. = Since there is a \currentxfontsize is there an analogue for the = style?

dr. Hans van der = Meer
= --Apple-Mail=_DEA25404-2A1A-48A5-BADD-B5E5C8A6E3AC-- --===============4792361949410963108== 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============4792361949410963108==--