I want a vertical bar but in mathematical mode it appears too big. I just want a small | at the same height as the letters.
[Tex/LaTex] Creating a smaller vertical bar
charactersmath-mode
charactersmath-mode
I want a vertical bar but in mathematical mode it appears too big. I just want a small | at the same height as the letters.
Best Answer
You can use
\rule{.4pt}{1ex}
which will sit on the baseline and be1ex
high. Of course, adjust1ex
to suit your "small" requirement. Here's a small example showing the use case via a macro\vertrule[<len>]
where<len>
defaults to1ex
.