Possible Duplicate:
What is the meaning of double pound symbol (##1) in an argument?
I see some LaTeX3 code with ##1 instead of #1 for parameters. What are the rules for this? This answer uses it, for example.
I see some LaTeX3 code with |
|||
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
You're referring to
Let's see how
(but any other code can be used in the second argument). However, in the code above, the function appears in the replacement text of a definition, so the old TeX rule applies, of which
is a typical example: the call
This is how Knuth allowed to put definition of macros with arguments inside other definitions; the rule is that, when a replacement text is being scanned, a single In other words, when |
|||
|
|
##1means the same thing in LaTeX3 that it does in TeX...: from TeX by Topic: "When TEX’s input processor scans a macro definition text, it inserts a parameter token for any occurrence of a macro parameter character followed by a digit. In effect, a parameter token in the replacement text states ‘insert parameter number such and such here’. Two parameter characters in a row are replaced by a single one." – Gonzalo Medina May 22 '12 at 20:32##1) in an argument? – Werner May 22 '12 at 20:36#1(or##1) sometimes apparently comes out from nothing and I think that some explanation of the feature can be useful. – egreg May 22 '12 at 20:43