ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@MIT.EDU>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \placebookmarks: opening with only topmost levels visible
Date: Thu, 10 Jul 2008 11:06:27 -0400	[thread overview]
Message-ID: <E1KGxj1-0008Q7-Ni@approx.mit.edu> (raw)
In-Reply-To: Your message of "Thu, 10 Jul 2008 15:11:24 +0200." <115224fb0807100611h217cb8ebo697e9115a5ee92d0@mail.gmail.com> (sfid-20080710_093228_329834_CAF38A74)

Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

> \placebookmarks
>   [chapter,section,subsection]
>   [chapter,section]
> 
> > should work but it shows all three levels.
> 
> What do you expect, you open the chater *and* the section branches.

Thanks, now I understand what the second argument means: It's not "what
levels are displayed" but is rather "what levels are opened (thereby
showing the level below)".  

So, in order to show two levels (chapter and section):

  \placebookmarks
    [chapter,section,subsection]
    [chapter]

I'll fix the wiki page.  Too late: I just logged in to edit the page and
saw that the new page has the clarificiation.  Thanks, Taco!  I edited
the texshow-web entry for \placebookmarks.

For the record, here's a complete example for showing chapter and
section bookmarks:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks
   [chapter,section,subsection]
   [chapter]

\starttext

\chapter{I}

\section{I.A}
\input tufte

\subsection{I.A.1}
\input knuth

\subsubsection{I.A.1.a}

Too deep for easy understanding!

\section{I.B}
\input tufte

\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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-07-10 15:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 21:06 Sanjoy Mahajan
2008-07-10 10:23 ` Wolfgang Schuster
2008-07-10 12:44   ` Sanjoy Mahajan
2008-07-10 13:11     ` Wolfgang Schuster
2008-07-10 15:06       ` Sanjoy Mahajan [this message]
2008-07-10 14:09     ` Taco Hoekwater

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=E1KGxj1-0008Q7-Ni@approx.mit.edu \
    --to=sanjoy@mit.edu \
    --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).