* Re: White Space in Running Headers
2014-12-03 18:06 ` Hans Hagen
@ 2014-12-04 19:25 ` Neal Lester
0 siblings, 0 replies; 3+ messages in thread
From: Neal Lester @ 2014-12-04 19:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread