ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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).