> \let\@memoldcaption\caption > \def\caption{\donemaincaptiontrue\@memoldcaption} The new \caption will function just like \donemaincapture\caption did before. You need to store \caption somewhere if you want to just redefine it to always be preceded by \donemaincapture. -- Alex