Answer by egreg for What are the values for parameters of an \edef at the...
When TeX does \edef<macro><parameter text>{1<replacement text>}2 it sets aside the <macro> the replacement text and {1, then does full expansion to <replacement text>...
View ArticleAnswer by user4686 for What are the values for parameters of an \edef at the...
I would say that it compares # with 1 hance always goes for the false branch. (Compares second test where it compares # with # and chooses true branch)\edef\bar#1{\if#1#1 (TRUE)\else #1...
View ArticleWhat are the values for parameters of an \edef at the time of definition?
Suppose we have the following short document\documentclass{article}\def\foo#1{\if#1XX\else not X\fi}\edef\bar#1{\if#1XX\else not X\fi}\begin{document}foo: X = \foo{X}, Y = \foo{Y}bar: X = \bar{X}, Y =...
View Article
More Pages to Explore .....