From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82724 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 20:28:38 +0200 Message-ID: References: <20130603172942.GA18664@homerow> <51acdb8b.2777c20a.018b.1c8dSMTPIN_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="===============1181536084==" X-Trace: ger.gmane.org 1370284137 24778 80.91.229.3 (3 Jun 2013 18:28:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 18:28:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 03 20:28:59 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 1UjZV4-0005Nj-Lj for gctc-ntg-context-518@m.gmane.org; Mon, 03 Jun 2013 20:28:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42DE2101EE; Mon, 3 Jun 2013 20:28:58 +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 HcXxzioO92yS; Mon, 3 Jun 2013 20:28:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CEE88101E7; Mon, 3 Jun 2013 20:28:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15ECB101E7 for ; Mon, 3 Jun 2013 20:28:51 +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 FDdMUa49+k8t for ; Mon, 3 Jun 2013 20:28:50 +0200 (CEST) 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 4D49E101E0 for ; Mon, 3 Jun 2013 20:28:39 +0200 (CEST) Original-Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r53IScJu012381 for ; Mon, 3 Jun 2013 20:28:38 +0200 Original-Received: by mail-la0-f51.google.com with SMTP id lx15so3722531lab.24 for ; Mon, 03 Jun 2013 11:28:38 -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=EvCLOa7nCPq6WleNTRsmWpbTM3a9vHSFiElVHCwHcNU=; b=maIkmsZ+TNIdRLj0sSUL8bv1xvDQtfOTaujZRJTovkeLqw1gRbNbkjTEE2ADRv/I6q nI3aKuxOqMO3pPtB7eIGmOSck7uGgK+Y8qgLqgHP27Qx7EqvhLeWPZ/6hmid1uX26Q5x ZVnAE+nN+8NI1i2Om5eVTbl3Zdlwtc6lij6NvNlgd1KjyqTCYHPL/4dZZ4gg06uK6lSX E2RsMy0aJpfdSxu+payOgg5ecPOMVzNq5ko+S5QiWEh39TSBXNPuE1z2/pwWVcLWk/H7 JddLaPf1r2tAV6IhSuUE1o23DxY8rjJoS1WTlvbFERSkKvHiuQJwhiV5vU7hFndcrPe5 MCPg== X-Received: by 10.112.201.102 with SMTP id jz6mr7902979lbc.42.1370284118119; Mon, 03 Jun 2013 11:28:38 -0700 (PDT) Original-Received: by 10.114.3.50 with HTTP; Mon, 3 Jun 2013 11:28:38 -0700 (PDT) In-Reply-To: <51acdb8b.2777c20a.018b.1c8dSMTPIN_ADDED_BROKEN@mx.google.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJHSsCGi - 2f8d6f24062f - 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:82724 Archived-At: --===============1181536084== Content-Type: multipart/alternative; boundary=001a11c3686a1a1b0f04de4422ab --001a11c3686a1a1b0f04de4422ab Content-Type: text/plain; charset=UTF-8 On Mon, Jun 3, 2013 at 8:07 PM, honyk wrote: > Marco, > > thanks a lot, it gives me exactly what I wanted! > > But to be honest, I expected a single option for this :-) > > \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][ align=middle, style=\bfa, sectionsegments=section, % ignore component label ] \starttext \chapter{Foo} \section{The First Section} Text. \stoptext But again, are you sure about the \cap command ? It also sets the CHAPTER as small caps . -- luigi --001a11c3686a1a1b0f04de4422ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Mon, Jun 3, 2013 at 8:07 PM, honyk <j.tosovsky@email.cz&g= t; wrote:
Marco,

thanks a lot, it gives me exactly what I wanted!

But to be honest, I expected a single option for this :-)


\setuplabeltext[en][chapter=3DChapte= r~]

% while for chapter title this line break is handy (in my use ca= se)
\setuphead[chapter][
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 a= lternative=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 numbercommand=3D\groupedcommand{= \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 ]

% = for section it is inappropriate
\setuphead[section][
=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\bfa,
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 sectionsegments=3Dsection, % ignore component l= abel
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ]

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

But again, are you sure about the \cap command ?
It also sets the CHAPTER as small caps .
<= div class=3D"gmail_extra">
--
luigi
--001a11c3686a1a1b0f04de4422ab-- --===============1181536084== 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 ___________________________________________________________________________________ --===============1181536084==--