[NTG-context] Sectioning and structure

Fabrice Couvreur fabrice1.couvreur at gmail.com
Sun Sep 13 10:02:53 CEST 2015


Hi Wolfgang,
Is this the best approach ?
Thank you.
Fabrice


\mainlanguage[fr]

\setupinteraction
  [state=start,
   style=,
   color=,
   contrastcolor=]

\setuplist
  [chapter]
  [after={\blank[line]}]

\setupcombinedlist
  [content]
  [aligntitle=yes,
   alternative=c,
  interaction=all]

\setuphead [part]
        [sectionresetset=,
         conversion=Romannumerals,
         placehead=yes,
         bodypartlabel=chapter]

\setuphead [chapter]
        [sectionresetset=,
         conversion=,
         number=no,
         placehead=yes,
         bodypartlabel=part,
         sectionsegments=chater:chapter]

\setuphead [section]
        [sectionsegments=section:section]


\starttext

\placecontent

\startpart
   [title={Repérage et calculs dans le plan}]

\startchapter
   [title={Activités d'approche}]

\startsection
  [title={Activité 1}]

\startsection
  [title=Activité 2]


\startchapter
   [title={Cours-Méthodes}]

\startsection
  [title={Coordonnées d'un point dans un repère}]

\startsection
  [title={Coordonnées du milieu d'un segment}]

\startchapter
   [title={S'entraîner}]

\startsection
  [title={Coordonnées d'un point dans un repère}]

\startsection
  [title={Coordonnées du milieu d'un segment}]

\stoptext

2015-09-07 16:31 GMT+02:00 Wolfgang Schuster <schuster.wolfgang at gmail.com>:

> Fabrice Couvreur <fabrice1.couvreur at gmail.com>
> 7. September 2015 15:59
> Hi,
> I'm about to write a book using a structure. The desire is to get this
> like contents of the table of contents :
>
> You can’t put parts in chapters but it’s possible to change the labels for
> them, i.e. you can show “Chapter <number>” for parts and “Part <number> for
> chapters.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150913/afcc44f5/attachment.html>


More information about the ntg-context mailing list