Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would prefer to work with a prime symbol that is less rotated. I tried the following


which is visually what I desire. If I now write something like


things work fine, but when I use \p in subscript contexts


the symbol is not scaled and not placed right. Of course one can always work with hacks such as


but perhaps anyone knows of a simple solution?

share|improve this question
If you want a completely vertical prime, the textcomp package provides \text{\textquotesingle}. – rdhs Mar 12 '12 at 23:24

1 Answer 1

up vote 4 down vote accepted

You can use \mathchoice to adjust the size depending on the math context as follows:

enter image description here






share|improve this answer
By the way, after a subscripted variable, I use this as \!\p, not just \p. (Compare \(s_1\p\) with \(s_2\!\p\).) – Lover of Structure Mar 10 '13 at 11:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.