Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
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
___


Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
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,

I have also tried this with the available 'words' conversion set. Even in that 
case, the conversion is not performed.

Please help. I would gladly share more information if required. I am using the 
latest LMTX.

Thank you,
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
___


[NTG-context] Number conversion in btxlist and citations

2021-09-15 Thread kauśika cittūr via ntg-context
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


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