using mathrm instead of text
changing | to \vert due to latex problems