From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82763 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Centered title with numeration on the same line Date: Mon, 3 Jun 2013 18:57:43 +0200 Message-ID: <16755.2274339416$1370415587@news.gmane.org> 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 1370415581 975 80.91.229.3 (5 Jun 2013 06:59:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Jun 2013 06:59:41 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 05 08:59:42 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 1Uk7h7-00034w-1T for gctc-ntg-context-518@m.gmane.org; Wed, 05 Jun 2013 08:59:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCF45101E8; Wed, 5 Jun 2013 08:59:39 +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 daaQdjT8RIJM; Wed, 5 Jun 2013 08:59:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0B6FE101E4; Wed, 5 Jun 2013 08:59:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C27D7101E7 for ; Mon, 3 Jun 2013 18:58:01 +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 BTEnfdjNGMF6 for ; Mon, 3 Jun 2013 18:57:55 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 69DA3101E0 for ; Mon, 3 Jun 2013 18:57:45 +0200 (CEST) Original-Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net [62.179.121.35]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r53Gvh35017660 for ; Mon, 3 Jun 2013 18:57:44 +0200 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep15-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20130603165743.XYFW28100.viefep15-int.chello.at@edge02.upcmail.net> for ; Mon, 3 Jun 2013 18:57:43 +0200 Original-Received: from emk ([78.102.141.166]) by edge02.upcmail.net with edge id jsxj1l0043bcWAN02sxjDQ; Mon, 03 Jun 2013 18:57:43 +0200 X-SourceIP: 78.102.141.166 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac5ge3TrFZWdMsoXQZ+ANYGPJakOBA== Content-Language: cs X-Bayes-Prob: 0.0009 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.35; 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: 0QJHQVHe5 - bdf7d857a361 - 20130603 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Mailman-Approved-At: Wed, 05 Jun 2013 08:59:36 +0200 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:82763 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________