* Quirk with \userpagenumber, datasets and the .tuc file
@ 2020-12-09 12:08 Bruce Horrocks
2020-12-09 12:30 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Horrocks @ 2020-12-09 12:08 UTC (permalink / raw)
To: ntg-context
Here's an odd quirk...
I wanted to get at some of my dataset data for use outside of ConTeXt so I thought I would just extract it from the .tuc file. MWE:
\definedataset [MyDS][delay=yes]
\starttext
\input tufte
\setdataset [MyDS]
[ title={Test title},
page={\userpagenumber},
]
\stoptext
In the TUC file I get:
utilitydata.job.datasets.collected={
["MyDS"]={
{
["index"]=1,
["order"]=1,
["page"]="1\\relax ",
["realpage"]=1,
["title"]="Test title",
},
},
}
Note the \\relax following the page number. This isn't a problem for me at the moment but I wondered if it is something that needs to be looked at?
--
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
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] 2+ messages in thread
* Re: Quirk with \userpagenumber, datasets and the .tuc file
2020-12-09 12:08 Quirk with \userpagenumber, datasets and the .tuc file Bruce Horrocks
@ 2020-12-09 12:30 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-12-09 12:30 UTC (permalink / raw)
To: mailing list for ConTeXt users, Bruce Horrocks
On 12/9/2020 1:08 PM, Bruce Horrocks wrote:
> Here's an odd quirk...
>
> I wanted to get at some of my dataset data for use outside of ConTeXt so I thought I would just extract it from the .tuc file. MWE:
>
> \definedataset [MyDS][delay=yes]
> \starttext
> \input tufte
> \setdataset [MyDS]
> [ title={Test title},
> page={\userpagenumber},
> ]
> \stoptext
>
> In the TUC file I get:
>
> utilitydata.job.datasets.collected={
> ["MyDS"]={
> {
> ["index"]=1,
> ["order"]=1,
> ["page"]="1\\relax ",
> ["realpage"]=1,
> ["title"]="Test title",
> },
> },
> }
>
> Note the \\relax following the page number. This isn't a problem for me at the moment but I wondered if it is something that needs to be looked at?
you ask for the "typeset number" while you want \pagenumber
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2020-12-09 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 12:08 Quirk with \userpagenumber, datasets and the .tuc file Bruce Horrocks
2020-12-09 12:30 ` Hans Hagen
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).