ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: placelist
Date: Fri, 4 Nov 2011 12:23:08 +0100	[thread overview]
Message-ID: <5777E975-81AC-430C-A1B2-1F6F042B9B83@boede.nl> (raw)
In-Reply-To: <20111104081214.GQ13112@rae.vm.bytemark.co.uk>

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

Hi Pontus,

thanks for your quick reply. I tried your suggestion, but there is no success with it. ...

[-- Attachment #2: test-TOC.tex --]
[-- Type: application/octet-stream, Size: 938 bytes --]

% Context file
% Filename: test-TOC.tex
% 
% 17-10-2011
% Copyright (c) 2011 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]


\setuppagenumbering[location=]
\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=0pt,
	footer=0pt,
	height=middle,
	width=middle]
\mainlanguage[nl]

%\showframe

\starttext

\starttitle[title=Content]\stoptitle

% \placecontent[level=section]
\placecontent[section]

\page

\startsection[title=First section,list=First section]

\startsubsection[title=first subsection,list=First subsection]
  Lorem ipsum \dots
\stopsubsection
\page
\startsubsection[title=second subsection,list=Second subsection]
  Lorem ipsum \dots
\stopsubsection
\page
\stopsection

\startsection[title=Second section,list=Second section]

\startsubsection[title=first subsection,list=First subsection]
  Lorem ipsum \dots
\stopsubsection
\stopsection

\stoptext

[-- Attachment #3: Type: text/plain, Size: 1113 bytes --]



Kind regards

Willi

On 4 Nov 2011, at 09:12, Pontus Lurcock wrote:

> On Fri 04 Nov 2011, Willi Egger wrote:
> 
>> it sound strange but how do I get a TOC where only the sections are
>> placed but not the subsections? The document contains exclusively
>> sections and subsections. With \placecontent[level=section] I get as
>> well the sections as also the subsections. Looking at examples on
>> the wiki I think this should be the right command?
> 
> \placelist[section] should do what you want -- see
> http://www.mail-archive.com/ntg-context@ntg.nl/msg59165.html .
> 
> Pont
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2011-11-04 11:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04  7:55 placelist Willi Egger
2011-11-04  8:12 ` placelist Pontus Lurcock
2011-11-04 11:23   ` Willi Egger [this message]
2011-11-04 14:00     ` placelist Wolfgang Schuster
2011-11-05 11:00       ` placelist Willi Egger

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=5777E975-81AC-430C-A1B2-1F6F042B9B83@boede.nl \
    --to=context@boede.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).