From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82717 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Centered title with numeration on the same line Date: Mon, 3 Jun 2013 19:25:33 +0200 Message-ID: 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: multipart/mixed; boundary="===============1934900490==" X-Trace: ger.gmane.org 1370280348 14839 80.91.229.3 (3 Jun 2013 17:25:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 17:25:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 03 19:25:50 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 1UjYVw-0003bT-Nq for gctc-ntg-context-518@m.gmane.org; Mon, 03 Jun 2013 19:25:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E5E85101EA; Mon, 3 Jun 2013 19:25:47 +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 vd2ifbF2sfIp; Mon, 3 Jun 2013 19:25:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 59CAE101E7; Mon, 3 Jun 2013 19:25:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D35D101E7 for ; Mon, 3 Jun 2013 19:25:45 +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 kCHDNYWfZYZW for ; Mon, 3 Jun 2013 19:25:44 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 78DAC101E0 for ; Mon, 3 Jun 2013 19:25:34 +0200 (CEST) Original-Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r53Hp6mO027663 for ; Mon, 3 Jun 2013 19:51:07 +0200 Original-Received: by mail-la0-f52.google.com with SMTP id fo13so3698501lab.39 for ; Mon, 03 Jun 2013 10:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=76ocIfPWY80ltLeNplRw6/38JRyrExHmVJWHg5QFNeY=; b=DmaItZOouRYP73KllDl9RXkl+GtDW5vvZBwybRTFWPV8a08Ld+YS7/+sZcz/PhZkV0 BY974CzmO4kTuJsQVDUMISYvffYps+pKkLRNLwPSRYjLrI0Bn0hO6p+Hj0Iqaot9zFMS IOJqkIRbO1l30S1MLnE8H4bZSUXVqky5vl4dY4tmtY9JiMescpfx5k6+oW3zM73euxqD R7vG/TxjpffJigSuxm52ueaX0PYmboc8GL2OkUmtxMs3py2pxbM+K9ENvk0XfuzNTkkv J6YbvPM2/xYG2/DVS7SthDwJn0Na5ZNQ4h+lmRnhR0YzsIdeqHthM8p1deLh1oLGQ6gv 5UzQ== X-Received: by 10.112.201.102 with SMTP id jz6mr7794020lbc.42.1370280333243; Mon, 03 Jun 2013 10:25:33 -0700 (PDT) Original-Received: by 10.114.3.50 with HTTP; Mon, 3 Jun 2013 10:25:33 -0700 (PDT) In-Reply-To: <51accdb2.62dcc20a.1a1a.ffffc4f5SMTPIN_ADDED_BROKEN@mx.google.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01JHRP7Ed - ba96a031d60b - 20130603 (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:82717 Archived-At: --===============1934900490== Content-Type: multipart/alternative; boundary=001a11c3686a817bd304de434023 --001a11c3686a817bd304de434023 Content-Type: text/plain; charset=UTF-8 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) -- luigi --001a11c3686a817bd304de434023 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Mon, Jun 3, 2013 at 7:08 PM, honyk <j.tosovsky@email.cz&g= t; wrote:
Dear All,

in MkIV when any title is centered, its numeration is placed on a separate<= br> line above the title itself.

I'd expect inline formatting which could be overridden as described her= e
http://w= iki.contextgarden.net/Titles

My code:

\setuplabeltext[en][chapter=3DChapter~]

% while for chapter title this line break is handy (in my use case)
\setuphead[chapter][
=C2=A0 =C2=A0 =C2=A0 =C2=A0 alternative=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 style=3D\bfc,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 conversion=3DRomannumerals,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 numbercommand=3D\groupedcommand{\cap}{\blank[0.= 5cm]},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 after=3D{\blank[1cm]},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ]

% for section it is inappropriate
\setuphead[section][
=C2=A0 =C2=A0 =C2=A0 =C2=A0 alternative=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 style=3D\bfa,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sectionsegments=3Dsection, % ignore component l= abel
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ]

\starttext
\chapter{Foo}
\section{The First Section}
Text.
\stoptext

How can I keep numeration and title together?

Thanks,
Jan


\setuplabeltext[en][chapter=3DChapter~]

% = while for chapter title this line break is handy (in my use case)
\setup= head[chapter][
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 align=3Dmiddle= ,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 style=3D\bfc,
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 conversion=3DRomannumerals,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 deepnumbercommand=3D\cap,% \grou= pedcommand{\cap}{\blank[0.5cm]},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 after=3D{\blank[1cm]},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ]<= br>
% for section it is inappropriate
\setuphead[section][
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alternative=3Dmiddle,
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 style=3D\bfa,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sectionsegments=3Dsection, % ign= ore component label
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ]

= \starttext
\chapter{Foo}
\section{The First Section}
Text.
\sto= ptext

Maybe do you want deepnumbercommand ?
(see the links for th= e difference numbercommand vs deepnumbercommand)

--
luigi
--001a11c3686a817bd304de434023-- --===============1934900490== 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 ___________________________________________________________________________________ --===============1934900490==--