ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Neal Lester <neallester@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: White Space in Running Headers
Date: Thu, 4 Dec 2014 11:25:10 -0800	[thread overview]
Message-ID: <CAH=g7+ntydyP_HGdMZETY1u00LLWw8sKyeY-a3TV0qL_mF_vFQ@mail.gmail.com> (raw)
In-Reply-To: <547F513C.80904@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 3101 bytes --]

The following gets me close to what I am looking for.  Adding
\setupinterlinespace[1pt] seems to suppress the addition of space between
the lines of the header.  Changing the interlinespace only seems to have an
effect above some threshold related to the font size. For example, changing
1pt to 3pt has no visible effect. Changing 1pt to 10pt adds space between
the first and second lines only. Changing 1pt to 100pt adds space between
lines 1/2 and 2/3. I would prefer to have precise control over the space
between the lines, but I can live with this (it is much better than the
large spaces which appear of you remove the \setupinterlinespace
declarations).

This still leaves the problem of calculating the header height provided in
\setuplayout so that body text is a set distance from the header for
arbitrary font size, number of lines, and text contained in the header.

Thanks, Neal

\starttext
\setuppapersize[letter]
\setuplayout[topspace=0.20in,height=10.60in,header=28pt,footer=0.32in,headerdistance=0.03in,footerdistance=0.03in,backspace=0.3in,width=7.90in]
\setuppagenumbering [location=]
\define\headerframe{{\framed[frame=on,strut=no,offset=0.0pt,height=fit,width=7.9in,align=middle]{{\switchtobodyfont[24.00pt]\setupinterlinespace[1pt]
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\par}
{\switchtobodyfont[10.00pt]\setupinterlinespace[1pt]
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\par}
{\switchtobodyfont[24.00pt]\setupinterlinespace[1pt]
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\par}}}}
\setupheadertexts[\headerframe][]
This is the body text.
\stoptext


On Wed, Dec 3, 2014 at 10:06 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 12/1/2014 9:57 PM, Neal Lester wrote:
>
>> What is the best way to obtain precise control over the space between
>> lines in a multi-line running header.  I need to be able to set the font
>> size within each line by point size. Different lines may have different
>> font sizes (indeed, there may be different font sizes within a single
>> line).
>>
>> I've tried a number of approaches but always seem to end up with
>> unexpected white space somewhere.
>>
>
> if you want an answer you need to provide a minimal example showing the
> problem
>
> Hans
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________

[-- Attachment #1.2: Type: text/html, Size: 4421 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2014-12-04 19:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-01 20:57 Neal Lester
2014-12-03 18:06 ` Hans Hagen
2014-12-04 19:25   ` Neal Lester [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='CAH=g7+ntydyP_HGdMZETY1u00LLWw8sKyeY-a3TV0qL_mF_vFQ@mail.gmail.com' \
    --to=neallester@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).