ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* numbering sections/subsections
@ 2022-07-09 22:35 Alan Bowen via ntg-context
  2022-07-09 22:58 ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen via ntg-context @ 2022-07-09 22:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Bowen


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

I’m trying to get my sections numbered with capital letters and my
subsections with Arabic numbers. So far, no joy. What am I missing?

Alan

Mwe: with ConText ver: 2022.01.21 20:13 LMTX  fmt: 2022.2.1. (The problem
persists when I run ConTeXt online)

\setuphead[section][conversion=A]
\setuphead[subsection][conversion=n,
sectionsegements=section:subsection, stopper={.}]

\starttext

\startsection[title=New section]
\input knuth
\startsubsection[title=New subsection]
\input ward
\stopsubsection
\stopsection

\stoptext

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: numbering sections/subsections
  2022-07-09 22:35 numbering sections/subsections Alan Bowen via ntg-context
@ 2022-07-09 22:58 ` Henning Hraban Ramm via ntg-context
  2022-07-10 20:25   ` Alan Bowen via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-09 22:58 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

Am 10.07.22 um 00:35 schrieb Alan Bowen via ntg-context:
> I’m trying to get my sections numbered with capital letters and my 
> subsections with Arabic numbers. So far, no joy. What am I missing?
> 
> Alan
> 
> Mwe: with ConText ver: 2022.01.21 20:13 LMTX  fmt: 2022.2.1. (The 
> problem persists when I run ConTeXt online)
> 
> \setuphead[section][conversion=A]
> \setuphead[subsection][conversion=n, sectionsegements=section:subsection, stopper={.}]

\definestructureconversionset[mySet][A,n,A,n][n] % starts at part!
\setuphead[section,subsection][sectionconversionset=mySet]
\setuphead[subsection][sectionsegments=section:subsection, stopper={.}]

% found in https://wiki.contextgarden.net/Titles

> \starttext
> 
> \startsection[title=New section]
> \input knuth
> \startsubsection[title=New subsection]
> \input ward
> \stopsubsection
> \stopsection
> 
> \stoptext

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: numbering sections/subsections
  2022-07-09 22:58 ` Henning Hraban Ramm via ntg-context
@ 2022-07-10 20:25   ` Alan Bowen via ntg-context
  2022-07-11  9:49     ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen via ntg-context @ 2022-07-10 20:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Bowen


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

Thank you, Hraban, for the solution and the link!

All best, Alan

On Sat, Jul 9, 2022 at 6:59 PM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Am 10.07.22 um 00:35 schrieb Alan Bowen via ntg-context:
> > I’m trying to get my sections numbered with capital letters and my
> > subsections with Arabic numbers. So far, no joy. What am I missing?
> >
> > Alan
> >
> > Mwe: with ConText ver: 2022.01.21 20:13 LMTX  fmt: 2022.2.1. (The
> > problem persists when I run ConTeXt online)
> >
> > \setuphead[section][conversion=A]
> >
> \setuphead[subsection][conversion=n, sectionsegements=section:subsection, stopper={.}]
>
> \definestructureconversionset[mySet][A,n,A,n][n] % starts at part!
> \setuphead[section,subsection][sectionconversionset=mySet]
> \setuphead[subsection][sectionsegments=section:subsection, stopper={.}]
>
> % found in https://wiki.contextgarden.net/Titles
>
> > \starttext
> >
> > \startsection[title=New section]
> > \input knuth
> > \startsubsection[title=New subsection]
> > \input ward
> > \stopsubsection
> > \stopsection
> >
> > \stoptext
>
> Hraban
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: numbering sections/subsections
  2022-07-10 20:25   ` Alan Bowen via ntg-context
@ 2022-07-11  9:49     ` Henning Hraban Ramm via ntg-context
  2022-07-11 14:48       ` Alan Bowen via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-11  9:49 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

Am 10.07.22 um 22:25 schrieb Alan Bowen via ntg-context:
> Thank you, Hraban, for the solution and the link!

You’re welcome!

> 
>     \definestructureconversionset[mySet][A,n,A,n][n] % starts at part!
>     \setuphead[section,subsection][sectionconversionset=mySet]
>     \setuphead[subsection][sectionsegments=section:subsection, stopper={.}]
> 
>     % found in https://wiki.contextgarden.net/Titles
>     <https://wiki.contextgarden.net/Titles>

Afterwards I recognized, if you use "default" instead of a custom name, 
you don’t need the setting in \setuphead.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: numbering sections/subsections
  2022-07-11  9:49     ` Henning Hraban Ramm via ntg-context
@ 2022-07-11 14:48       ` Alan Bowen via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Bowen via ntg-context @ 2022-07-11 14:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Bowen


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

Thanks, again, Hraban. This is very helpful.

Best, Alan

On Mon, Jul 11, 2022 at 5:53 AM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Am 10.07.22 um 22:25 schrieb Alan Bowen via ntg-context:
> > Thank you, Hraban, for the solution and the link!
>
> You’re welcome!
>
> >
> >     \definestructureconversionset[mySet][A,n,A,n][n] % starts at part!
> >     \setuphead[section,subsection][sectionconversionset=mySet]
> >     \setuphead[subsection][sectionsegments=section:subsection,
> stopper={.}]
> >
> >     % found in https://wiki.contextgarden.net/Titles
> >     <https://wiki.contextgarden.net/Titles>
>
> Afterwards I recognized, if you use "default" instead of a custom name,
> you don’t need the setting in \setuphead.
>
> Hraban
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-11 14:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-09 22:35 numbering sections/subsections Alan Bowen via ntg-context
2022-07-09 22:58 ` Henning Hraban Ramm via ntg-context
2022-07-10 20:25   ` Alan Bowen via ntg-context
2022-07-11  9:49     ` Henning Hraban Ramm via ntg-context
2022-07-11 14:48       ` Alan Bowen via ntg-context

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).