Quantcast
Channel: What are the values for parameters of an \edef at the time of definition? - TeX - LaTeX Stack Exchange
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

What 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
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>