ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Stephens, Kenny" <kstephens@hsutx.edu>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: sectionconversionset not working for table of contents
Date: Mon, 18 Sep 2017 12:40:38 +0000	[thread overview]
Message-ID: <24ABE1070A5A4041884908141E95A66B024B07A564@HSUEX14MBX1.hsutx.edu> (raw)


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

I am trying to number my bodymatter chapters differently than my appendix chapters but with little success.

My attempts include the following:

n  If I do not assign a 'sectionconversionset' then the bodypart chapters are numbered with numerals and the appendix chapters are numbered with characters. However, sections and subsections are numbered with numerals in each the bodypart and appendix --- I don't want that.

n  Assigning a 'sectionconversionset' for the bodypart and appendix results in all chapters being numbered with numerals. Sections/subsections are still numerals.

n  Assigning a 'sectionconversionset' separately for each head type produces no change compared to the previous method.

I obtained these results with the 2017 TeXLive version of ConTeXt 2017.05.15. The same result occurs with live.contextgarden.net. I've tried multiple variations, all with the same result.

Any ideas would be greatly appreciated.

Thanks.
Kenny

The rest of the message is a minimal example:

\startsectionblockenvironment [bodypart]
  \definestructureconversionset [bodyset] [I,N,KR,a,m] [N] % unusual combination for testing
  \setuphead [chapter,section,subsection] [sectionconversionset=bodyset]
  \setuphead [chapter]    [style={\rm\bf}]
  \setuphead [section]    [style={\ss\bf}]
  \setuphead [subsection] [style={\sl}]
\stopsectionblockenvironment
\startsectionblockenvironment [appendix]
  \definestructureconversionset [appendixset] [O,A,R,r,KA] [R]
  \setuphead [chapter,section,subsection] [sectionconversionset=appendixset]
  \setuphead [chapter]    [style={\rm\bf}]
  \setuphead [section]    [style={\sans}]
  \setuphead [subsection] [style={\sl}]
\stopsectionblockenvironment

\setupcombinedlist [content] [list={chapter,section,subsection}]
\setuplist [chapter]
           [style=\bigbodyfont\bold, alternative=b,]
\setuplist [section]
           [width=2.0em, margin=2.0em, alternative=c,]
\setuplist [subsection]
           [width=3.0em, margin=4.0em, style=slanted, alternative=c,]

\startdocument

\startfrontmatter
  \placecontent[criterium=all]
\stopfrontmatter

\startbodymatter
\startchapter[title={The First Numerals Chapter}]
  \startsection[title={The First Caps-Romannumerals Section}]
   \input knuth
  \startsubsection[title={The First characters Subsection}]
   \input knuth
  \stopsubsection
  \stopsection
  \startsection[title={The Second Caps-Romannumerals Section}]
   \input knuth
  \stopsection
\stopchapter

\startchapter[title={The Second Numerals Chapter}]
  \startsection[title={The First Caps-Romannumerals Section}]
   \input knuth
  \stopsection
\stopchapter

\stopbodymatter

\startappendices

\startchapter[title={The First Characters Appendix}]
  \startsection[title={The First Romannumerals Section}]
   \input knuth
  \stopsection
\stopchapter

\startchapter[title={The Second Appendix}]
  \input knuth
  \startsection[title={The First Romannumerals Section}]
   \startsubsection[title={The First romannumerals Subsection}]
    \input knuth
   \stopsubsection
  \stopsection
\stopchapter

\stopappendices

\stopdocument

[-- Attachment #1.2: Type: text/html, Size: 18342 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-09-18 12:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 12:40 Stephens, Kenny [this message]
2017-09-18 17:22 ` Pablo Rodriguez
2017-09-19  0:19   ` Stephens, Kenny

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=24ABE1070A5A4041884908141E95A66B024B07A564@HSUEX14MBX1.hsutx.edu \
    --to=kstephens@hsutx.edu \
    --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).