ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars Huttar <lars_huttar@sil.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: question about linespace adjustment
Date: Tue, 24 Sep 2013 17:07:13 -0400	[thread overview]
Message-ID: <5241FF01.1020604@sil.org> (raw)
In-Reply-To: <CAG5iGsBxmgj5K1VRpp_id-4FKgCehdfTqTe+991UiPY-W6re7g@mail.gmail.com>

Luigi,
Thanks for your reply.

On 9/24/2013 2:18 PM, luigi scarso wrote:
>
> On Tue, Sep 24, 2013 at 7:45 PM, Lars Huttar <lars_huttar@sil.org
> <mailto:lars_huttar@sil.org>> wrote:
>
>
>     Is it that \switchdobodyfont changes the *body* font, which
>     engages the
>     associated bodyfont environment...
>     whereas \tfc changes the *font*, not the *body* font?
>
>     Lars
>
> You can look into
>  font-pre.mkiv

OK. I'm looking at it,
http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/font-pre.mkiv
Is there anything in particular you had in mind that I can learn from it?
I found some aliases, e.g. \smaller, which are handy to know. But I
don't know how much I can rely on the undocumented ones to continue to
do what they do now.

> \tfc augment the fontsize of a factor of 1.728
> It's relative to the default fount size not to the current fontsize:
> {\tfc foo {\tfc foo}} both foo have the same size

Thank you, this is an important nugget that I didn't understand when
reading the documentation. \setsmallbodyfont and \setbigbodyfont, in
contrast, change the font size relative to the current size.

>
> But interlinespace is not modified, so we need to reset
> \starttext
> OK: \input knuth\blank{\tfx WRONG: \input knuth\blank \tfc WRONG:
> \input knuth\relax} \page
> OK: \input knuth\blank{\tfx\setupinterlinespace OK: \input knuth\blank
> \tfc WRONG: \input knuth\blank} \page
> OK: \input knuth\blank{\tfx\setupinterlinespace OK: \input knuth\blank
> \tfc\setupinterlinespace OK: \input knuth\blank}
> \stoptext

Ok. This confirms what Aditya said, and what the manual says: that you
have to use \setupinterlinespace after \tfx or \tfc if you want the
interlinespace to be adjusted.

But I would really like to understand the categories involved here.
So we have one category of font size selector commands, which includes
\setsmallbodyfont and \setbigbodyfont, that cause interlinespace to be
adjusted automatically.
Then we have another category, including \tfc, \tfx, \ita, and others,
that do not cause interlinespace to be adjusted.

What is the rhyme or reason behind these categories? And that would help
me know, which other commands belong to which category? E.g. would
\serif cause interlinespace to be adjusted? An experiment would reveal
the answer, at least in the circumstances that I think of testing, but
I'd like to understand the conceptual model.
Maybe the concept is that the first category affects the "body font"
(and therefore interacts with the properties of the body font
environment), and the second category only affects the "font" (and I'm
still not clear on how the "body font" differs from the current font).

Thanks for your help,
Lars

___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2013-09-24 21:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-24 14:36 Lars Huttar
2013-09-24 14:51 ` Aditya Mahajan
2013-09-24 16:01 ` Lars Huttar
2013-09-24 17:45   ` Lars Huttar
2013-09-24 18:18     ` luigi scarso
2013-09-24 21:07       ` Lars Huttar [this message]
2013-09-24 21:25         ` Aditya Mahajan
2013-09-25 19:54           ` Lars Huttar
2013-09-25 21:00             ` luigi scarso
2013-09-25 21:02             ` Wolfgang Schuster
2013-09-25 21:45               ` Lars Huttar
2013-09-26 19:47                 ` Wolfgang Schuster
2013-09-27 15:57                   ` Lars Huttar
2013-09-30 20:22                   ` Lars Huttar

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=5241FF01.1020604@sil.org \
    --to=lars_huttar@sil.org \
    --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).