ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas Schmitz" <tschmit1@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: interactive chapter titles in margin
Date: Wed, 01 Dec 2010 15:09:46 +0100	[thread overview]
Message-ID: <web-5865815@be1.uni-bonn.de> (raw)

Hi all,

for my document setup, I would like to have interactive
chapter headings, and I want the chapter titles in the
margins only; they should not interfere with normal
indentation, spacing, etc. So far, I haven't really found
a solution. Here's a small example (with some code from
the wiki):

\defineinmargin [ChapterInMargin] [outer] [normal]
[distance=0.3em]

\setuphead[chapter][style=bold,
                     number=no,
		    expansion=yes,
	            alternative=text,
		    distance=0pt,
		    indentnext=yes,
		    before={\blank[0pt]},
		    after={\blank[0pt]},
		    command=\MyChapter,
                     page=no]

\def\MyChapter#1#2{\ChapterInMargin{#2}}

\setupinteraction[state=start]
  
\placebookmarks[chapter][all][force=yes]

\setupindenting[medium,yes]

\starttext

\startchapter[title=One,bookmark=One]

\dorecurse{5}{\input knuth}

\stopchapter

\startchapter[title=Two,bookmark=Two]

\dorecurse{5}{\input tufte}

\stopchapter

\startchapter[title=Three,bookmark=Three]

\dorecurse{5}{\input bryson}

\stopchapter

\stoptext

Can anybody provide an idea what to do? THanks!

All best

Thomas
___________________________________________________________________________________
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:[~2010-12-01 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=web-5865815@be1.uni-bonn.de \
    --to=tschmit1@uni-bonn.de \
    --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).