ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: a question about \setuphead
Date: Thu, 11 Feb 2016 23:28:51 +0100	[thread overview]
Message-ID: <56BD0B23.4030606@gmail.com> (raw)
In-Reply-To: <56BCA3FE.1020507@gmx.es>


[-- Attachment #1.1: Type: text/plain, Size: 1364 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 11. Februar 2016 um 16:08
> Dear list,
>
> I have the following sample:
>
> \setuplabeltext[subsection=Párrafo~]
> \setuphead[subsection][style=\bf, deepnumbercommand={(}]
> \starttext
> \subsection{Condiciones}
> \stoptext
>
> I want the title to be:
>
> Párrafo (1) Condiciones
>
> How can I set this with deepnumbercommand? Or which is the right option?
>
> BTW, enabling prefix, separator or stopper didn’t change anything. Or I
> didn’t know how to use it properly.
It’s possible you’re using the wrong names for the starter and stopper keys

%%%% begin example
\setuplabeltext[subsection=Párrafo~]

\setuphead
   [subsection]
   [sectionstarter=(,
    sectionstopper=)]

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

but you should be aware that context shows the delmiters also in 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=Párrafo~]

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

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

\setuphead
   [subsection]
   [sectionconversionset=sectionnumbers]

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

Wolfgang



[-- Attachment #1.2: Type: text/html, Size: 2531 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

      parent reply	other threads:[~2016-02-11 22:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 15:08 Pablo Rodriguez
2016-02-11 15:44 ` Tomas Hala
2016-02-11 16:07   ` Pablo Rodriguez
2016-02-11 22:28 ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56BD0B23.4030606@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).