I'm stumped on this. I would like to make a slanted (and italic) vertical bar in the middle of some regular text.
If I use
$|$, it comes out literally vertical regardless of style, since it's a math operator.
For reasons I don't understand,
| is accepted by TeX but comes out as an em-dash rather than a vertical bar.
\char124 works fine for the typewriter font, but I need this for Computer Modern Roman Slant & Italic.
I only need this so that I can see the exact slope of slanted and italic text visually; it's temporary for lining some things up. I can get by for now with
]—which do display correctly in slanted and italic shapes—but now I've become very curious about how to make the vertical bar work, because I don't like it when I don't understand things. :)