29 Apr
2024
29 Apr
'24
8:21 p.m.
On 4/29/24 19:32, Wolfgang Schuster wrote:
Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 18:21:
Is \protected the same as \unexpanded?
Yes they are the same (\protected is the primitive and \unexpanded is a copy) but this wasn't always the case.
Original TeX didn't provide a mechanism to create protected commands and creators of macro packages had to create their own mechanism for this, the ConTeXt solution was \unexpanded. With the etex extensions the \protected primitive was added and \unexpanded uses the new primitive when you used a engine which supported it.
Many thanks for your fast reply and your explanation, Wolfgang. Pablo