# Creating a smaller vertical bar

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.

-
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Heiko Oberdiek May 1 '14 at 22:02
Welcome to TeX.SX! You seem to be asking two unrelated questions, here. On TeX.SX, we try to keep unrelated questions on separate pages. If you have multiple questions that are unrelated to one another, you should ask each in a separate TeX.SX "question". You'll stand a better chance of getting a satisfactory answer to each of your questions. –  Jubobs May 1 '14 at 22:06
The answer to your question about listings is to use moreemph, which appends to the identifiers to highlight to the existing list, whereas emph overwrites the existing list (if any) with the new one. For more details, see section 4.6 in the listings documentation. –  Jubobs May 1 '14 at 22:10
ok will remove one question. Thank you –  user50931 May 1 '14 at 22:14

You can use \vertrule{} (compared to $|$) which will sit on the baseline and be \verb|1ex| high.