* Subsection number independant of section
@ 2014-05-02 12:43 Fabrice Couvreur
2014-05-02 15:53 ` Romain Diss
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2014-05-02 12:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 480 bytes --]
Hi,
I would get a dial like this :
A. Section one
1. Subsection one
With the code below, I get :
A. Section one
A. A. Subsection one
\setupsection
[section]
[conversion=Character]
\setuplabeltext
[section={{},{.}},
subsection={{},{.}}]
\setupsection
[subsection]
[previousnumber=no]
\setupbodyfont[pagella,11pt]
\starttext
\section{Définitions}
\subsection{Approche de la loi binomiale}
\stoptext
Why ?
Regards,
Fabrice
[-- Attachment #1.2: Type: text/html, Size: 1449 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subsection number independant of section
2014-05-02 12:43 Subsection number independant of section Fabrice Couvreur
@ 2014-05-02 15:53 ` Romain Diss
2014-05-02 17:14 ` Fabrice
0 siblings, 1 reply; 3+ messages in thread
From: Romain Diss @ 2014-05-02 15:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Le 02/05/2014, Fabrice Couvreur a écrit
> I would get a dial like this :
>
> A. Section one
> 1. Subsection one
This should work:
\setuphead
[section]
[sectionstopper=.,
%sectionsegments=3:3,
conversion=Characters,]
\setuphead
[subsection]
[sectionstopper=.,
sectionsegments=4:4,
conversion=number,]
\setupbodyfont
[pagella,11pt]
\starttext
\section{Définitions}
\subsection{Approche de la loi binomiale}
\stoptext
--
Romain Diss
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subsection number independant of section
2014-05-02 15:53 ` Romain Diss
@ 2014-05-02 17:14 ` Fabrice
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice @ 2014-05-02 17:14 UTC (permalink / raw)
To: ntg-context
Hi Romain,
Thank you, it works.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-02 17:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-02 12:43 Subsection number independant of section Fabrice Couvreur
2014-05-02 15:53 ` Romain Diss
2014-05-02 17:14 ` Fabrice
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).