From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82392 Path: news.gmane.org!not-for-mail From: Adam Khan Newsgroups: gmane.comp.tex.context Subject: Update value of \headerheight based on header content Date: Tue, 7 May 2013 17:56:00 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0371984416==" X-Trace: ger.gmane.org 1367967379 12835 80.91.229.3 (7 May 2013 22:56:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 May 2013 22:56:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed May 08 00:56:20 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZqny-0001Uw-Rh for gctc-ntg-context-518@m.gmane.org; Wed, 08 May 2013 00:56:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD385101F2; Wed, 8 May 2013 00:56:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Vf-OEe1KAOwa; Wed, 8 May 2013 00:56:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E51DF101EA; Wed, 8 May 2013 00:56:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55EE1101EA for ; Wed, 8 May 2013 00:56:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9+ydCVz9Q34F for ; Wed, 8 May 2013 00:56:12 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 1F15B101E0 for ; Wed, 8 May 2013 00:56:02 +0200 (CEST) Original-Received: from mail-vb0-x22d.google.com (mail-vb0-x22d.google.com [IPv6:2607:f8b0:400c:c02::22d]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r47Mu0B2005549 for ; Wed, 8 May 2013 00:56:01 +0200 Original-Received: by mail-vb0-f45.google.com with SMTP id 12so1048963vbf.32 for ; Tue, 07 May 2013 15:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=BEgVxU/lKn1KsBBuBivAI8GMt1l3ouRfoGvnuLRUqsQ=; b=qFg3Rew3diZFffMLszGb3UabW3EWr/UQ+ZlPIghqk4NebBWN+YIwyKosBAUELpzibv Ga2+kd90z9WeGFNPISof9a09IZJe1YWRHcHQkio5C7L7ce9HxBKzF+ji7tLZvIbchmF/ L4J/M1GFXruKRePgsOto0WMZqja69+9WpBrtvinkCSrWJi5ogIVYZxTBAS2/CLpjqSDF 8JDCwEpCW3JTbg3TPpxVTUIaGjhsETN+y59K+wXo+NNbiejWX6WTQCTF+7jVbPo1619C V/ZvCPA9GGIiQFKPKzpd4P6WvpdtA24KAD+r4iYDjjRsG+X+6TJnoBMsoDBFXKbQrz1l RBiw== X-Received: by 10.58.37.165 with SMTP id z5mr2778791vej.12.1367967360443; Tue, 07 May 2013 15:56:00 -0700 (PDT) Original-Received: by 10.220.35.79 with HTTP; Tue, 7 May 2013 15:56:00 -0700 (PDT) X-Bayes-Prob: 0.0055 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400c:c02::22d; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JxaU1AU - 74fac3e2447d - 20130508 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82392 Archived-At: --===============0371984416== Content-Type: multipart/alternative; boundary=089e01176d899572a904dc28b86f --089e01176d899572a904dc28b86f Content-Type: text/plain; charset=UTF-8 The code for my headers is of the form: \setupheadertexts[{\inframed[frame=off,width=\textwidth,location=depth,align={right,broad,nothyphenated},tolerance=verytolerant]{Author\\Title\\\tab{\getmarking[chapternumber]} \getmarking[chapter] \wordright{\pagenumber}}}] As you might imagine, the name of every chapter is not the same length. I would like to update the value of \headerheight for each component (each component of my project contains exactly one chapter.) based on the header contents that are produced for it. In LaTeX, for example, I do something similar with the following code: \settototalheight{\headheight}{\parbox{\textwidth}{Author\\Title\\\nameref{chaptername}} Any ideas? Sincerely yours, Adam Khan --089e01176d899572a904dc28b86f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The code for my headers is of the form:

\setupheadertexts[{\inframed[frame=3Doff,width=3D\textwidth,location= =3Ddepth,align=3D{right,broad,nothyphenated},tolerance=3Dverytolerant]{Auth= or\\Title\\\tab{\getmarking[chapternumber]} \getmarking[chapter] \wordright= {\pagenumber}}}]

As you might imagine, the name of every cha= pter is not the same length. =C2=A0I would like to update the value of \hea= derheight for each component (each component of my project contains exactly= one chapter.) based on the header contents that are produced for it. =C2= =A0In LaTeX, for example, I do something similar with the following code:

\settototalheight{\headheight}{\parbox{\tex= twidth}{Author\\Title\\\nameref{chaptername}}

Any ideas?

Sincerely yours,
Adam Khan
--089e01176d899572a904dc28b86f-- --===============0371984416== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0371984416==--