From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Some questions about my document
Date: Sun, 27 Aug 2017 12:29:31 +0200 [thread overview]
Message-ID: <CACyK-eq2Dn-PUEUV3T+OOVwjkwir2cTvP5ba2mib7RPOcnkKXw@mail.gmail.com> (raw)
In-Reply-To: <705e0f1a-4a6f-5747-0300-73412cc6f7e2@gmx.es>
[-- Attachment #1.1: Type: text/plain, Size: 2449 bytes --]
Hi Pablo,
" You have to define a new conversion set and use it for the prefix
segments "
It seems to me that's what I did :
\definestructureconversionset
[structure]
[numbers, Romannumerals, numbers, numbers, numbers]
[numbers]
\setupheads [sectionconversionset=structure]
\defineenumeration
[remark]
[
text=Remark,
location=serried,
width=fit,
right={.~},
prefix=yes,
prefixsegments=chapter,
]
\setupnumber[remark][way=bychapter]
Only I get (which is normal according to the numbering chosen for the
chapters : Romannumerals)
Remark I.1.
and I want this :
Remark 1.1.
Fabrice
2017-08-27 11:03 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:
> On 08/27/2017 12:14 AM, Fabrice Couvreur wrote:
> > " I would like to have this :
> >
> > Chapitre I : Espaces probabilisés
> >
> > I.1 - Expérience aléatoire et univers "
> >
> > I did this :
> >
> > \setuphead[chapter][commandbefore={: }]
> > \setuphead[section][distance=\zeropoint,commandbefore={\
> space\endash\space}]
> > \setuplabeltext[en][chapter=Chapitre ]
>
> Hi Fabrice,
>
> I think it would be better to use French:
>
> \mainlanguage[fr]
> \setuplabeltext[fr][chapter=Chapitre ]
>
> > But for this
> >
> > Remark 1.1.
> > Remark 1.2
> > Remark 1.3
> >
> > I do not find !
>
> You have to define a new conversion set and use it for the prefix
> segments (I added the section to the numbering):
>
> \definestructureconversionset
> [digits]
> [n, n, a, n, n]
> [numbers]
>
> \defineenumeration
> [remark]
> [
> text=Remark,
> location=serried,
> width=fit,
> right={.~},
> prefix=yes,
> prefixsegments=chapter:section,
> prefixconversionset=digits,
> ]
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
> ____________________________________________________________
> _______________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ____________________________________________________________
> _______________________
[-- Attachment #1.2: Type: text/html, Size: 5443 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2017-08-27 10:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 12:53 Fabrice Couvreur
2017-08-26 10:27 ` Fabrice Couvreur
2017-08-26 22:14 ` Fabrice Couvreur
2017-08-27 9:03 ` Pablo Rodriguez
2017-08-27 10:29 ` Fabrice Couvreur [this message]
2017-08-27 10:43 ` Pablo Rodriguez
2017-08-27 10:54 ` Fabrice Couvreur
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=CACyK-eq2Dn-PUEUV3T+OOVwjkwir2cTvP5ba2mib7RPOcnkKXw@mail.gmail.com \
--to=fabrice1.couvreur@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).