From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93686 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: a question about \setuphead Date: Thu, 11 Feb 2016 23:28:51 +0100 Message-ID: <56BD0B23.4030606@gmail.com> References: <56BCA3FE.1020507@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6206418011333248048==" X-Trace: ger.gmane.org 1455229774 1424 80.91.229.3 (11 Feb 2016 22:29:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 22:29:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 11 23:29:23 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aTzjl-0008KG-Sa for gctc-ntg-context-518@m.gmane.org; Thu, 11 Feb 2016 23:29:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFFA36A7B; Thu, 11 Feb 2016 23:29:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c1oQdTxlAhC8; Thu, 11 Feb 2016 23:29:11 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2FBAD6A7A; Thu, 11 Feb 2016 23:29:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 190706A7A for ; Thu, 11 Feb 2016 23:29:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UzphP7lOOD96 for ; Thu, 11 Feb 2016 23:29:03 +0100 (CET) Original-Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 63D046A79 for ; Thu, 11 Feb 2016 23:28:53 +0100 (CET) Original-Received: by mail-wm0-f46.google.com with SMTP id p63so87698848wmp.1 for ; Thu, 11 Feb 2016 14:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=93O3kMa9CWOGeEpKalNb1WAbdPlQjZdBBoIMj1iarhc=; b=O42+Hors+bKJWh7Q8OqaiKmMcciLKRxi0xPfDRx3jQrqKTh63cus4xw4LxvTK1/y+x PKvRUpM0mrwOCoInL8Q6abpYQQXFf1QCygKbvoQida1Tum0Hb34grUhasxNetlFjSfcD jL5xtgJNNV2F5X10Sobp88YiyxdZeyN1DY9hiv4PIGgaQu7pCoW3w10W6Z4CEKb+N4PO G5J3clRIY0HgBf2lpbSAI2j67V5gn0MlzByN6UGvy2GNnDGeMcYYsd3BH7PgL4v3qC3n vEm6l3Ed4iAux7NeXOhA9ddVPom4ZHPwZrdtSgdU7HD0wd/OLPFS5vF+AsXEudTRYVPM FpYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=93O3kMa9CWOGeEpKalNb1WAbdPlQjZdBBoIMj1iarhc=; b=bHzfkqgNV8eOCAmi83EJlzKQBZy4fYeI8FwJd66Opyrhaw52lcDKocFrsnfFKuCMtb nU++zVTuGTvvZyi3GWRSm0ANF5G9PKkFnXqmbBHBv7hWAYF5S86j1F3kNWsmKBJcv8nw 2jDA7vAkMgxK6l5MI6Got28KQRMl/lVMjTeuL/H2Ph+9uNsOstj5eaIcUETR+j3KNzx8 w/WHHUwXoDuZSBDcNbhociv60XFLK0r+c4w2xkswNdoR55MURTaPjI7zIX63vKebm0Z3 16iJ7XWLMYuID9UCbf1VIfI8l5hfy4FP59JlkYRc/exEoQ4XJA6dwSiasjnD+f/gW5fh OwNw== X-Gm-Message-State: AG10YOS12kCG41ROL7/i5UahMvdUtDfOUANdC+QvdWhroTWMM1O7TgjgnMRV98fLdc3krg== X-Received: by 10.28.225.8 with SMTP id y8mr952475wmg.94.1455229732839; Thu, 11 Feb 2016 14:28:52 -0800 (PST) Original-Received: from keima.localdomain (x2f2e8ba.dyn.telefonica.de. [2.242.232.186]) by smtp.gmail.com with ESMTPSA id i1sm9383581wjs.45.2016.02.11.14.28.51 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 14:28:52 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <56BCA3FE.1020507@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93686 Archived-At: This is a multi-part message in MIME format. --===============6206418011333248048== Content-Type: multipart/alternative; boundary="------------040903020400070601090203" This is a multi-part message in MIME format. --------------040903020400070601090203 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Pablo Rodriguez > 11. Februar 2016 um 16:08 > Dear list, > > I have the following sample: > > \setuplabeltext[subsection=3DP=C3=A1rrafo~] > \setuphead[subsection][style=3D\bf, deepnumbercommand=3D{(}] > \starttext > \subsection{Condiciones} > \stoptext > > I want the title to be: > > P=C3=A1rrafo (1) Condiciones > > How can I set this with deepnumbercommand? Or which is the right option= ? > > BTW, enabling prefix, separator or stopper didn=E2=80=99t change anythi= ng. Or I > didn=E2=80=99t know how to use it properly. It=E2=80=99s possible you=E2=80=99re using the wrong names for the starte= r and stopper keys %%%% begin example \setuplabeltext[subsection=3DP=C3=A1rrafo~] \setuphead [subsection] [sectionstarter=3D(, sectionstopper=3D)] \starttext \subsection{Condiciones} \stoptext %%%% end example but you should be aware that context shows the delmiters also in referenc= es. When you want more control about starter/stopper symbols you can apply a processor the counter for the subsection number. %%%% begin example \setuplabeltext[subsection=3DP=C3=A1rrafo~] \defineprocessor[delimiters][left=3D(,right=3D)] \defineconversionset[sectionnumbers][n,n,n,delimiters->n][n] \setuphead [subsection] [sectionconversionset=3Dsectionnumbers] \starttext \subsection{Condiciones} \stoptext %%%% end example Wolfgang --------------040903020400070601090203 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
11= .=20 Februar 2016 um 16:08
Dear list,

I hav= e=20 the following sample:

\setuplabeltext[subsection=3DP=C3=A1rraf= o~]
\setuphead[subsection][style=3D\bf, deepnumbercommand=3D{(}]
=20 \starttext
\subsection{Condiciones}
\stoptext

I=20 want the title to be:

P=C3=A1rrafo (1) Condiciones

How = can I set this with deepnumbercommand? Or which is the right option?

BT= W, enabling prefix, separator or stopper didn=E2=80=99t change anything. Or= I
didn=E2=80=99t know how to use it properly.
It=E2=80=99s possible you=E2=80=99re using the wrong names for the starte= r and stopper=20 keys

%%%% begin example
\setuplabeltext[subsection=3DP=C3=A1rrafo~]

\setuphead
=C2=A0 [subsection]
=C2=A0 [sectionstarter=3D(,
=C2=A0=C2=A0 sectionstopper=3D)]

\starttext
\subsection{Condiciones}
\stoptext
%%%% end example

but you should be aware that context shows the delmiters also in=20 references.

When you want more control about starter/stopper symbols you can apply a processor the counter for the subsection number.

%%%% begin example
\setuplabeltext[subsection=3DP=C3=A1rrafo~]

\defineprocessor[delimiters][left=3D(,right=3D)]

\defineconversionset[sectionnumbers][n,n,n,delimiters->n][n]

\setuphead
=C2=A0 [subsection]
=C2=A0 [sectionconversionset=3Dsectionnumbers]

\starttext
\subsection{Condiciones}
\stoptext
%%%% end example

Wolfgang


--------------040903020400070601090203-- --===============6206418011333248048== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============6206418011333248048==--