Re: [NTG-context] Headings vs. enumerations

2019-02-01 Thread Clyde Johnston
Thanks Wolfgang.  The problem I had with using headers was maintaining the
numbers for the headings and clauses.  I was able to solve this with the
[prefix=yes] option for the itemizegroup.

Here is a solution (for anyone else) that achieves what I want:

\starttext
\placecontent[alternative=c]

\chapter{A heading}

\startitemize[n,repeat,2*broad][prefix=yes]
\starthead{A sub-heading}\stophead
Optional intro text here:
\startitemize[n,repeat,3*broad][prefix=yes]
\item \input knuth
\item \input tufte
\stopitemize
\starthead{Another sub-heading}\stophead
\startitemize[n,repeat,3*broad][prefix=yes]
\item A short clause
\stopitemize
\stopitemize

\chapter {A new heading}

\startitemize[n,repeat,2*broad][prefix=yes]
\starthead{A sub-heading}\stophead
\startitemize[n,repeat,3*broad][prefix=yes]
\item \input knuth
\stopitemize
\stopitemize

\stoptext

I suppose I could make the sub-heading a \section too.  I just need to check
my document that all level two items are heading.

Thanks,
Clyde


-Original Message-
From: Wolfgang Schuster [mailto:wolfgang.schuster.li...@gmail.com] 
Sent: Friday, February 01, 2019 12:14 AM
To: mailing list for ConTeXt users; Clyde Johnston
Subject: Re: [NTG-context] Headings vs. enumerations

Clyde Johnston schrieb am 31.01.19 um 21:07:
>
> I have a document that contains a numbered enumeration that spans 107 
> pages – it’s a legal document where \items are clauses.  I would like 
> to put level one of the enumeration in a table of contents.
>
> I have read the available documentation but I am not clear whether I 
> should make level one headers, whether I can utilise the \starthead in 
> \startitemize or whether I can create a list from the level one 
> headings to create the table of contents.
>
> How is best to tackle this problem?
>

The best solution is to use real headers and drop the enumerations.

You can hide disable parts (e.g. the chapter number) of the section counter
to get the same results as you have with your current solution.

Wolfgang


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

Re: [NTG-context] Headings vs. enumerations

2019-01-31 Thread Wolfgang Schuster

Clyde Johnston schrieb am 31.01.19 um 21:07:


I have a document that contains a numbered enumeration that spans 107 
pages – it’s a legal document where \items are clauses.  I would like 
to put level one of the enumeration in a table of contents.


I have read the available documentation but I am not clear whether I 
should make level one headers, whether I can utilise the \starthead in 
\startitemize or whether I can create a list from the level one 
headings to create the table of contents.


How is best to tackle this problem?



The best solution is to use real headers and drop the enumerations.

You can hide disable parts (e.g. the chapter number) of the section 
counter to get the same results as you have with your current solution.


Wolfgang

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

[NTG-context] Headings vs. enumerations

2019-01-31 Thread Clyde Johnston
I have a document that contains a numbered enumeration that spans 107 pages
- it's a legal document where \items are clauses.  I would like to put level
one of the enumeration in a table of contents.

 

I have read the available documentation but I am not clear whether I should
make level one headers, whether I can utilise the \starthead in
\startitemize or whether I can create a list from the level one headings to
create the table of contents.

 

How is best to tackle this problem?

 

Thanks,

Clyde

 

MWE #1:

 

\starttext

\placecontent[alternative=c]

 

\startitemize[n,repeat]

\starthead{A heading}\stophead

 

\startitemize[n,repeat,2*broad]

\starthead{A sub-heading}\stophead

\startitemize[n,repeat,3*broad]

\item \input knuth

\stopitemize

\stopitemize

\stoptext

 

MWE #2:

 

\starttext

\placecontent[alternative=c]

 

\chapter{A heading}

 

\startitemize[n,repeat,2*broad]

\starthead{A sub-heading}\stophead

\startitemize[n,repeat,3*broad]

\item \input knuth

\stopitemize

\stopitemize

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