ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jeroen <contextntg@gmail.com>
Subject: [NTG-context] Re: Suppress the Chapter Number in the Section Numbering
Date: Tue, 19 Mar 2024 21:14:31 +0100	[thread overview]
Message-ID: <5f9d8d3c-d99a-5065-8c81-5cb9fb31c197@gmail.com> (raw)
In-Reply-To: <CAPtmdbMLtsA36=BtjVc-cg6b5AQM=3Mc=Wz0-RmN=HDYhRYF3Q@mail.gmail.com>

Jeroen schrieb am 19.03.2024 um 20:35:
> 
> I am trying to suppress the chapter number in a section number as 
> below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way 
> to achieve this?
> 
> 
> 1. The First Chapter
> 1. The First Section
> ...
> 2. The Second Section
> ...
> 
> 2. The Second Chapter
> 1. The Third Section
> ...
> 2. The Fourth Section
> ...

\setuphead
   [chapter]
   [sectionstopper=.]

\setuphead
   [section]
   [sectionsegments=section,
    sectionstopper=.]

\starttext

\chapter{The First Chapter}

\section{The First Section}

\section{The Second Section}

\chapter{The Second Chapter}

\section{The Third Section}

\section{The Fourth Section}

\stoptext

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2024-03-19 20:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 19:35 [NTG-context] " Jeroen
2024-03-19 20:14 ` 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=5f9d8d3c-d99a-5065-8c81-5cb9fb31c197@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=contextntg@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).