[NTG-pdftex] \expanded

Ross Moore ross.moore at mq.edu.au
Thu May 17 01:12:15 CEST 2018


Hi Karl, and others.

On May 17, 2018, at 8:57 AM, Karl Berry <karl at freefriends.org<mailto:karl at freefriends.org>> wrote:

Doing a grep on /usr/local/texlive/2018/texmf-dist/tex/, I see \expanded
is used in a couple oberdiek packages, context, and mathspec. I did not
try to figure out if the mathspec usage is compatible. It might be worth
notifying its author at some point as a courtesy. FWIW ...


Is  \expanded  really equivalent to that  xelatex  definition below:

xelatex/mathspec/mathspec.sty:129:\providecommand\expanded[1]{\edef\@tempa{#1}\@tempa}

It seems to me that it should be, but maybe there is actually a slight difference.
So it would be nice to see some practical applications;
e.g., where a package author had a specific desire, or absolute need (?),
to avoid going via a temporary container-like macro such as  \@tempa  above.

Otherwise, why the need for this as a primitive?
Convenience only, is not normally a good enough reason to add a primitive.


..
generic/oberdiek/etexcmds.sty:235:\edef\x{\string\expanded}%
generic/oberdiek/etexcmds.sty:236:\edef\y{\meaning\expanded}%
generic/oberdiek/etexcmds.sty:239: \let\etex at expanded\expanded
generic/oberdiek/etexcmds.sty:272: Could not find \string\expanded.\MessageBreak
generic/oberdiek/etexcmds.sty:275: that some package has redefined \string\expanded.%
generic/oberdiek/hobsub-generic.sty:3641:\edef\x{\string\expanded}%
generic/oberdiek/hobsub-generic.sty:3642:\edef\y{\meaning\expanded}%
generic/oberdiek/hobsub-generic.sty:3645:\let\etex at expanded\expanded
generic/oberdiek/hobsub-generic.sty:3678: Could not find \string\expanded.\MessageBreak
generic/oberdiek/hobsub-generic.sty:3681: that some package has redefined \string\expanded.%
..
xelatex/mathspec/mathspec.sty:129:\providecommand\expanded[1]{\edef\@tempa{#1}\@tempa}
xelatex/mathspec/mathspec.sty:132: \expanded{\noexpand\setkeys*[eu]{#2}{\expandonce#3\@empty}}}
xelatex/mathspec/mathspec.sty:134: \expanded{\noexpand\zf at fontspec{\expandonce#1\@empty}{\expandonce#2\@empty}}}
..

Grep finished at Tue May 15 10:18:14
_______________________________________________
ntg-pdftex mailing list
ntg-pdftex at ntg.nl<mailto:ntg-pdftex at ntg.nl>
https://mailman.ntg.nl/mailman/listinfo/ntg-pdftex


Cheers,

Ross


Dr Ross Moore

Mathematics Dept | 12 Wally’s Walk, 734
Macquarie University, NSW 2109, Australia

T: +61 2 9850 8955  |  F: +61 2 9850 8114<tel:%2B61%202%209850%209695>
M:+61 407 288 255<tel:%2B61%20409%20125%20670>  |  E: ross.moore at mq.edu.au<mailto:rick.minter at mq.edu.au>

http://www.maths.mq.edu.au<http://mq.edu.au/>


[cid:image001.png at 01D030BE.D37A46F0]<http://mq.edu.au/>


CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.<http://mq.edu.au/>

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University.<http://mq.edu.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-pdftex/attachments/20180516/fb522a0a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <http://mailman.ntg.nl/pipermail/ntg-pdftex/attachments/20180516/fb522a0a/attachment-0001.png>


More information about the ntg-pdftex mailing list