<div dir="ltr">Thanks but this produces<br><br><i>start</i> 1+2=3<br>end<br><br>rather than<br><br>start<br>1+2=3<br>end<br><br><div class="gmail_quote">On Mon, May 2, 2011 at 10:41 AM, Donald Arseneau <span dir="ltr"><<a href="mailto:asnd@triumf.ca">asnd@triumf.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">Vafa Khalighi <<a href="mailto:vafa018@gmail.com">vafa018@gmail.com</a>> writes:<br>
<br>
> There is \everydisplay primitive but how can you have something before<br>
> display and something after display. I mean can you define<br>
> \beforeeveryDisplay and \aftereverydisplay hooks? See this example:<br>
><br>
> start<br>
> $$1+2=3$$<br>
> end<br>
><br>
> So I could have<br>
> \beforeeverydisplay{start}<br>
> \aftereverydisplay{end}<br>
> $$1+2=3$$<br>
><br>
> \beforeeverydisplay and \aftereverydisplay works for every single display<br>
> just like how \everydisplay works.<br>
<br>
<br>
</div></div>\everydisplay{\aftergroup\the\aftergroup\aftereverydisplay<br>
\the\beforeeverydisplay}<br>
<br>
<br>
Donald Arseneau <a href="mailto:asnd@triumf.ca">asnd@triumf.ca</a><br>
_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
</blockquote></div><br></div>