From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105355 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem with the bottom line of a header Date: Tue, 22 Oct 2019 19:55:20 +0200 Message-ID: <9c597637-00d7-b47c-aaf1-1da56ae6b05c@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6721253660990447382==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="86058"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.6 To: mailing list for ConTeXt users , Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 22 19:56:01 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMyNx-000M90-Ee for gctc-ntg-context-518@m.gmane.org; Tue, 22 Oct 2019 19:55:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A4DE81616BE; Tue, 22 Oct 2019 19:55:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1EZbJKcindwm; Tue, 22 Oct 2019 19:55:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EB36816232A; Tue, 22 Oct 2019 19:55:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF9E5161E24 for ; Tue, 22 Oct 2019 19:55:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ooUHiPRlw1Eh for ; Tue, 22 Oct 2019 19:55:23 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.42; helo=mail-wm1-f42.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 280B51616BE for ; Tue, 22 Oct 2019 19:55:23 +0200 (CEST) Original-Received: by mail-wm1-f42.google.com with SMTP id c22so7928900wmd.1 for ; Tue, 22 Oct 2019 10:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=N6Og2jds1C4uYfR/PVFjX4uxd27VzcTp6Yw7JsNoxEQ=; b=iQ+UUD7Li+PQoRh9CQC/pjvjyKIM9McckFstv0F43TJMRlJdeGcPoqc5rLl/2I/MiS /FPO/1lyZPBhv5mV0fy3E+UBk7I//zdnZs4E8sONXKFYHZvXNH1skg05jNjdHlKm3JWw n6OQUwN26AQK95oaCIPE5zS14KfEQWl0RE0Hsd3tKclexwFzRpTNYGbENNDBwwsxBoQs k03IiN1RfDchvSyXD5VyKPR/fULdCrGFoAfp+iu+JQ1LT/coI25Ilq6wCiSYacCV9reF zu6p3ItcExFgoOHIYKsRs8U3N6DubK8oyR9WihFM9RgO6XNULvqlt8dPgSs8QY1X9nAc crgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=N6Og2jds1C4uYfR/PVFjX4uxd27VzcTp6Yw7JsNoxEQ=; b=pwbLpai/mC7nj5PTDODp1evm/lXtNJt9hHZPHXxLzaDPkF7nZRas36VnvEICg/NcXi +5P/g5JpWP3UcmvwJc3I0WBY59LEQWJ2/qvNt+D2rNWc2AAvGPzBSyaToYKwZkmpRuA/ 9RE3CsT2cbnfLhkgd81Ibpaty1jmGSsLVxj90+5YXY906WTM+NNO0jqKvyVDRCrSJGB1 MxfClDITKOFD1QREau/Aj1VVvJxyPQ+CML3jngQ/XjKGiuzaztKrH2rX/vpQHTXOiBqH TqScmnTKhRwXtPCHqyGnIUQDlpy2ZzIEFGX7dd0OAEv/nKqYtSUa9hg/guC2CzRCi/jd If+A== X-Gm-Message-State: APjAAAWjNf0MsIbide5Efo+RqkWBLaWu4J6j/Ey0UBkmXfqHdCPdZ+WC G3qUOZ2NcVNRSt9KfivYFfg= X-Google-Smtp-Source: APXvYqy8oMN64tjfHUhpJzCpnSXL8ZZk/1BllQrxMZIdJJw0lslEYOujxo0ethoRiiG3F+YlpHYCog== X-Received: by 2002:a7b:ce12:: with SMTP id m18mr3936214wmc.35.1571766922715; Tue, 22 Oct 2019 10:55:22 -0700 (PDT) Original-Received: from [192.168.1.11] (x4d023583.dyn.telefonica.de. [77.2.53.131]) by smtp.gmail.com with ESMTPSA id x7sm25387168wrg.63.2019.10.22.10.55.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Oct 2019 10:55:21 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105355 Archived-At: This is a multi-part message in MIME format. --===============6721253660990447382== Content-Type: multipart/alternative; boundary="------------4B151BBC4D1A93067AC8F1E8" Content-Language: en-US This is a multi-part message in MIME format. --------------4B151BBC4D1A93067AC8F1E8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------4B151BBC4D1A93067AC8F1E8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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

--------------4B151BBC4D1A93067AC8F1E8-- --===============6721253660990447382== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6721253660990447382==--