ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Subject: Re: Problem with the bottom line of a header
Date: Tue, 22 Oct 2019 19:55:20 +0200	[thread overview]
Message-ID: <9c597637-00d7-b47c-aaf1-1da56ae6b05c@gmail.com> (raw)
In-Reply-To: <CACyK-erEkXsJHuu-cXJY3-pjQNQgL=+9-K=YYUke-mXNr3pkig@mail.gmail.com>


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

Fabrice Couvreur schrieb am 22.10.2019 um 10:46:
> Hello,
> I can not adjust the bottom line of my header even after playing with 
> location= and boffset.=

1. Try to create shorter examples, e.g. \setuplayout can be reduced to 
the header setting.

2. You header is not large enough for two lines of text.

3. Use \offset to change the vertical position of the frame in the middle.

\setuplayout
   [header=1cm,
    headerdistance=1cm]

\setupbackgrounds [header] [text] [frame=on]

\defineframed [headerframed] [align=normal]

\setupheadertexts
   [{\offset[y=-\strutdp]{\headerframed{Middle}}}]

\setupheadertexts
   [\headerframed {Left\\Left}]
   [\headerframed {Right}]

\starttext
\samplefile{dawkins}
\stoptext

Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2019-10-22 17:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-22  8:46 Fabrice Couvreur
2019-10-22 17:55 ` Wolfgang Schuster [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=9c597637-00d7-b47c-aaf1-1da56ae6b05c@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=fabrice1.couvreur@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).