[luatex] New \pdf... primitives

Hans Hagen pragma at wxs.nl
Tue Nov 17 09:27:05 CET 2015


On 11/17/2015 8:04 AM, Joseph Wright wrote:
> On 16/11/2015 22:39, Joseph Wright wrote:
>> Hello all,
>>
>> Setting up some tests to work with the v0.85 code, I notice that the
>> suggestion in the manual
>>
>>    \edef\pdfhorigin{\pdfvariable horigin}
>>
>> yields with \show\pdfhorigin
>>
>>    \pdf_horigin=\pdf_horigin
>>
>> which is accessible using \csname or catcode changes. That seems odd
>> based on the fact this change has been made at all: is this a passing bug?
>>
>> Joseph
>>
>
> Related to this, I wonder if \pdfvariable should be (effectively)
> \protected. Normally one would expect primitives to either fully expand
> to a result or to act like \protected macros. Here, we have an
> intermediate case as \pdfvariable does expand but only as far as an
> internal token.

you can wrap it like you want:

\protected\def\pdfhorigin{\pdfvariable horigin}

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the luatex mailing list