From: garulfo@azules.eu
To: ntg-context@ntg.nl
Subject: [NTG-context] Decreasing size of the section number according to its level
Date: Thu, 23 Jan 2025 22:00:17 -0000 [thread overview]
Message-ID: <173766961779.3183021.753067148315620497@cgl.ntg.nl> (raw)
Hi,
in setuphead, I try to get a decreasing size of the section number according to its level
with \defineconversion and \definestructureconversionset.
It works as expected for the first levels, but between 6th and 7th, the variation doesn't occur.
Any clue about what is happening ?
For the MVE, I've added a visual check in dark red to show the discrepancy.
\setuppapersize[A5]
\define[1]\NivA{\tfc #1}
\defineconversion[NA][\NivA]
\define[1]\NivB{\tfb #1}
\defineconversion[NB][\NivB]
\define[1]\NivC{\tfa #1}
\defineconversion[NC][\NivC]
\define[1]\NivD{\tf #1}
\defineconversion[ND][\NivD]
\define[1]\NivE{\tfx #1}
\defineconversion[ND][\NivE]
\definestructureconversionset
[mysectionnumbers]
[N,N,NA,NB,NC,ND,NE]
[N]
\definestructureconversionset
[mysectionnumbersforlist]
[N]
[N]
\setupheads
[sectionconversionset=mysectionnumbers]
\setuplist
[section,
subsection,
subsubsection,
subsubsubsection,
subsubsubsubsection]
[numberconversionset=mysectionnumbersforlist]
\starttext
\placecontent
\startsection [title={Section}]
\startsubsection [title={SubSection}]
\startsubsubsection [title={SubSubSection}]
\startsubsubsubsection [title={SubSubSubSection}]
\startsubsubsubsubsection [title={SubSubSubSubSection}]
\stopsubsubsubsubsection
\stopsubsubsubsection
\stopsubsubsection
\stopsubsection
\stopsection
\color[darkred]{{\tfc 1.}{\tfb 1.}{\tfa 1.}{\tf 1.}{\tfx 1}}
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2025-01-23 22:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 22:00 garulfo [this message]
2025-01-23 22:46 ` [NTG-context] " Wolfgang Schuster
2025-01-24 8:42 ` Hans Hagen via ntg-context
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=173766961779.3183021.753067148315620497@cgl.ntg.nl \
--to=garulfo@azules.eu \
--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).