a question about \setuphead
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. Many thanks for your help, Pablo -- http://www.ousia.tk
Hello Pablo, the definition should be the following: \setuphead[subsection][style=\bf, deepnumbercommand={(}, number=yes, textcommand={\unskip)~}] Wishes, Tomas Thu, Feb 11, 2016 ve 04:08:46PM +0100 Pablo Rodriguez napsal(a): # 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. # # Many thanks for your help, # # Pablo # -- # http://www.ousia.tk # ___________________________________________________________________________________ # 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 # ___________________________________________________________________________________ Tomáš Hála -------------------------------------------------------------------- Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 -------------------------------------------------------------------- http://akela.mendelu.cz/~thala
On 02/11/2016 04:44 PM, Tomas Hala wrote:
Hello Pablo,
the definition should be the following:
\setuphead[subsection][style=\bf, deepnumbercommand={(}, number=yes, textcommand={\unskip)~}]
Hi Thomas, many thanks for your reply. Your code is exactly what I needed. Many thanks for your help, Pablo -- http://www.ousia.tk
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
participants (3)
-
Pablo Rodriguez
-
Tomas Hala
-
Wolfgang Schuster