ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
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: Sat, 26 Aug 2017 12:27:35 +0200	[thread overview]
Message-ID: <CACyK-epUoFr3v_NSKfcJ1k4cO8TAoE_hBZQ+oRULw2BgTwfpBA@mail.gmail.com> (raw)
In-Reply-To: <CACyK-ep+_K1RjVqp2NrSc5Ym4-7yyWxV0UOt-1sC7Y92=+Pu7w@mail.gmail.com>


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

Hi,
I have simplified the code, but I get :

Remark I.1.
Remark I.2.
Remark I.3.

instead :

Remark 1.1.
Remark 1.2
Remark 1.3

Thanks
Fabrice

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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]

\starttext
\startchapter
  [title={First chapter}]
\startsection
  [title={First section}]
  \dorecurse{3}{\startremark \input ward \stopremark}
\stopsection
\stopchapter
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

2017-08-24 14:53 GMT+02:00 Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

> Hello,
> I would like to have this :
>
> ####################
>
> Chapitre I : Espaces probabilisés
>
> I.1 - Expérience aléatoire et univers
>
> Définition 1.1
>
> Définition 1.2
>
> ####################
>
> Thank you
> Fabrice
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> \definestructureconversionset
>   [structure]
>   [numbers, Romannumerals, numbers, numbers, numbers]
>   [numbers]
>
> \setupheads [sectionconversionset=structure]
>
> \setupenumerations
> [
> before={\blank[big]},
> after={\blank[big]},
> alternative=serried,
> width=broad,
> distance=0.5em,
> headstyle=bold,
> titlestyle=bold,
> prefix=chapter,
> way=bychapter,
> conversion=numbers]
>
> \defineenumeration
> [definition]
> [
> text=Définition,
> title=yes,
> style=italic,
> list=all,
> listtext={Définition}]
>
> \starttext
> \startchapter[title=Espaces probabilisés]
> \startsection[title=Expérience aléatoire  et univers]
> \startdefinition
>   On appelle expérience aléatoire une expérience sur un système dont le
> résultat n'est pas connu d'avance et peut varier si on répète cette
> expérience.
> \stopdefinition
> \startdefinition
>   On appelle univers l'ensemble des résultats possibles. Il est noté
> \math{\Omega}.
> \stopdefinition
> \stopchapter
> \stoptext
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>

[-- Attachment #1.2: Type: text/html, Size: 4075 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
___________________________________________________________________________________

  reply	other threads:[~2017-08-26 10:27 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 [this message]
2017-08-26 22:14   ` Fabrice Couvreur
2017-08-27  9:03     ` Pablo Rodriguez
2017-08-27 10:29       ` Fabrice Couvreur
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-epUoFr3v_NSKfcJ1k4cO8TAoE_hBZQ+oRULw2BgTwfpBA@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).