<div dir="ltr">There is \everydisplay primitive but how can you have something before display and something after display. I mean can you define \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 just like how \everydisplay works.<br>
</div>