Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I came across this idiom recently:

\def\foo#{...}

That is, a hash but no parameter number. What might be the purpose of this?

share|improve this question

marked as duplicate by Werner, Gonzalo Medina, egreg, cgnieder, Svend Tveskæg Apr 11 at 20:14

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.

1 Answer 1

up vote 11 down vote accepted

It grabs the content until the next brace (or group). For example:

\def\foo#1#{«#1»}

\starttext
\foo random content {until braces}
\stoptext

gives

enter image description here

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.