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 via email to