From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62105 Path: news.gmane.org!not-for-mail From: Tomas Bures Newsgroups: gmane.comp.tex.context Subject: Formatting in TOC Date: Wed, 29 Sep 2010 23:16:21 +0200 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 1285795015 11863 80.91.229.12 (29 Sep 2010 21:16:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 21:16:55 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 29 23:16:54 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 1P141G-0001OV-Ae for gctc-ntg-context-518@m.gmane.org; Wed, 29 Sep 2010 23:16:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EF63CCA797; Wed, 29 Sep 2010 23:16:52 +0200 (CEST) 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 K9E0KlyXYx0H; Wed, 29 Sep 2010 23:16:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE667CA762; Wed, 29 Sep 2010 23:16:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA660CA762 for ; Wed, 29 Sep 2010 23:16:47 +0200 (CEST) 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 Jg+A93sRMaBT for ; Wed, 29 Sep 2010 23:16:36 +0200 (CEST) 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 63EA5CA753 for ; Wed, 29 Sep 2010 23:16:36 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8TLGYtD016418 for ; Wed, 29 Sep 2010 23:16:35 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P140t-0001IZ-Ny for ntg-context@ntg.nl; Wed, 29 Sep 2010 23:16:31 +0200 Original-Received: from 120.64.broadband2.iol.cz ([83.208.64.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Sep 2010 23:16:31 +0200 Original-Received: from bures by 120.64.broadband2.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Sep 2010 23:16:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 120.64.broadband2.iol.cz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.12) Gecko/20100914 Lightning/1.0b1 Thunderbird/3.0.8 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; region=12; city=Oslo; latitude=59.9167; longitude=10.7500; http://maps.google.com/maps?q=59.9167,10.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DcJgyeK - 52282167b0fb - 20100929 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:62105 Archived-At: Dear all, I would like to generate a table of contents, where each item should have a number, title and date. I use the user variables this way: \define[1]\ChapterListTextCommand{% #1\hskip 1.5em \hbox{ \doiftextelse{\structurelistuservariable{date}{(\structurelistuservariable{datum})}{} } } But actually I would like to align the date to some fixed horizontal position. Something like this: 1. Title of chapter 1 (9.2.2010) .... 5 2. Title of another chapter (10.3.2010) .. 10 3. A very long title of a chapter (10.5.2010) .. 34 4. Title of fourth chap. (8.4.2010) ... 25 Another complication is that I would like the line to snap to a grid. I tried it with framed, but I'm not good enough in ConTeXt. Please, any idea? Thank you, best regards, Tomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________