ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: question about linespace adjustment
Date: Wed, 25 Sep 2013 23:02:35 +0200	[thread overview]
Message-ID: <C2144909-D966-4FCD-B7B6-4C0607C24045@gmail.com> (raw)
In-Reply-To: <52433F76.30905@sil.org>


Am 25.09.2013 um 21:54 schrieb Lars Huttar <lars_huttar@sil.org>:

> On 9/24/2013 5:25 PM, Aditya Mahajan wrote:
>> On Tue, 24 Sep 2013, Lars Huttar wrote:
>> 
>>> 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).
>> 
>> (Sorry for the terse replies...)
>> 
>> {\switchtobodyfont[14pt] Text $math$ \sans{Sans} \endgraf}
>> 
>> {\tfc Text $math$ \sans{Sans} \endgraf}
>> 
>> Aditya
> 
> I don't know how this answers the above question. Can anybody explain?
> 
> Clearly you're drawing a comparison between \switchtobodyfont[14pt] and
> \tfc.
> I've run the sample, and I see that, as in other samples earlier in this
> thread, \switchtobodyfont causes the interlinespace to be adjusted
> accordingly, and \tfc doesn't.
> 
> Is that intended to be an answer to 'how the "body font" differs from
> the current font'? And is the answer that the bodyfont is a conglomerate
> of more properties than just the font, including interlinespace?


You can’t expect from \tfa etc. to change the interlinespace because these
commands can be used in your paragraphs to change the size of certain
words only and in this case you don’t want a forced change of the interlinespace.

To adapt the interlinespace when you now use \tfa etc. you have to add
\setupinterlinespace to your code (arguments aren’t needed) to tell context
to recalculate it.

<example>
\setuppapersize[A3]

\starttext

% Standard text size

\begingroup

\input ward

\endgroup

\blank

% Bigger font size with standard linespacing

\begingroup \tfd

\the\bodyfontsize

\input ward

\endgroup

\blank

% Bigger font size with adapted linespacing

\begingroup \tfd \setupinterlinespace

\input ward

\endgroup

\blank

% Larger bodyfont

\begingroup \switchtobodyfont[25pt]

\input ward

\endgroup

\stoptext
</example>

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


  parent reply	other threads:[~2013-09-25 21:02 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
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 [this message]
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=C2144909-D966-4FCD-B7B6-4C0607C24045@gmail.com \
    --to=schuster.wolfgang@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).