* Number conversion in btxlist and citations
@ 2021-09-15 14:38 kauśika cittūr via ntg-context
2021-09-16 8:10 ` kauśika cittūr via ntg-context
2021-09-16 13:57 ` kauśika cittūr via ntg-context
0 siblings, 2 replies; 3+ messages in thread
From: kauśika cittūr via ntg-context @ 2021-09-15 14:38 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika cittūr
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Number conversion in btxlist and citations
2021-09-15 14:38 Number conversion in btxlist and citations kauśika cittūr via ntg-context
@ 2021-09-16 8:10 ` kauśika cittūr via ntg-context
2021-09-16 13:57 ` kauśika cittūr via ntg-context
1 sibling, 0 replies; 3+ messages in thread
From: kauśika cittūr via ntg-context @ 2021-09-16 8:10 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika cittūr
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Number conversion in btxlist and citations
2021-09-15 14:38 Number conversion in btxlist and citations kauśika cittūr via ntg-context
2021-09-16 8:10 ` kauśika cittūr via ntg-context
@ 2021-09-16 13:57 ` kauśika cittūr via ntg-context
1 sibling, 0 replies; 3+ messages in thread
From: kauśika cittūr via ntg-context @ 2021-09-16 13:57 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika cittūr
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-16 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 14:38 Number conversion in btxlist and citations kauśika cittūr via ntg-context
2021-09-16 8:10 ` kauśika cittūr via ntg-context
2021-09-16 13:57 ` kauśika cittūr via ntg-context
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).