From: Hans Hagen <j.hagen@xs4all.nl>
To: denis.maier@ub.unibe.ch,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Write to tuc file
Date: Sat, 27 Feb 2021 19:26:52 +0100 [thread overview]
Message-ID: <c97abf1b-ad3b-1d11-31ce-4a80f2806055@xs4all.nl> (raw)
In-Reply-To: <a7116b2d1a104a9c90aad92744768543@ub.unibe.ch>
On 2/27/2021 6:28 PM, denis.maier@ub.unibe.ch wrote:
> It's a book that will be published in two volumes, continually paginated.
> In the end I need two pdf files, but I thought it might be easier to treat them as one volume and just split the files with some external tool afterwards.
>
> I could also treat them as two individual books, but then I'd have to get the last page number of volume 1 in volume 2.
On the console you see the pagenumbers right? What you need is the
realpage. You could actually do something:
\dorecurse{10}{\samplefile{tufte}\page}
\appendetoks
\writestatus{!!!!!}{}
\writestatus{!!!!!}{SPLIT HERE: \the\realpageno}
\writestatus{!!!!!}{}
\to \everystoptext
\dorecurse{10}{\samplefile{tufte}\page}
and then use this number in:
context --extra=select --selection=1:4 oeps.pdf --once --autopdf
context --extra=select --selection=5:9999 oeps.pdf --once --autopdf
(We can actually relate tags to pages so maybe I will make something to
pick that up from the tuc file.)
Hans
-----------------------------------------------------------------
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-02-27 18:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-27 16:58 denis.maier
2021-02-27 17:22 ` Hans Hagen
2021-02-27 17:28 ` denis.maier
2021-02-27 18:26 ` Hans Hagen [this message]
2021-02-27 21:25 ` denis.maier
2021-02-28 8:07 ` denis.maier
2021-03-05 10:29 ` Hans Hagen
2021-03-05 21:38 ` denis.maier
2021-03-05 22:13 ` Hans Hagen
2021-03-06 12:56 ` Pablo Rodriguez
2021-03-06 13:35 ` Hans Hagen
2021-03-07 10:04 ` Pablo Rodriguez
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=c97abf1b-ad3b-1d11-31ce-4a80f2806055@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=denis.maier@ub.unibe.ch \
--cc=ntg-context@ntg.nl \
/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).