4
votes
3answers
1k views

How to patch a floating environment so that the patched command floats

I'm using etoolbox to patch some environments. I want to use \AtBeginEnvironment{table}{\marginpar{foo}} to put something in the margin by the float. But the marginpar is typeset where the environment ...