From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92640 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Ordered list of references (figures) Date: Tue, 6 Oct 2015 11:14:30 +0600 Message-ID: <2F22E85E-1AB6-4E24-AF2E-697D5E79F6F0@fiee.net> References: <03CFD1FF-503B-4268-B920-38647895B297@fiee.net> <7D4D5153-51B1-42F3-A8A0-36CC6CBD8916@fiee.net> <4663FB71-1403-4386-B923-3B81947A8B18@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_2B39629E-D4DB-4903-BD9F-9902E767D002" X-Trace: ger.gmane.org 1444108541 23893 80.91.229.3 (6 Oct 2015 05:15:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 05:15:41 +0000 (UTC) Cc: mailing list for ConTeXt users To: Taco Hoekwater Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 06 07:15:26 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjKaz-0000oT-VD for gctc-ntg-context-518@m.gmane.org; Tue, 06 Oct 2015 07:15:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29F75101F7 for ; Tue, 6 Oct 2015 07:15:25 +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 8rU5kIbMJgco for ; Tue, 6 Oct 2015 07:15:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BD0071022E for ; Tue, 6 Oct 2015 07:14:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 953B4101F7 for ; Tue, 6 Oct 2015 07:14:42 +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 SI6AyzvY22UZ for ; Tue, 6 Oct 2015 07:14:41 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id EDAE6101E8 for ; Tue, 6 Oct 2015 07:14:40 +0200 (CEST) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t965EZiF018608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 6 Oct 2015 07:14:40 +0200 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=C/8BvW4k04SpCT6sburj0PO6lIXALmI2S5rZZ7QGzTtu5aPC0lyZK6d2gDgjOTXifzR2C4HQ9Grp2RNS0uqpisl53owvoYljNUHrGSjkaTCTQ6obNc2r2CWWYsveFJU4; h=Received:Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Message-Id:References:To:X-Mailer; Original-Received: (qmail 16263 invoked from network); 6 Oct 2015 07:14:34 +0200 Original-Received: from 176-123-225-135.maxlink.kg (HELO ?192.168.0.102?) (176.123.225.135) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 6 Oct 2015 07:14:34 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=North Rhine-Westphalia; city=Host; latitude=51.65; longitude=6.1833; http://maps.google.com/maps?q=51.65,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08PpFezuc - 0c17b2f2af8f - 20151006 (trained as not-spam) Received-SPF: pass (filter3-utr.mf.surf.net: domain of texml@fiee.net designates 178.77.74.245 as permitted sender) receiver=filter3-utr.mf.surf.net; client-ip=178.77.74.245; envelope-from=; helo=thesan.fiee.net; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:92640 Archived-At: --Apple-Mail=_2B39629E-D4DB-4903-BD9F-9902E767D002 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Taco, thank you for this interesting insight! Now, I=92m still stuck with my main concern, "inlining" the entries. And I need a way to get entries like "Cover" into the list, since = \writetoregister doesn=92t seem to be defined in MkIV. Best, Hraban Am 2015-09-30 um 15:34 schrieb Taco Hoekwater : > Hi Hraban, >=20 > Here is what I can do at short notice. After this, I would probably = just cut&paste > the final result back in after some tweaking. In any case, I am out of = time right now. >=20 > Good luck, > Taco >=20 >=20 > \newif\iffirstFIDXpage >=20 > \def\textcommand#1{#1\global\firstFIDXpagetrue} > \def\pagecommand#1{\iffirstFIDXpage (p.~\fi \global\firstFIDXpagefalse = #1} > \def\stopregisterpages{)\dostoptagged\endgroup} >=20 > \defineregister[fidx] > \setupregister[fidx][% > n=3D1, align=3Dno, > %alternative=3DB, > compress=3Dyes, > indicator=3Dno, > textcommand=3D\textcommand, > pagecommand=3D\pagecommand, > distance=3D0.5em, > before=3D{}, > after=3D{}, > prefix=3Dnone] >=20 >=20 >=20 >> On 30 Sep 2015, at 09:51, Henning Hraban Ramm wrote: >>=20 >> Hi Taco, >> sorry, I should have provided a minimal example. >> Thanks in advance! >>=20 >> Am 2015-09-29 um 12:30 schrieb Taco Hoekwater : >>=20 >>> Hi Hraban, >>>=20 >>> I would be happy to help with this (i've done some registers in the = past myself), but I will need a test file to play with... >>>=20 >>> Best wishes, >>> Taco >>>=20 >>>> On 28 Sep 2015, at 06:28, Henning Hraban Ramm = wrote: >>>>=20 >>>> PING! I would really appreciate an answer. >>>>=20 >>>>> Am 2015-09-22 um 17:39 schrieb Henning Hraban Ramm = : >>>>>=20 >>>>>> Am 2015-09-22 um 10:49 schrieb Henning Hraban Ramm = : >>>>>>=20 >>>>>> Hi wizards, >>>>>>=20 >>>>>> in my current book projects I need a list of figure references, = ordered by author and page number. >>>>>> Like this: >>>>>>=20 >>>>>> Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12=9620), = Hraban Ramm (p.3ff.) >>>>>>=20 >>>>>> How can I do that? I.e. >>>>>> - How can I assign an author name/reference to a figure? >>>>>> =96 How can I output that list? >>>>>>=20 >>>>>> About like this?: >>>>>>=20 >>>>>> = \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hr= aban Ramm} >>>>>>=20 >>>>>> \ref[t][someref] (\at{p.}[someref]) % put this in some command = that is called by \listoffigures ? >>>>>>=20 >>>>>>=20 >>>>>> Extension: I need to integrate some unnumbered pages into the = list, like the cover. >>>>>=20 >>>>> Ok, I can use registers for that: >>>>>=20 >>>>> \defineregister[fidx] >>>>> \setupregister[fidx][% >>>>> n=3D1, >>>>> compress=3Dyes, >>>>> indicator=3Dno, >>>>> distance=3D0.5em, >>>>> before=3D{}, >>>>> after=3D{,}, >>>>> prefix=3Dnone, >>>>> ] >>>>> \setupheadtext[fidx=3DFigures] >>>>>=20 >>>>> I can influence the order like \fidx[spinoza]{Baruch Spinoza}, = great. >>>>>=20 >>>>> That gets me as far as: >>>>>=20 >>>>> Hraban 2=963, 5, 7, 9=9610, 12, 14, 16=9617, 19, 21, 23=9624, 26, = 28, 30=9631, 33, 35 >>>>> Picasso 1=962, 4=965, 8=969, 11=9612, 15=9616, 18=9619, 22=9623, = 25=9626, 29=9630, 32=9633 >>>>>=20 >>>>> But I=92d like to have >>>>>=20 >>>>> Hraban (p.2=963, 5, 7, 9=9610, 12, 14, 16=9617, 19, 21, 23=9624, = 26, 28, 30=9631, 33, 35), Picasso (p.1=962, 4=965, 8=969, 11=9612, = 15=9616, 18=9619, 22=9623, 25=9626, 29=9630, 32=9633) >>>>>=20 >>>>>=20 >>>>> For inserting a page name like "Cover" I tried >>>>> \writetoregister[fidx][Picasso]{Cover} >>>>>=20 >>>>> But \writetoregister is undefined!? (As well as \writetofidx) >>>>>=20 >>>>> What else can I use? >>>>>=20 >>>>>=20 >>>>> Greetlings, Hraban >>>>> --- >>>>> http://www.fiee.net >>>>> http://wiki.contextgarden.net >>>>> https://www.cacert.org (I'm an assurer) --Apple-Mail=_2B39629E-D4DB-4903-BD9F-9902E767D002 Content-Disposition: attachment; filename=indextest.tex Content-Type: application/octet-stream; name="indextest.tex" Content-Transfer-Encoding: 7bit \setuphead[chapter][page=no] \setupheadertexts[text][chapter][pagenumber] \setupheader[text][state=start] \setupinteraction[state=start,style=,color=] % by Taco Hoekwater, 2015-09-30 \newif\iffirstFIDXpage \def\textcommand#1{#1\global\firstFIDXpagetrue} \def\pagecommand#1{\iffirstFIDXpage (p.~\fi \global\firstFIDXpagefalse #1} % this adds (p. before the page numbers \def\stopregisterpages{)\dostoptagged\endgroup} % this adds the brace after the page numbers % end Taco \defineregister[fidx] \setupregister[fidx][% n=1, %align=yes, balance=no, compress=yes, indicator=no, textcommand=\textcommand, pagecommand=\pagecommand, distance=0.5em, before={}, after={}, ] \setupheadtext[fidx=Figures] \setupnote[footnote][% way=bypage,% DOES NOTHING numberconversion=set 2] \definehead[Kapitel][chapter] \definehead[Abschnitt][section] \starttext %\writetoregister[fidx][Picasso]{Cover} % BUG: command undefined!? \dorecurse{20}{% \expanded{\Kapitel{My chapter \recurselevel}}\fidx{Picasso} \expanded{% \placefigure[top][abb]{Caption \recurselevel}{{\externalfigure[koe][width=\textwidth]}} \fidx{Fig.\recurselevel} } \expanded{\index{Index entry \recurselevel}} \expanded{\section{My Zapf \recurselevel}} \input zapf\expanded{\footnote{Zapf \recurselevel}} \placefigure[left][abb]{Caption 0.\recurselevel}{{\externalfigure[koe][width=0.33\textwidth]}} \fidx[spinoza]{Baruch Spinoza} \expanded{\section{My Tufte \recurselevel}} \input tufte\expanded{\footnote{Tufte \recurselevel}} } \completeindex % OK \completecontent[criterium=all] % OK \completefidx \stoptext --Apple-Mail=_2B39629E-D4DB-4903-BD9F-9902E767D002 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --Apple-Mail=_2B39629E-D4DB-4903-BD9F-9902E767D002--