ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Ordered list of references (figures)
@ 2015-09-22  4:49 Henning Hraban Ramm
  2015-09-22 11:39 ` Henning Hraban Ramm
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2015-09-22  4:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi wizards,

in my current book projects I need a list of figure references, ordered by author and page number.
Like this:

Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12–20), Hraban Ramm (p.3ff.)

How can I do that? I.e.
- How can I assign an author name/reference to a figure?
– How can I output that list?

About like this?:

\placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban Ramm}

\ref[t][someref] (\at{p.}[someref]) % put this in some command that is called by \listoffigures ?


Extension: I need to integrate some unnumbered pages into the list, like the cover.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ordered list of references (figures)
  2015-09-22  4:49 Ordered list of references (figures) Henning Hraban Ramm
@ 2015-09-22 11:39 ` Henning Hraban Ramm
  2015-09-28  4:28   ` Henning Hraban Ramm
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2015-09-22 11:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2015-09-22 um 10:49 schrieb Henning Hraban Ramm <texml@fiee.net>:

> Hi wizards,
> 
> in my current book projects I need a list of figure references, ordered by author and page number.
> Like this:
> 
> Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12–20), Hraban Ramm (p.3ff.)
> 
> How can I do that? I.e.
> - How can I assign an author name/reference to a figure?
> – How can I output that list?
> 
> About like this?:
> 
> \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban Ramm}
> 
> \ref[t][someref] (\at{p.}[someref]) % put this in some command that is called by \listoffigures ?
> 
> 
> Extension: I need to integrate some unnumbered pages into the list, like the cover.

Ok, I can use registers for that:

\defineregister[fidx]
\setupregister[fidx][%
	n=1,
	compress=yes,
	indicator=no,
	distance=0.5em,
	before={},
	after={,},
	prefix=none,
]
\setupheadtext[fidx=Figures]

I can influence the order like \fidx[spinoza]{Baruch Spinoza}, great.

That gets me as far as:

Hraban 2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35
Picasso 1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33

But I’d like to have

Hraban (p.2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35), Picasso (p.1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33)


For inserting a page name like "Cover" I tried
\writetoregister[fidx][Picasso]{Cover}

But \writetoregister is undefined!? (As well as \writetofidx)

What else can I use?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ordered list of references (figures)
  2015-09-22 11:39 ` Henning Hraban Ramm
@ 2015-09-28  4:28   ` Henning Hraban Ramm
       [not found]     ` <DE4A9B35-9A99-4723-938C-13DF56AEC02D@elvenkind.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2015-09-28  4:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

PING! I would really appreciate an answer.

Am 2015-09-22 um 17:39 schrieb Henning Hraban Ramm <texml@fiee.net>:

> Am 2015-09-22 um 10:49 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
>> Hi wizards,
>> 
>> in my current book projects I need a list of figure references, ordered by author and page number.
>> Like this:
>> 
>> Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12–20), Hraban Ramm (p.3ff.)
>> 
>> How can I do that? I.e.
>> - How can I assign an author name/reference to a figure?
>> – How can I output that list?
>> 
>> About like this?:
>> 
>> \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban Ramm}
>> 
>> \ref[t][someref] (\at{p.}[someref]) % put this in some command that is called by \listoffigures ?
>> 
>> 
>> Extension: I need to integrate some unnumbered pages into the list, like the cover.
> 
> Ok, I can use registers for that:
> 
> \defineregister[fidx]
> \setupregister[fidx][%
> 	n=1,
> 	compress=yes,
> 	indicator=no,
> 	distance=0.5em,
> 	before={},
> 	after={,},
> 	prefix=none,
> ]
> \setupheadtext[fidx=Figures]
> 
> I can influence the order like \fidx[spinoza]{Baruch Spinoza}, great.
> 
> That gets me as far as:
> 
> Hraban 2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35
> Picasso 1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33
> 
> But I’d like to have
> 
> Hraban (p.2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35), Picasso (p.1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33)
> 
> 
> For inserting a page name like "Cover" I tried
> \writetoregister[fidx][Picasso]{Cover}
> 
> But \writetoregister is undefined!? (As well as \writetofidx)
> 
> What else can I use?
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> https://www.cacert.org (I'm an assurer)
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ordered list of references (figures)
       [not found]     ` <DE4A9B35-9A99-4723-938C-13DF56AEC02D@elvenkind.com>
@ 2015-09-30  7:51       ` Henning Hraban Ramm
  2015-09-30  9:34         ` Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2015-09-30  7:51 UTC (permalink / raw)
  To: Taco Hoekwater, mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 2591 bytes --]

Hi Taco,
sorry, I should have provided a minimal example.
Thanks in advance!

Am 2015-09-29 um 12:30 schrieb Taco Hoekwater <taco@elvenkind.com>:

> Hi Hraban,
> 
> 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...
> 
> Best wishes,
> Taco
> 
>> On 28 Sep 2015, at 06:28, Henning Hraban Ramm <texml@fiee.net> wrote:
>> 
>> PING! I would really appreciate an answer.
>> 
>>> Am 2015-09-22 um 17:39 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>> 
>>>> Am 2015-09-22 um 10:49 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>> 
>>>> Hi wizards,
>>>> 
>>>> in my current book projects I need a list of figure references, ordered by author and page number.
>>>> Like this:
>>>> 
>>>> Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12–20), Hraban Ramm (p.3ff.)
>>>> 
>>>> How can I do that? I.e.
>>>> - How can I assign an author name/reference to a figure?
>>>> – How can I output that list?
>>>> 
>>>> About like this?:
>>>> 
>>>> \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban Ramm}
>>>> 
>>>> \ref[t][someref] (\at{p.}[someref]) % put this in some command that is called by \listoffigures ?
>>>> 
>>>> 
>>>> Extension: I need to integrate some unnumbered pages into the list, like the cover.
>>> 
>>> Ok, I can use registers for that:
>>> 
>>> \defineregister[fidx]
>>> \setupregister[fidx][%
>>>   n=1,
>>>   compress=yes,
>>>   indicator=no,
>>>   distance=0.5em,
>>>   before={},
>>>   after={,},
>>>   prefix=none,
>>> ]
>>> \setupheadtext[fidx=Figures]
>>> 
>>> I can influence the order like \fidx[spinoza]{Baruch Spinoza}, great.
>>> 
>>> That gets me as far as:
>>> 
>>> Hraban 2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35
>>> Picasso 1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33
>>> 
>>> But I’d like to have
>>> 
>>> Hraban (p.2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35), Picasso (p.1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33)
>>> 
>>> 
>>> For inserting a page name like "Cover" I tried
>>> \writetoregister[fidx][Picasso]{Cover}
>>> 
>>> But \writetoregister is undefined!? (As well as \writetofidx)
>>> 
>>> What else can I use?
>>> 
>>> 
>>> Greetlings, Hraban
>>> ---
>>> http://www.fiee.net
>>> http://wiki.contextgarden.net
>>> https://www.cacert.org (I'm an assurer)



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

[-- Attachment #2: indextest.tex --]
[-- Type: application/octet-stream, Size: 1285 bytes --]


\setuphead[chapter][page=no]

\setupheadertexts[text][chapter][pagenumber]
\setupheader[text][state=start]

%\setupregister[index][%
%	n=2, balance=no, align=yes, alternative=A, indicator=yes, pagestyle=normal, location=right, style=type
%]

\defineregister[fidx]
\setupregister[fidx][%
	n=1, align=no,
	%alternative=B,
	compress=yes,
	indicator=no,
	distance=0.5em,
	before={},
	after={,},
	prefix=none,
]
\setupheadtext[fidx=Figures]

\setupnote[footnote][%
	way=bypage,% DOES NOTHING
	numberconversion=set 2]

\definehead[Kapitel][chapter]
\definehead[Abschnitt][section]


\starttext

%\writetoregister[fidx][Picasso]{Cover}

\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

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ordered list of references (figures)
  2015-09-30  7:51       ` Henning Hraban Ramm
@ 2015-09-30  9:34         ` Taco Hoekwater
  2015-10-06  5:14           ` Henning Hraban Ramm
  0 siblings, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2015-09-30  9:34 UTC (permalink / raw)
  To: Henning Hraban Ramm; +Cc: mailing list for ConTeXt users

Hi Hraban,

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.

Good luck,
Taco


\newif\iffirstFIDXpage

\def\textcommand#1{#1\global\firstFIDXpagetrue}
\def\pagecommand#1{\iffirstFIDXpage (p.~\fi \global\firstFIDXpagefalse #1}
\def\stopregisterpages{)\dostoptagged\endgroup}

\defineregister[fidx]
\setupregister[fidx][%
	n=1, align=no,
	%alternative=B,
	compress=yes,
	indicator=no,
	textcommand=\textcommand,
	pagecommand=\pagecommand,
	distance=0.5em,
	before={},
	after={},
	prefix=none]



> On 30 Sep 2015, at 09:51, Henning Hraban Ramm <texml@fiee.net> wrote:
> 
> Hi Taco,
> sorry, I should have provided a minimal example.
> Thanks in advance!
> 
> Am 2015-09-29 um 12:30 schrieb Taco Hoekwater <taco@elvenkind.com>:
> 
>> Hi Hraban,
>> 
>> 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...
>> 
>> Best wishes,
>> Taco
>> 
>>> On 28 Sep 2015, at 06:28, Henning Hraban Ramm <texml@fiee.net> wrote:
>>> 
>>> PING! I would really appreciate an answer.
>>> 
>>>> Am 2015-09-22 um 17:39 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>> 
>>>>> Am 2015-09-22 um 10:49 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>>> 
>>>>> Hi wizards,
>>>>> 
>>>>> in my current book projects I need a list of figure references, ordered by author and page number.
>>>>> Like this:
>>>>> 
>>>>> Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12–20), Hraban Ramm (p.3ff.)
>>>>> 
>>>>> How can I do that? I.e.
>>>>> - How can I assign an author name/reference to a figure?
>>>>> – How can I output that list?
>>>>> 
>>>>> About like this?:
>>>>> 
>>>>> \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban Ramm}
>>>>> 
>>>>> \ref[t][someref] (\at{p.}[someref]) % put this in some command that is called by \listoffigures ?
>>>>> 
>>>>> 
>>>>> Extension: I need to integrate some unnumbered pages into the list, like the cover.
>>>> 
>>>> Ok, I can use registers for that:
>>>> 
>>>> \defineregister[fidx]
>>>> \setupregister[fidx][%
>>>>  n=1,
>>>>  compress=yes,
>>>>  indicator=no,
>>>>  distance=0.5em,
>>>>  before={},
>>>>  after={,},
>>>>  prefix=none,
>>>> ]
>>>> \setupheadtext[fidx=Figures]
>>>> 
>>>> I can influence the order like \fidx[spinoza]{Baruch Spinoza}, great.
>>>> 
>>>> That gets me as far as:
>>>> 
>>>> Hraban 2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35
>>>> Picasso 1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33
>>>> 
>>>> But I’d like to have
>>>> 
>>>> Hraban (p.2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35), Picasso (p.1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33)
>>>> 
>>>> 
>>>> For inserting a page name like "Cover" I tried
>>>> \writetoregister[fidx][Picasso]{Cover}
>>>> 
>>>> But \writetoregister is undefined!? (As well as \writetofidx)
>>>> 
>>>> What else can I use?
>>>> 
>>>> 
>>>> Greetlings, Hraban
>>>> ---
>>>> http://www.fiee.net
>>>> http://wiki.contextgarden.net
>>>> https://www.cacert.org (I'm an assurer)
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> https://www.cacert.org (I'm an assurer)
> <indextest.tex>

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ordered list of references (figures)
  2015-09-30  9:34         ` Taco Hoekwater
@ 2015-10-06  5:14           ` Henning Hraban Ramm
  0 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2015-10-06  5:14 UTC (permalink / raw)
  To: Taco Hoekwater; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 3733 bytes --]

Hi Taco, thank you for this interesting insight!

Now, I’m 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’t seem to be defined in MkIV.

Best, Hraban

Am 2015-09-30 um 15:34 schrieb Taco Hoekwater <taco@elvenkind.com>:

> Hi Hraban,
> 
> 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.
> 
> Good luck,
> Taco
> 
> 
> \newif\iffirstFIDXpage
> 
> \def\textcommand#1{#1\global\firstFIDXpagetrue}
> \def\pagecommand#1{\iffirstFIDXpage (p.~\fi \global\firstFIDXpagefalse #1}
> \def\stopregisterpages{)\dostoptagged\endgroup}
> 
> \defineregister[fidx]
> \setupregister[fidx][%
> 	n=1, align=no,
> 	%alternative=B,
> 	compress=yes,
> 	indicator=no,
> 	textcommand=\textcommand,
> 	pagecommand=\pagecommand,
> 	distance=0.5em,
> 	before={},
> 	after={},
> 	prefix=none]
> 
> 
> 
>> On 30 Sep 2015, at 09:51, Henning Hraban Ramm <texml@fiee.net> wrote:
>> 
>> Hi Taco,
>> sorry, I should have provided a minimal example.
>> Thanks in advance!
>> 
>> Am 2015-09-29 um 12:30 schrieb Taco Hoekwater <taco@elvenkind.com>:
>> 
>>> Hi Hraban,
>>> 
>>> 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...
>>> 
>>> Best wishes,
>>> Taco
>>> 
>>>> On 28 Sep 2015, at 06:28, Henning Hraban Ramm <texml@fiee.net> wrote:
>>>> 
>>>> PING! I would really appreciate an answer.
>>>> 
>>>>> Am 2015-09-22 um 17:39 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>>> 
>>>>>> Am 2015-09-22 um 10:49 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>>>> 
>>>>>> Hi wizards,
>>>>>> 
>>>>>> in my current book projects I need a list of figure references, ordered by author and page number.
>>>>>> Like this:
>>>>>> 
>>>>>> Photos: Hans Hagen (p.1,4,6,7), Taco Hoekwater (p.2,12–20), Hraban Ramm (p.3ff.)
>>>>>> 
>>>>>> How can I do that? I.e.
>>>>>> - How can I assign an author name/reference to a figure?
>>>>>> – How can I output that list?
>>>>>> 
>>>>>> About like this?:
>>>>>> 
>>>>>> \placefigure[top][someref]{\externalfigure[somepic]}\reference[someref]{Hraban Ramm}
>>>>>> 
>>>>>> \ref[t][someref] (\at{p.}[someref]) % put this in some command that is called by \listoffigures ?
>>>>>> 
>>>>>> 
>>>>>> Extension: I need to integrate some unnumbered pages into the list, like the cover.
>>>>> 
>>>>> Ok, I can use registers for that:
>>>>> 
>>>>> \defineregister[fidx]
>>>>> \setupregister[fidx][%
>>>>> n=1,
>>>>> compress=yes,
>>>>> indicator=no,
>>>>> distance=0.5em,
>>>>> before={},
>>>>> after={,},
>>>>> prefix=none,
>>>>> ]
>>>>> \setupheadtext[fidx=Figures]
>>>>> 
>>>>> I can influence the order like \fidx[spinoza]{Baruch Spinoza}, great.
>>>>> 
>>>>> That gets me as far as:
>>>>> 
>>>>> Hraban 2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35
>>>>> Picasso 1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33
>>>>> 
>>>>> But I’d like to have
>>>>> 
>>>>> Hraban (p.2–3, 5, 7, 9–10, 12, 14, 16–17, 19, 21, 23–24, 26, 28, 30–31, 33, 35), Picasso (p.1–2, 4–5, 8–9, 11–12, 15–16, 18–19, 22–23, 25–26, 29–30, 32–33)
>>>>> 
>>>>> 
>>>>> For inserting a page name like "Cover" I tried
>>>>> \writetoregister[fidx][Picasso]{Cover}
>>>>> 
>>>>> But \writetoregister is undefined!? (As well as \writetofidx)
>>>>> 
>>>>> What else can I use?
>>>>> 
>>>>> 
>>>>> Greetlings, Hraban
>>>>> ---
>>>>> http://www.fiee.net
>>>>> http://wiki.contextgarden.net
>>>>> https://www.cacert.org (I'm an assurer)

[-- Attachment #2: indextest.tex --]
[-- Type: application/octet-stream, Size: 1585 bytes --]


\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

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-06  5:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-22  4:49 Ordered list of references (figures) Henning Hraban Ramm
2015-09-22 11:39 ` Henning Hraban Ramm
2015-09-28  4:28   ` Henning Hraban Ramm
     [not found]     ` <DE4A9B35-9A99-4723-938C-13DF56AEC02D@elvenkind.com>
2015-09-30  7:51       ` Henning Hraban Ramm
2015-09-30  9:34         ` Taco Hoekwater
2015-10-06  5:14           ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).