From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64105 Path: news.gmane.org!not-for-mail From: "Thomas Schmitz" Newsgroups: gmane.comp.tex.context Subject: interactive chapter titles in margin Date: Wed, 01 Dec 2010 15:09:46 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291212608 19244 80.91.229.12 (1 Dec 2010 14:10:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 14:10:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 01 15:10:04 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNnNj-0005pa-O9 for gctc-ntg-context-518@m.gmane.org; Wed, 01 Dec 2010 15:10:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B48BCCA89A; Wed, 1 Dec 2010 15:10:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id giqzls-fWyXA; Wed, 1 Dec 2010 15:10:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6908CA897; Wed, 1 Dec 2010 15:09:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0C1FC9A8A for ; Wed, 1 Dec 2010 15:09:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HaHKrD73Q4Gw for ; Wed, 1 Dec 2010 15:09:47 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id B96B2CA897 for ; Wed, 1 Dec 2010 15:09:47 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oB1E9kXl001865 for ; Wed, 1 Dec 2010 15:09:47 +0100 Original-Received: from [87.178.41.70] (account tschmit1@uni-bonn.de) by be1.uni-bonn.de (CommuniGate Pro WEBUSER 5.2.12) with HTTP id 5865805 for ntg-context@ntg.nl; Wed, 01 Dec 2010 15:09:46 +0100 X-Mailer: CommuniGate Pro WebUser v5.2.12 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DBO9LI0 - dd56b6b15190 - 20101201 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:64105 Archived-At: 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 ___________________________________________________________________________________