I dont want to use rule because its long and hideous and I must do it in text mode. Any solutions?

  • 1
    Please be more specific. Rule means something specific in LaTeX and it does not have a predefined length/width. So please extend your question, preferably with an MWE tex.meta.stackexchange.com/questions/228/…
    – daleif
    Apr 6, 2020 at 10:41
  • although I posted an answer your question isn't really understandable, what does "long and hideous" mean. a \rule{3cm}{1pt} is exactly 3cm long, if the rule you are getting is too long, specify a shorter length. Apr 6, 2020 at 11:10
  • Maybe an en-dash is more suitable (abc -- def)? It is half the size of | (and ---).
    – Marijn
    Apr 6, 2020 at 12:23

1 Answer 1


You haven't shown what you did, but in most sensible encodings you can type |to get | (this doesn't apply to the default OT1 encoding, but there are few good reasons to use that).

enter image description here




You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .