From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35191 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: TOC, listalternative d, ragged right, interaction Date: Fri, 29 Jun 2007 07:08:45 +0200 Message-ID: References: <20070528092945.GA26819@storsten..pD9E24CDE.dip.t-dialin.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183093749 32330 80.91.229.12 (29 Jun 2007 05:09:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2007 05:09:09 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 29 07:09:07 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 1I48j9-0001A1-24 for gctc-ntg-context-518@m.gmane.org; Fri, 29 Jun 2007 07:09:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A19F20018; Fri, 29 Jun 2007 07:09:02 +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 03686-01-2; Fri, 29 Jun 2007 07:08:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 175E71FFE1; Fri, 29 Jun 2007 07:08:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36A931FF87 for ; Fri, 29 Jun 2007 07:08:51 +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 03687-01 for ; Fri, 29 Jun 2007 07:08:45 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by ronja.ntg.nl (Postfix) with ESMTP id 7A3771FFE1 for ; Fri, 29 Jun 2007 07:08:45 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id h2so752690ugf for ; Thu, 28 Jun 2007 22:08:45 -0700 (PDT) Original-Received: by 10.78.138.6 with SMTP id l6mr1360358hud.1183093725057; Thu, 28 Jun 2007 22:08:45 -0700 (PDT) Original-Received: by 10.78.194.13 with HTTP; Thu, 28 Jun 2007 22:08:45 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:35191 Archived-At: Some ideas. I should be able to clean this weekend \unprotect \setvalue{\@@dodolistelement da}{\let\dosomelistelement\dodofixdlistelementDA} \def\dodofixdlistelementDA#1#2#3#4#5#6% {%%%init of \dodofixdlistelementDA#1#2#3#4#5#6% \leftskip1em%% temporary \setupalign[\listparameter\c!align]% \tolerance10000 % \def\makelistelement##1##2% {\hskip1sp%% temporary \doifelse{\listparameter\c!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#2}{#5}{#6}{\box0}}%{\copy0}}% {\hbox{##2}}}% % \doif{\listparameter\c!interaction}\v!all {\setlistparameter\currentlist\c!interaction\v!all}% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \makelistelement\v!all% {\forgetall \dostartlistattributes\c!style\c!color\empty \!!widthb\hsize \doifelse{\listparameter\c!headnumber}\v!yes {\setbox2\hbox \ifdim\!!widtha>\zeropoint to \!!widtha \fi {\makelistelement\v!sectionnumber {\donestedlistattributes\c!numberstyle\c!numbercolor {\listparameter\c!numbercommand{\currentlistsymbol}}% \hfill}}} {\!!widtha\zeropoint \!!widthc\zeropoint \setbox2\hbox{}}% \setbox4\hbox {\doif{\listparameter\c!pagenumber}\v!yes {\doifsomething{#5} % \listwidth is new ; temp hack {\hbox \ifdim\listwidth>\zeropoint to \listwidth\fi {\hfill \makelistelement\v!pagenumber {\donestedlistattributes\c!pagestyle\c!pagecolor {\listparameter\c!pagecommand {\pageprefix\??li\currentlist[#5]% \translatednumber[#5]}}}}}}}% \box2\relax \bgroup \donestedlistattributes\c!textstyle\c!textcolor {\let\\=\newlineinlist \dontconvertfont \limitatedlistentry{#4}}% \egroup \ifdim\wd4=\zeropoint\relax % \ifvoid4 \else \nobreak%\listfill \box4\relax \relax \fi% \dostoplistattributes} %%%%%%%%%%%%%%%% %% no interactions %% #3\nobreak\kern1ex\nobreak% %% \hbox{#4}\nobreak\kern1ex\nobreak% %% {\sl#6}\hskip0.1explus1ex% } \protect %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \language[de] \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] \def\listfill {\hskip.25em\relax}% \def\listskip {0pt}% \def\listwidth {2em}% \def\liststretch{10em} \setuplist [section] [alternative=da,%d, headnumber=no, align=left,%right separator={\hskip1pt plus5pt---\hskip1pt plus5pt}, interaction=all, 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 -- luigi ---------------------------------------------------------------- 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________