From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70075 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: right and left alignment in header w/ linebreak sign Date: Sun, 17 Jul 2011 17:48:12 +0200 Message-ID: <20110717174812.29905d1a@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310917707 29383 80.91.229.12 (17 Jul 2011 15:48:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 15:48:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 17:48:23 2011 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 1QiTZu-0000Mu-JS for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2011 17:48:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0068BCAE75; Sun, 17 Jul 2011 17:48:22 +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 JNk3BrAFmxXl; Sun, 17 Jul 2011 17:48:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7978CAE62; Sun, 17 Jul 2011 17:48:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E5DECAE62 for ; Sun, 17 Jul 2011 17:48:16 +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 hwLIpeXihju3 for ; Sun, 17 Jul 2011 17:48:14 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 6E9D3CAE60 for ; Sun, 17 Jul 2011 17:48:14 +0200 (CEST) Original-Received: from mout9.freenet.de (mout9.freenet.de [IPv6:2001:748:100:40::2:b]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6HFmDX0023684 for ; Sun, 17 Jul 2011 17:48:14 +0200 Original-Received: from [195.4.92.26] (helo=16.mx.freenet.de) by mout9.freenet.de with esmtpa (ID tralalas@freenet.de) (port 25) (Exim 4.76 #5) id 1QiTZl-0002Tn-M8 for ntg-context@ntg.nl; Sun, 17 Jul 2011 17:48:13 +0200 Original-Received: from [31.18.179.211] (port=55059 helo=freenet.de) by 16.mx.freenet.de with esmtpsa (ID tralalas@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.72 #5) id 1QiTZl-0004Q8-I2 for ntg-context@ntg.nl; Sun, 17 Jul 2011 17:48:13 +0200 X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:748:100:40::2:b; country=DE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06F93MdHT - 9dbba751791d - 20110717 X-Scanned-By: CanIt (www . roaringpenguin . com) on IPv6:2001:610:1:80ab:192:87:102:69 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:70075 Archived-At: Hi, I am trying to have the header text aligned at the outer border of margin. At the moment I have \setupheadertexts[margin][][\rightaligned{\CurrentChapter}][\leftaligned{\CurrentChapter}][] and in the text \chapter{A very, very long long heading} and it works like I expect it. But as soon I have a linebreak in the heading (via \\) I get following error message: structure > sectioning > chapter @ level 2 : 0.1 -> A very,\\very long long title ! Extra }, or forgotten \endgroup. system > tex > error on line 1 in file context-test-struktur3.tex: Extra }, or forgotten ... As soon I remove the alignment in the header also the chapter with the linebreak sign works - but of course I get then a wrong alignment. How can I make that the header works with the correct alignment and linebreaks in the heading? (header should be still without linebreaks) Thanks in advance! Complete example: -------------8<---------------------------- % define margins \definelayout[WithMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm] \setuplayout[WithMarginnotes] \setuppagenumbering[alternative=doublesided,location=] \showframe % define header \define\CurrentChapter% {\doiftextelse {\getmarking[chapternumber]}% {\getmarking[chapternumber].~\getmarking[chapter]}% {\getmarking[chapter]}% } \setupheadertexts[margin][][\rightaligned{\CurrentChapter}][\leftaligned{\CurrentChapter}][]% % \starttext \completecontent[criterium=all] \chapter{A very,\\very long long heading} \chapter{A very, very long long heading} \chapter{End} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________