13

I want to understand the TeX instructions

  \ifx\@tempb`\edef\next##1{%

Especially, I want understand what meaning of ` symbol before \edef.
As I know ifx compare two statements, symbol ` for symbol taking - `\A takes a code of symbol A. Or I am wrong? Thanks.

1
  • I have replaced the ` character with a ' character as there is an interference with TeX.SX formatting and the TeX character.
    – percusse
    Feb 21, 2012 at 14:29

1 Answer 1

21

The ` there has no connection to the use of ` to get the character code of a symbol, it should be read as

\ifx\@tempb`
    \edef\next....

that is if the two tokens \@tempb and ` are equal then define \next to be something. They will be equal if for example \@tempb had been defined by

\let\@tempb=`

or (if I recognise that code fragment:-) if it had been defined by \futurelet rather than \let.

1
  • Yes, David, this is fragment from one of yours answers on my question. I want understand those deeper. Thanks for explanation.
    – Andrew
    Feb 21, 2012 at 14:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .