[texhax] Before and After Display Hooks

Vafa Khalighi vafa018 at gmail.com
Mon May 2 02:57:54 CEST 2011


Thanks but this produces

*start* 1+2=3
end

rather than

start
1+2=3
end

On Mon, May 2, 2011 at 10:41 AM, Donald Arseneau <asnd at triumf.ca> wrote:

> Vafa Khalighi <vafa018 at gmail.com> writes:
>
> > 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:
> >
> > start
> > $$1+2=3$$
> > end
> >
> > So I could have
> > \beforeeverydisplay{start}
> > \aftereverydisplay{end}
> > $$1+2=3$$
> >
> > \beforeeverydisplay and \aftereverydisplay works for every single display
> > just like how \everydisplay works.
>
>
> \everydisplay{\aftergroup\the\aftergroup\aftereverydisplay
>              \the\beforeeverydisplay}
>
>
> Donald Arseneau                          asnd at triumf.ca
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110502/e021dc58/attachment.html>


More information about the texhax mailing list