From: Alan BRASLAU <alan.braslau@cea.fr>
To: <josephcanedo@gmail.com>
Cc: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: Simple font size changes command
Date: Sun, 12 Jun 2016 09:19:54 -0600 [thread overview]
Message-ID: <20160612091954.2ad09d6a@cea.fr> (raw)
In-Reply-To: <544ff3673d204dc0bad0b96e80cfab50@gmail.com>
On Thu, 9 Jun 2016 21:47:07 +0000
<josephcanedo@gmail.com> wrote:
> Dear all,
>
>
> In a simple document using only 1 font but with different sizes what
> are the easiest switch commands to change font size locally ? I am
> aware of \tfa, \tfx etc …. but they do not seem to size in absolute
> size but rather relatively to current font size. In the following
> MWE :
>
>
> \starttext
>
>
> {\tfd Foo {\tfx Bar1}} {\tfx Bar2} Baz.
>
>
> \stoptext
>
>
>
> Bar1 is typeset much larger than Bar2.
>
>
> I’d look to write something like but don’t know who to get \BigSize
> and \SmallSize defined (and have Bar1 and Bar2 of same size) :
>
>
> {\BigSize Foo {\SmallSize Bar1}} {\SmallSize Bar2} Baz.
>
>
> Many thanks for any hint.
Perhaps (untested):
\definealternativestyle [BigFont] [{\setbodyfont [12pt]}]
\definealternativestyle [SmallFont] [{\setbodyfont [8pt]}]
\definehighlight [BigSize] [style=BigFont]
\definehighlight [SmallSize] [style=SmallFont]
\BigSize{Foo \SmallSize{Bar1}} \SmallSize{Bar2} Baz.
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2016-06-12 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 21:47 josephcanedo
2016-06-12 15:19 ` Alan BRASLAU [this message]
2016-06-12 16:57 ` josephcanedo
2016-06-13 3:19 ` Alan BRASLAU
2016-06-13 7:30 ` josephcanedo
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=20160612091954.2ad09d6a@cea.fr \
--to=alan.braslau@cea.fr \
--cc=josephcanedo@gmail.com \
--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).