<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
A final # in the parameter text of a definition stands for a left brace.<br>
So \def\foo#1#{...} means that the first argument is delimited by a
left brace, hence it's "abc" in the following call:<br>
\foo abc{...}<br>
Note that this delimiter is not absorbed as delimiters normally are,
i.e. TeX still reads a left brace once it has found the argument.<br>
As remarked by Philipp, the weakness of the solution here is that boxes
can be opened by an implicit \bgroup instead of {, which is not
possible anymore with \hboxR.<br>
Paul<br>
<br>
Arno Trautmann a écrit :
<blockquote cite="mid:4BC0915F.5030208@gmx.de" type="cite">
  <pre wrap="">Paul Isambert wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">You can say:

\def\hboxR#1#{%
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I saw this kind of definition in a package and tried to understand what
it does (to change \textcolor a bit) – but I just didn’t get the meaning
of it. Could you explain shortly what the effect of #1# is? …

cheers
Arno

  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
TeX FAQ: <a class="moz-txt-link-freetext" href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a>
Mailing list archives: <a class="moz-txt-link-freetext" href="http://tug.org/pipermail/texhax/">http://tug.org/pipermail/texhax/</a>
More links: <a class="moz-txt-link-freetext" href="http://tug.org/begin.html">http://tug.org/begin.html</a>

Automated subscription management: <a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/texhax">http://tug.org/mailman/listinfo/texhax</a>
Human mailing list managers: <a class="moz-txt-link-abbreviated" href="mailto:postmaster@tug.org">postmaster@tug.org</a></pre>
</blockquote>
</body>
</html>