From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: font size switching
Date: Mon, 17 Oct 2016 19:09:59 +0200 [thread overview]
Message-ID: <e482c338-b618-09e6-743b-a0be8af2f395@gmx.es> (raw)
In-Reply-To: <freemail.20161017181556.39308.1@fmxmldata09.freemail.hu>
On 10/17/2016 06:15 PM, Csikos Bela wrote:
> Dear context users:
>
> It seems to me that some of the the font size switching commands do not work
> as described in the context reference manual (contextref.pdf, 27/09/2013), e.g.
> \tfx. The manual writes on page 109 that "Note that these commands select
> font sizes relative to the default, not relative to whatever font size is currently in
> effect." But in my case \tfx switches to smaller compared to the size in effect, and
> not smaller compared to default size.
>
> In additions I couldn't find command for returning to default size after a font switching
> command. How to switch (back) to normal size?
Hi Csikos,
there is a workaround for that:
\definefontsize[n]
\setupbodyfontenvironment[default][n=1]
And then use \tfn.
BTW, font (and language) commands are switches, so they don’t require
text enclosed in parentheses (such as \emph{} in LaTeX). I would
discourage the use of \tfn, but you’re on your own.
x and xx are different font sizes, not x repeated (it could have been
named y or w instead). Here you have the difference:
\starttext
default, {\tfx smaller (x) {\tfx not smaller (x again)}}
default, {\tfx smaller (x) {\tfxx smaller (xx now)}}
\stoptext
BTW, default body font size is 12pt. I realized when I added and
commented the following command in the preamble:
\setupbodyfont[12pt]
Just in case it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2016-10-17 17:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-17 16:15 Csikos Bela
2016-10-17 17:09 ` Pablo Rodriguez [this message]
2016-10-17 17:31 ` Csikos Bela
2016-10-17 17:56 ` Pablo Rodriguez
2016-10-17 17:58 ` Thomas A. Schmitz
2016-10-17 18:14 ` Pablo Rodriguez
2016-10-17 18:28 ` Hans Hagen
2016-10-17 19:46 ` Pablo Rodriguez
2016-10-20 16:07 ` Csikos Bela
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=e482c338-b618-09e6-743b-a0be8af2f395@gmx.es \
--to=oinos@gmx.es \
--cc=ntg-context@ntg.nl \
/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).