From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82726 Path: news.gmane.org!not-for-mail From: "honyk" Newsgroups: gmane.comp.tex.context Subject: Re: Centered title with numeration on the same line Date: Mon, 3 Jun 2013 20:51:37 +0200 Message-ID: <32166.0075839192$1370285526@news.gmane.org> References: <51accdb2.62dcc20a.1a1a.ffffc4f5SMTPIN_ADDED_BROKEN@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370285521 7445 80.91.229.3 (3 Jun 2013 18:52:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 18:52:01 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 03 20:52:02 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 1UjZrN-00017k-D2 for gctc-ntg-context-518@m.gmane.org; Mon, 03 Jun 2013 20:52:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE0F9101F3; Mon, 3 Jun 2013 20:52:00 +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 dJMRCBqAk1RL; Mon, 3 Jun 2013 20:51:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 67C10101E7; Mon, 3 Jun 2013 20:51:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E300E101E7 for ; Mon, 3 Jun 2013 20:51:53 +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 sLx9bwSRWFl2 for ; Mon, 3 Jun 2013 20:51:48 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id B83A8101E0 for ; Mon, 3 Jun 2013 20:51:48 +0200 (CEST) Original-Received: from fep18.mx.upcmail.net (fep18.mx.upcmail.net [62.179.121.38]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r53IpbxY009135 for ; Mon, 3 Jun 2013 20:51:48 +0200 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep18-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20130603185137.TKUU18161.viefep18-int.chello.at@edge02.upcmail.net> for ; Mon, 3 Jun 2013 20:51:37 +0200 Original-Received: from emk ([78.102.141.166]) by edge02.upcmail.net with edge id jurc1l01r3bcWAN02urcCt; Mon, 03 Jun 2013 20:51:37 +0200 X-SourceIP: 78.102.141.166 In-Reply-To: X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac5gf2fdqJfu2uYtSme9mYbIg8exMgACtclg Content-Language: cs X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.38; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VJHSPB5y - ace233482300 - 20130603 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:82726 Archived-At: Dear Luigi, > > On Mon, Jun 3, 2013 at 7:08 PM, honyk wrote: > > Dear All, > > > > in MkIV when any title is centered, its numeration is placed on a separate > > line above the title itself. > > > > I'd expect inline formatting which could be overridden as described here > > http://wiki.contextgarden.net/Titles > > > > My code: > > > > \setuplabeltext[en][chapter=Chapter~] > > > > % while for chapter title this line break is handy (in my use case) > > \setuphead[chapter][ > > alternative=middle, > > style=\bfc, > > conversion=Romannumerals, > > numbercommand=\groupedcommand{\cap}{\blank[0.5cm]}, > > after={\blank[1cm]}, > > ] > > > > % for section it is inappropriate > > \setuphead[section][ > > alternative=middle, > > style=\bfa, > > sectionsegments=section, % ignore component label > > ] > > > > \starttext > > \chapter{Foo} > > \section{The First Section} > > Text. > > \stoptext > > > > How can I keep numeration and title together? > > > > Thanks, > > Jan > > \setuplabeltext[en][chapter=Chapter~] > > % while for chapter title this line break is handy (in my use case) > \setuphead[chapter][ > align=middle, > style=\bfc, > conversion=Romannumerals, > deepnumbercommand=\cap,% \groupedcommand{\cap}{\blank[0.5cm]}, > after={\blank[1cm]}, > ] > > % for section it is inappropriate > \setuphead[section][ > alternative=middle, > style=\bfa, > sectionsegments=section, % ignore component label > ] > > \starttext > \chapter{Foo} > \section{The First Section} > Text. > \stoptext > > Maybe do you want deepnumbercommand ? > (see the links for the difference numbercommand vs deepnumbercommand) The problematic part is that section title. The chapter title formatting is Ok (but thanks for showing the way how to deal with these cases for future uses). Applying deepnumbercommand to section didn't help to me... Regards, Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________