From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73586 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bug with \setuphead Date: Tue, 3 Jan 2012 07:57:58 -0500 (EST) Message-ID: References: <60BAAA36-6426-47F3-87ED-E2B674C3FBD2@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325595576 11248 80.91.229.12 (3 Jan 2012 12:59:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2012 12:59:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 03 13:59:32 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ri3xi-000671-6L for gctc-ntg-context-518@m.gmane.org; Tue, 03 Jan 2012 13:59:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99830CB1D4; Tue, 3 Jan 2012 13:59:27 +0100 (CET) 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 mKp9TCIKlf8w; Tue, 3 Jan 2012 13:59:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17B21CB1D1; Tue, 3 Jan 2012 13:59:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7728CB1D0 for ; Tue, 3 Jan 2012 13:59:23 +0100 (CET) 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 81rJDG+Gfy+P for ; Tue, 3 Jan 2012 13:59:21 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id ADE82CB1CE for ; Tue, 3 Jan 2012 13:59:21 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q03CxF7a031356 for ; Tue, 3 Jan 2012 13:59:20 +0100 Original-Received: FROM [10.0.2.15] (Unknown [117.197.155.93]) By tombraider.mr.itd.umich.edu ID 4F02FB9F.6691D.4886 ; Authuser adityam; 3 Jan 2012 07:59:12 EST In-Reply-To: <60BAAA36-6426-47F3-87ED-E2B674C3FBD2@googlemail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bGh0Xfza - 1989df80dd40 - 20120103 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73586 Archived-At: On Tue, 3 Jan 2012, Wolfgang Schuster wrote: > > Am 03.01.2012 um 13:18 schrieb Aditya Mahajan: > >> Hi, >> >> \setuphead[section] >> [ >> alternative=middle, >> header=high, >> page=yes, >> ] >> \starttext >> \section{Test} >> \stoptext > > Old internal command (\recalculatebackgrounds) was used in page-txt.mkvi. > > % \def\page_layouts_synchronize_element_indeed#vertical% > % {\ifx\currenttextstate \v!high \calculatevsizes\recalculatebackgrounds \else > % \ifx\previoustextstate\v!high \calculatevsizes\recalculatebackgrounds \else > % \ifx\currenttextstate \v!none \calculatevsizes\recalculatebackgrounds \else > % \ifx\previoustextstate\v!none \calculatevsizes\recalculatebackgrounds \fi\fi\fi\fi > % \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate} > > \def\page_layouts_synchronize_element_indeed#vertical% > {\ifx\currenttextstate \v!high \calculatevsizes\page_backgrounds_recalculate \else > \ifx\previoustextstate\v!high \calculatevsizes\page_backgrounds_recalculate \else > \ifx\currenttextstate \v!none \calculatevsizes\page_backgrounds_recalculate \else > \ifx\previoustextstate\v!none \calculatevsizes\page_backgrounds_recalculate \fi\fi\fi\fi > \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate} Thanks. Works perfectly. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________