ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Table of contents: style and subject
@ 2018-03-04  3:27 Idris Samawi Hamid ادريس سماوي حامد
  2018-03-04  9:47 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-03-04  3:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]

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?

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
==============

-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

[-- Attachment #2: scratch.tex --]
[-- Type: application/x-tex, Size: 1110 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Table of contents: style and subject
  2018-03-04  3:27 Table of contents: style and subject Idris Samawi Hamid ادريس سماوي حامد
@ 2018-03-04  9:47 ` Hans Hagen
  2018-03-04 13:01   ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2018-03-04  9:47 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Table of contents: style and subject
  2018-03-04  9:47 ` Hans Hagen
@ 2018-03-04 13:01   ` Idris Samawi Hamid ادريس سماوي حامد
  2018-03-04 13:29     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-03-04 13:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]

On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen <pragma@wxs.nl> wrote:

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

Ok - see below.

> looks bad this:
>
> \setupinterlinespace[line=1.4ex]

Yes, residue from another experiment..

>> Between I) and II), which is the current recommended standard practice  
>> for MKIV?

A working minimal example follows. Is this the recommended practice? Can  
it be streamlined further?

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
\setuplist[subject,section,subsection,subsubsection]
   [alternative=c,style=bold]
\setupcombinedlist[content]
   [list={subject,section,subsection,subsubsection}]
\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
==============

-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

[-- Attachment #2: scratch.tex --]
[-- Type: application/x-tex, Size: 624 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Table of contents: style and subject
  2018-03-04 13:01   ` Idris Samawi Hamid ادريس سماوي حامد
@ 2018-03-04 13:29     ` Hans Hagen
  2018-03-04 14:03       ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2018-03-04 13:29 UTC (permalink / raw)
  To: ntg-context

On 3/4/2018 2:01 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen <pragma@wxs.nl> wrote:
> 
>> 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] 
>>
> 
> Ok - see below.
> 
>> looks bad this:
>>
>> \setupinterlinespace[line=1.4ex]
> 
> Yes, residue from another experiment..
> 
>>> Between I) and II), which is the current recommended standard 
>>> practice for MKIV?
> 
> A working minimal example follows. Is this the recommended practice? Can 
> it be streamlined further?
> 
> 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
> \setuplist[subject,section,subsection,subsubsection]
>    [alternative=c,style=bold]
> \setupcombinedlist[content]
>    [list={subject,section,subsection,subsubsection}]
> \placecontent

\placelist[content]
    [subject,section,subsection,subsubsection]

> \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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Table of contents: style and subject
  2018-03-04 13:29     ` Hans Hagen
@ 2018-03-04 14:03       ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 0 replies; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-03-04 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 04 Mar 2018 06:29:53 -0700, Hans Hagen <pragma@wxs.nl> wrote:

>> A working minimal example follows. Is this the recommended practice?  
>> Can it be streamlined further?
:
>> \placecontent
>
> \placelist[content]
>     [subject,section,subsection,subsubsection]

Hm, toggling lines 12-13 below: Line 13 makes the TOC disappear entirely:

==============
\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
\setuplist[subject,section,subsection,subsubsection]
   [alternative=c,style=bold]
\setupcombinedlist[content]
   [list={subject,section,subsection,subsubsection}]
% \placecontent     % line 12
\placelist[content] % line 13
    [subject,section,subsection,subsubsection]
\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
==============

-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-04 14:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-04  3:27 Table of contents: style and subject Idris Samawi Hamid ادريس سماوي حامد
2018-03-04  9:47 ` Hans Hagen
2018-03-04 13:01   ` Idris Samawi Hamid ادريس سماوي حامد
2018-03-04 13:29     ` Hans Hagen
2018-03-04 14:03       ` Idris Samawi Hamid ادريس سماوي حامد

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).