On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote:
> Dear all,
> 
> I have a simple btx definition 'mylist' for which I have written a simple
> publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have
> 
> ⋮
> \definebtx
>   [mylist]
>   [default=default,specification=mylist]
> \definebtxrendering
>    [mylist]
>    [specification=mylist]
> \setupbtxlist
>   [mylist]
>   [numberconversion=myconv]
> ⋮
> 
> I have define the required setups for every category entry as well. I have
> verified that this btxrendering works. I have also verified that my
> conversion set 'myconv' is functional (I am using it for page numbers and
> section headings).
> 
> However, the numbers used in the citation are not converted. That is,
> 'numberconversion=myconv' seems to have no effect. What am I doing wrong?
> 
> Please advise.
> 
> Thanks,
> kauśika

Dear all,

After looking through publ-imp-cite.mkvi I was able to piece together the 
following setup for my cite command

\definecounter
  [mycitecntr]
  [counter=mycitecntr]

\startsetups btx:mylist:cite:num
  \goto{\getnumber[mycitecntr]}[\s!internal(\currentbtxinternal)]
  \incrementnumber[mycitecntr]
\stopsetups

along with

\setupbtxlist
  [mylist]
  [counter=mycitecounter]

With this the citations numbers are converted properly, they do not start at 1 
but instead are offset from 1 by the total number of citations. Moreover, the 
list placed by \placelistofpublications still uses the regular numbers (i.e 
conversion does not occur).

Clearly I am doing something wrong. I am very grateful for any guidance.

Thanks,
kauśika


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to