[NTG-context] \defineprocessor and \at

Rik Kabel context at rik.users.panix.com
Tue Aug 11 21:41:35 CEST 2015


On 2015-08-11 14:49, Wolfgang Schuster wrote:
>> Rik Kabel <mailto:context at rik.users.panix.com>
>> 4. August 2015 00:18
>> Should processors work with references? I would think that they 
>> should, but the following fails. (My backmatter page numbers need to 
>> be marked to distinguish them from bodymatter pages. I can automate 
>> applying a processor based on the location for index register 
>> entries, but not for references.)
> \defineprocessor [bodypart] [style=bold]
> \defineprocessor [backpart] [style=italic]
>
> \defineconversionset[bodypart:pagenumber][][bodypart->n]
> \defineconversionset[backpart:pagenumber][][backpart->n]
>
> \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}]
>
> \starttext
>
> \startbodymatter
>
> \chapter[sec:knuth]{Knuth}
>
> \at{page}[sec:knuth]\par
> \at{page}[sec:zapf]
>
> \stopbodymatter
>
> \startbackmatter
>
> \chapter[sec:zapf]{Zapf}
>
> \at{page}[sec:knuth]\par
> \at{page}[sec:zapf]
>
> \stopbackmatter
>
> \stoptext
>
> Wolfgang
>
Thank you, Wolfgang, for that. But it still does not handle the after 
key, as I had in my example, and which works in a processor for index 
entries. Is there no way to do this?

-- 
Rik


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150811/a4e213ff/attachment.html>


More information about the ntg-context mailing list