ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez <oinos@gmx.es>
Subject: Re: Write to tuc file
Date: Sat, 6 Mar 2021 14:35:01 +0100	[thread overview]
Message-ID: <6965c96e-5d47-26cf-07a8-d5208b7ac707@xs4all.nl> (raw)
In-Reply-To: <d3264d3c-72be-3e2a-de4f-671474b090aa@gmx.es>

On 3/6/2021 1:56 PM, Pablo Rodriguez wrote:
> On 3/5/21 11:13 PM, Hans Hagen wrote:
>> On 3/5/2021 10:38 PM, denis.maier@ub.unibe.ch wrote:
>>> Thanks for this as well, Hans. Looks promising.
>>> So, this is to select pages or page-ranges for processing?
>> assuming that you have either marked pages or proper refs for chapters
>> you can use the reported values and feed them into whatever
>>
>> i could add something to the select style but i guess then there is no
>> uniformity in how users do this
> 
> Many thanks for the new stuff, Hans.
> 
> This could be an approach:
> 
>    \starttext
>    \completecontent
>    \dorecurse{10}
>    {\startchapter\markpage[start-\recurselevel]
>       \dorecurse{\randomnumber{0}{1000}}
>         {\input knuth\par}
>     \markpage[stop-\recurselevel]\stopchapter}
>    \stoptext
> 
> "start-" and "stop-" could define page ranges when the same identifier
> is used.
> 
> The select style could generate from start-identifier and
> stop-identifier, the result "identifier.pdf".
\startchapter[reference=whatever,title=foo]
\stopchapter
\startchapter[reference=moreover,title=oof]
\stopchapter

and --pages=whatever,moreover will give you the info you need to call 
context --extra=copy or whatever with the right arguments

-----------------------------------------------------------------
                                           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
___________________________________________________________________________________

  reply	other threads:[~2021-03-06 13:35 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
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 [this message]
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=6965c96e-5d47-26cf-07a8-d5208b7ac707@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).