From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Table of contents: style and subject
Date: Sun, 4 Mar 2018 10:47:17 +0100 [thread overview]
Message-ID: <8250c4c3-7b69-598e-d472-12f5c8b0ff9d@wxs.nl> (raw)
In-Reply-To: <op.zfb08xa2ejo439@desktop-mt1m160>
On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>
> Here's a strange situation:
>
> In approach I) we get the subject heading in the TOC, but style=bold
> doesn't work.
>
> In approach II) style=bold works, but the subject heading doesn't show up.
>
> For each approach, how do we get both subject heading and style=bold in
> the TOC?
you set up individual lists elements at another level
\setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold]
looks bad this:
\setupinterlinespace[line=1.4ex]
> Between I) and II), which is the current recommended standard practice
> for MKIV?
>
> See below and attached scratch. Toggle the two \start|stoptext
> environments.
>
> Best wishes
> Idris
>
> ==============
> \setuphead[subject]
> [incrementnumber=yes, % keep track of the number
> number=no] % but don't show it
>
> \starttext % Approach I
> \starttitle[title={Table of Contents},reference={}]
> \start
> \setupcombinedlist[content]
>
> [list={subject,section,subsection,subsubsection},alternative=c,style=bold]
> \setupinterlinespace[line=1.4ex]
> \placecontent
> \stop
> \stoptitle
> \page
> \startsection[title={Section One},reference={}]
> new page \page
> \stopsection
>
> \startsection[title={Section Two},reference={}]
> new page \page
> \stopsection
>
> \startsubject[title={Subject},reference={}]
>
> \stopsubject
> % \stoptext
>
> % \starttext % Approach I
> % \starttitle[title={Table of Contents},reference={}]
> % \start
> % \setupcombinedlist[{subject,section,subsection,subsubsection}]
> % [alternative=c,style=bold]
> % \setupinterlinespace[line=1.4ex]
> % \placecontent
> % \stop
> % \stoptitle
> % \page
> % \startsection[title={Section One},reference={}]
> % new page \page
> % \stopsection
>
> % \startsection[title={Section Two},reference={}]
> % new page \page
> % \stopsection
>
> % \startsubject[title={Subject},reference={}]
>
> % \stopsubject
> % \stoptext
> ==============
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2018-03-04 9:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-04 3:27 Idris Samawi Hamid ادريس سماوي حامد
2018-03-04 9:47 ` Hans Hagen [this message]
2018-03-04 13:01 ` Idris Samawi Hamid ادريس سماوي حامد
2018-03-04 13:29 ` Hans Hagen
2018-03-04 14:03 ` Idris Samawi Hamid ادريس سماوي حامد
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=8250c4c3-7b69-598e-d472-12f5c8b0ff9d@wxs.nl \
--to=pragma@wxs.nl \
--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).