From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Bruce Horrocks <ntg@scorecrow.com>
Subject: Re: Quirk with \userpagenumber, datasets and the .tuc file
Date: Wed, 9 Dec 2020 13:30:08 +0100 [thread overview]
Message-ID: <98dc905d-9eb7-d091-dbf3-a412cc13a422@xs4all.nl> (raw)
In-Reply-To: <F7260208-B099-439D-B6C5-DD16082A9070@scorecrow.com>
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
___________________________________________________________________________________
prev parent reply other threads:[~2020-12-09 12:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 12:08 Bruce Horrocks
2020-12-09 12:30 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98dc905d-9eb7-d091-dbf3-a412cc13a422@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=ntg@scorecrow.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).