From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: Hans van der Meer via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: [NTG-context] font size and style
Date: Sat, 27 May 2023 07:56:55 +0200 [thread overview]
Message-ID: <cda5c975-d97b-7b24-4111-8a9dbe6d914e@gmail.com> (raw)
In-Reply-To: <2B06211F-2AC1-43D2-A596-34CAAF4E11DC@ziggo.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1142 bytes --]
Hans van der Meer via ntg-context schrieb am 26.05.2023 um 21:38:
> 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=protected macro:\triggergroupedcommand {\setsmallbodyfont \tf }
>
> and
>
> \tx=protected macro:\currentxfontsize \plusone \ifmmode \scriptstyle
> \orelse \ifconditional \c_font_inherit_scale \font_scale_inherit_x
> \else \font_scale_defined_x \fi \al 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?
>
\tf is the switch for the normal upright style and when you have \bf\tfa
the first font switch is just replaced by the second switch.
To get a larger text in bold style you can use \bfa.
\starttext
text {\tfa\bf text} text
text {\bfa text} text
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2079 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2023-05-27 5:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-26 19:38 Hans van der Meer via ntg-context
2023-05-27 5:56 ` Wolfgang Schuster via ntg-context [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cda5c975-d97b-7b24-4111-8a9dbe6d914e@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).