I understand that placing the command \middle behind a character such as |,
prints that character of the same size as the surrounding brackets (this
particularly useful for Dirac brakets, which is the application I have in
mind). This works fine when I export to pdf in Lyx. However, what I would like
is to see the correctly sized | in Lyx itself, as in "instant preview".
Instead, my Lyx document is filled with \middle commands that make many
mathematical formulas unreadable in Lyx. Any ideas on how I can do this? Thanks.