From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34806 Path: news.gmane.org!not-for-mail From: Daniel =?utf-8?Q?Sch=C3=B6mer?= Newsgroups: gmane.comp.tex.context Subject: TOC, listalternative d, ragged right, interaction Date: Mon, 28 May 2007 11:30:19 +0200 Message-ID: <28861.7112710655$1180345226@news.gmane.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jq0ap7NbKX2Kqbes" X-Trace: sea.gmane.org 1180345226 5363 80.91.229.12 (28 May 2007 09:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 May 2007 09:40:26 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon May 28 11:40:22 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Hsbi9-0004hm-PX for gctc-ntg-context-518@m.gmane.org; Mon, 28 May 2007 11:40:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 463AD1FD16; Mon, 28 May 2007 11:40:21 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01027-03-8; Mon, 28 May 2007 11:40:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 484F81FD06; Mon, 28 May 2007 11:40:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 16DFC1FD06 for ; Mon, 28 May 2007 11:40:11 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01027-03-7 for ; Mon, 28 May 2007 11:40:06 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id 5D1C81FD02 for ; Mon, 28 May 2007 11:40:06 +0200 (CEST) Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Hsbhq-0004s3-5T for ntg-context@ntg.nl; Mon, 28 May 2007 11:40:02 +0200 Original-Received: from pd9e26df7.dip.t-dialin.net ([217.226.109.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 May 2007 11:40:02 +0200 Original-Received: from daniel.schoemer by pd9e26df7.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 May 2007 11:40:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 121 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd9e26df7.dip.t-dialin.net Content-Disposition: inline OpenPGP: id=AE51A5F9FAF565D3; preference=sign; url=http://subkeys.pgp.net:11371/pks/lookup?op=index&search=0xAE51A5F9FAF565D3 Jabber-ID: quatauta@jabber.org User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34806 Archived-At: --jq0ap7NbKX2Kqbes Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I'm trying to alter the formatting of the table of contents for a document of chapters and sections. After searching the ConTeXt manuals, source and the list archive, I've only four more things I'd like to change. This is where I ask for your help. My current setup (for the table of contents): | \setupinteraction [state=start] | \setuplistalternative [a] [command=\hskip.8em] | \setupcombinedlist [content] [alternative=a, interaction=all, | level=section, partnumber=no] | \setuplist [chapter] [after=\blank, before=\blank, | numberstyle=\tfd, pagestyle=italic, style=\tfa, | width=1.75em] | \setuplist [section] [alternative=d, headnumber=no, | interaction=pagenumber, margin=1.75em, | pagestyle=italic] This produces a table of contents like that: | 1 Chapter One 1 | Section A 1 Section B 2 Section C 3 Sec- | tion D 5 Section E 12 Here are my questions: (2 to 4 are of lower priority for me) 1. How can I setup the toc to get the sections (or listalternative d) to be set ragged right? 2. Is it possible to insert text between the section-pagenumber and the following section-text? (Section A 1 -- Section B 2 -- Section C 3) ^^ ^^ 3. I can't alter the distance between section-text and pagenumber. Changing the command option for listalternative a does it for chapters. But this doesn't work for listalternative d. 4. Can I get interaction=all for listalternative d?. Only interaction=pagenumber produces interaction. If I set interaction to all or text, I don't get interaction for the sections. I'm using ConTeXt 2007.04.17 with pdfTeXk 3.141592-1.40.3 from TeXlive 2007 on Gentoo/Linux. Some kind of a minimal example is attached. Daniel -- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. (Dick Brandon cited in gawk.info) --jq0ap7NbKX2Kqbes Content-Type: text/x-tex; charset=us-ascii Content-Disposition: attachment; filename="a.tex" % -*- mode: ConTeXt; -*- \setupinteraction [state=start] \setuplistalternative [a] [command=\hskip.8em] \setupcombinedlist [content] [alternative=a, interaction=all, level=section, partnumber=no] \setuplist [chapter] [after=\blank, before=\blank, numberstyle=\tfd, pagestyle=italic, style=\tfa, width=1.75em] \setuplist [section] [alternative=d, headnumber=no, interaction=pagenumber, margin=1.75em, pagestyle=italic] \starttext \completecontent \chapter{Einleitung} \section{Ich bin da} \section{So hat alles angefangen} \section{Die Vorbereitungen} \section{Rucksackbestellung} \section{Ist denn schon wieder Weihnachten?} \section{Mein erstes Kaenguru (ein Wallaby)} \section{Abflugtermin steht fest!} \section{Abschiedsparty} \section{Noch 3 Tage} \section{Etappe 1} \section{Etappe 2} \chapter{Sydney} \section{Unser erster Tag in Sydney} \section{Nicht viel Neues} \section{Wohnungssuche} \section{The Royal Easter Show} \section{Am Freitag ziehen wir in unsere neue Wohnung} \section{Einzug in die Wohnung!} \section{Frohe Ostern} \section{Sydney Aquarium} \section{Harbour Explorer Tour} \section{Kakerlaken} \stoptext --jq0ap7NbKX2Kqbes Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --jq0ap7NbKX2Kqbes--