LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Kastrup <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Fri, 1 Apr 2005 22:01:24 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Uwe Lück <[log in to unmask]> writes:

> A package file with a proposal for dealing with the \@reinserts
> problem that has occupied the LaTeX-L list this week is attached.

Standard mistake.  When redefining hook token registers, you need
_two_ extra control sequences, not one.  Something like

\let\my@@output\output
\newtoks\output
\let\my@output\output
\output\expandafter{\the\my@@output}

\my@@output{whatever stuff I want and need
  \the\my@output for recursing to the original}

If you use \the\output for recursing instead of \the\my@output, then
multiple packages doing the same trick will conflict, and not properly
daisy-chain.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

ATOM RSS1 RSS2