* Numbercommand and title
@ 2022-08-12 9:12 Fabrice Couvreur via ntg-context
0 siblings, 0 replies; only message in thread
From: Fabrice Couvreur via ntg-context @ 2022-08-12 9:12 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur
[-- Attachment #1.1: Type: text/plain, Size: 1165 bytes --]
Hello,
How to make the period after the number be after the second parenthesis
when there is a title like this Définition 1.1 (Title). ?
Thanks
Fabrice
################################################
\definestructureconversionset [structure] [n, R, n, n, n] [n]
\defineconversionset [digit] [] [n]
\setupheads[sectionconversionset=structure]
\setupenumerations
[before={\blank},
after={\blank},
alternative=serried,
distance=0.5em,
title=yes,
titleleft=,
titleright=,
titlestyle=normal,
numbercommand=\groupedcommand{}{.},
titlecommand=\groupedcommand{(}{)},
width=broad,
way=bychapter,
prefix=yes,
prefixsegments=chapter,
prefixconversionset=digit,]
\defineenumeration
[definition]
[text=Définition,
number=yes,
style=italic]
\starttext
\startchapter
[title={First Chapter}]
\startdefinition
[title={My first définition}]
\input{ward}
\stopdefinition
\startdefinition
\input ward
\stopdefinition
\startdefinition
[title={My third définition}]
\input ward
\stopdefinition
\stopchapter
\stopchapter
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 1635 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] only message in thread
only message in thread, other threads:[~2022-08-12 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 9:12 Numbercommand and title Fabrice Couvreur 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).