From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100979 Path: news.gmane.org!.POSTED!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: ToC as itemize Date: Sun, 10 Jun 2018 14:03:08 +0200 Message-ID: References: <24EAEB87-E083-43D0-AF6D-9E4A775BE735@fiee.net> <79EDD627-DED6-405C-82D5-2CCB53F79B09@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_39A8E86D-9225-44DB-B744-6456C735299F" X-Trace: blaine.gmane.org 1528632214 16740 195.159.176.226 (10 Jun 2018 12:03:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 12:03:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 10 14:03:30 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRz4E-0004Ha-2m for gctc-ntg-context-518@m.gmane.org; Sun, 10 Jun 2018 14:03:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3679034AEF; Sun, 10 Jun 2018 14:03:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mz02qACTrCUU; Sun, 10 Jun 2018 14:03:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A60E34AF1; Sun, 10 Jun 2018 14:03:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B6D034AEE for ; Sun, 10 Jun 2018 14:03:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qxpkcXizvHxo for ; Sun, 10 Jun 2018 14:03:19 +0200 (CEST) Original-Received: from fiee.net (feronia.fiee.net [46.163.112.221]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7A9A834AE1 for ; Sun, 10 Jun 2018 14:03:09 +0200 (CEST) Original-Received: from [192.168.178.36] (p5B293766.dip0.t-ipconnect.de [91.41.55.102]) by mail.fiee.net (Postfix) with ESMTPSA id 06E27801D3 for ; Sun, 10 Jun 2018 14:03:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fiee.net; s=default; t=1528632189; bh=vHOhi7JZDDPPQPgvBvQ5t5+Al9ny6gjhpaK6Fj3WSCo=; l=3082; h=From:Subject:To; b=Z1Lifn/9AcieJkIlkEVTrpK1gytANmqHxYYzx0xEWRTce6v4KwXXQNLddNcJ9wJmm zP80OYAxIZ6NBOS87hlGeQivG5eB0XTSAUffGM1VyMBE5ND10XKRXMlAu7/Aw7p16q E88iZpARDDM3ePys61zC4rtGmoadqvWcvnogtE4E= Authentication-Results: feronia.fiee.net; spf=pass (sender IP is 91.41.55.102) smtp.mailfrom=texml@fiee.net smtp.helo=[192.168.178.36] Received-SPF: pass (feronia.fiee.net: connection is authenticated) In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100979 Archived-At: --Apple-Mail=_39A8E86D-9225-44DB-B744-6456C735299F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 2018-06-10 um 13:35 schrieb Hans Hagen : > On 6/10/2018 11:55 AM, Henning Hraban Ramm wrote: >> Might there be a solution to this problem? >> I.e. how to insert ToC entries in an itemize? >=20 > Well, don't expect a solution without a MWE ... anyway The MWE was in my first mail (May 3rd). Thank you anyway! >=20 > \starttext >=20 > \define[3]\ChapterTocEntry{% > \startitem > \structurelistuservariable{author}: #1/#2/#3 > \stopitem > } >=20 > \definelist[chapter][% > alternative=3Dcommand, > interaction=3Dall, > criterium=3Dall, > before=3D, > after=3D, > command=3D\ChapterTocEntry] So I was missing alternative=3Dcommand. If you consider my attached MWE one problem remains: The usual space between items is missing between the last manual item = and the ToC list: ... \startitem Test entry \stopitem %\blank[1em] \placelist[chapter] ... I can fix it with the blank, but I=92d like to understand. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD --Apple-Mail=_39A8E86D-9225-44DB-B744-6456C735299F Content-Disposition: attachment; filename=toctest.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="toctest.tex" Content-Transfer-Encoding: 7bit % \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} \defineitemgroup[ContentsList] \setupitemgroup[ContentsList][each] [broad,packed,autointro,repeat][] \setupitemgroup[ContentsList][1][n][margin=1pc] \define[2]\ChapterTitle{% % simplified \reference[\namedstructurevariable{chapter}{reference}]{\strut}% \structurevariable{title} {\tfx by \structureuservariable{author}} } \define[3]\ChapterTocEntry{% parameters are not used \startitem% % simplified, IRL we use several user variables \structurelistuservariable{author}: #2 %#1/#2/#3 = chapter no./title/pagina %\namedstructurelistvariable{chapter}{title}?? \leaderfill\color[blue]{\currentlistentrypagenumber} \stopitem% } \setuphead[chapter][ style=\rm, command=\ChapterTitle, ] \definelist[chapter][% alternative=command, interaction=all, criterium=all, command=\ChapterTocEntry, before=, after=, ] \starttext \startContentsList %\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered \startitem Test entry\leaderfill 123 \stopitem \startitem Test entry\leaderfill 124 \stopitem %\blank[1em] \placelist[chapter] \startitem Test entry\leaderfill 125 \stopitem \stopContentsList \startchapter[title=First,reference=tufte1][author=Edward Tufte] \input tufte \stopchapter \startchapter[title=Second,reference=knuth][author=Donald Knuth] \input knuth \stopchapter \startchapter[title=Third,reference=tufte2][author=Edward Tufte] \input tufte \stopchapter \stoptext --Apple-Mail=_39A8E86D-9225-44DB-B744-6456C735299F Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --Apple-Mail=_39A8E86D-9225-44DB-B744-6456C735299F--