ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: ntg-context@ntg.nl
Cc: "Peter Münster" <pmlists@free.fr>
Subject: Re: nomarking function in MKIV
Date: Wed, 30 Jun 2010 10:19:23 +0200	[thread overview]
Message-ID: <201006301019.23763.alan.braslau@cea.fr> (raw)
In-Reply-To: <20100629173355.GA24221@gaston.couberia.bzh>

On Tuesday 29 June 2010 19:33:55 Peter Münster wrote:
> On Tue, Jun 29 2010, John Devereux wrote:
> > ....so that "Short Title Rest Of Title" appears as the chapter title, but
> > just "Short Title" appears in the TOC, PDF bookmarks and footers.
> 
> \setupinteraction[state=start]
> \placebookmarks[all]
> \setupfootertexts[chapter]
> \starttext
> \completecontent
> \startchapter[title=long, list=short, bookmark=bookmark, marking=footer]
> bla
> \stopchapter
> \stoptext
> 
> Cheers, Peter

Three points:

(1)
\setupinteraction [state=start,option=bookmark,contrastcolor=interactioncolor]
\setupinteractionscreen [option=bookmark] 
\placebookmarks [part,chapter,section,subsection]
                [part,chapter,section]
\starttext
\completecontent

\startchapter [title={First chapter},list={First}]
text̛̛
\stopchapter
\stoptext


Here, the long title gets placed by default in the bookmarks,
whereas one probably wants the short title there. Of course,
one can use "bookmark={First}", but this might be redundant
and thus is not very elegant. An alternative might be to
use "bookmark=list" but this, of course, yields "list".
Could/should one require the syntax: title={long},list={short}?

I would then expect to be able to use:
\setupchapter [bookmark=list]
to select to put the short title (if list={short}) in the bookmarks,
unless there be bookmark={shorter}.

(2)
Additionally,
\chapter [title={First chapter},list={First}]
does not work. Logically this should work just as \startchapter.

(3)
Furthermore, I have a conceptual/structural problem with
\startchapter\stopchapter. Take the example:

\startchapter [title={First chapter}]
bla
\stopchapter
some text
\startchapter [title={Second chapter}]
bla
\stopchapter

Where does "some text" belong? Structurally, I mean.
Is it some sort of interlude?

The syntax \chapter is not only convenient,
it is also logical in that the structural section
remains valid until the following \chapter.
The \startchapter\stopchapter syntax is attractive
but leaves me a bit perplex. Would someone explain?

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

  parent reply	other threads:[~2010-06-30  8:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29 16:14 John Devereux
2010-06-29 17:33 ` Peter Münster
2010-06-29 21:03   ` John Devereux
2010-06-30  8:19   ` Alan BRASLAU [this message]
2010-06-30  9:03     ` Peter Münster
2010-06-30 10:03       ` nomarking function in MKIV (selector) Alan BRASLAU
2010-06-30 22:35     ` nomarking function in MKIV Wolfgang Schuster
2010-07-01  8:16       ` Alan BRASLAU
2010-07-01  8:30         ` Wolfgang Schuster
2010-07-01  9:23         ` Peter Münster
2010-07-01  9:44           ` Alan BRASLAU
2010-07-01  9:55             ` luigi scarso
2010-07-01 10:00             ` Thomas A. Schmitz
2010-07-01 10:23               ` luigi scarso
2010-07-01 18:59               ` Alan BRASLAU
2010-07-02  8:18                 ` Thomas A. Schmitz
2010-07-02  9:18                   ` luigi scarso
2010-07-02 11:07                   ` Alan BRASLAU
2010-07-01 10:11             ` Henning Hraban Ramm

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=201006301019.23763.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=pmlists@free.fr \
    /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).