Take the 2-minute tour ×
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 am typing some mathematical expression related to 'displaystyle'. This is working well for $\displaystyle\sum_{i=1}^nx_i=1$. But it is not working in the following example :

\documentclass[10pt]{article}
\usepackage{amsmath}

\begin{document}
$P \displaystyle\simeq_p Q$
\end{document}

This gives :
enter image description here

But my desired output is :
enter image description here

Anyone can tell me what is the problem here ?

share|improve this question
    
Thank you in advance. –  Soumitra Sen Apr 12 '13 at 14:23
    
The result is what I expect from \simeq_p. Why do you think it should be different? Setting displaystyle doesn't stack symbols as far as I know. –  Martin Scharrer Apr 12 '13 at 14:23
2  
You should usually use \stackrel from the stackrel package or \underset from the amsmath package for such constructions. Cf. tex.stackexchange.com/q/39225/15925 –  Andrew Swann Apr 12 '13 at 14:30
    
Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. –  Jubobs May 9 '13 at 12:41
add comment

1 Answer 1

Only limits on \mathop operators (like \sum) change in dispaystyle. Limits on relational infix operators stay in subscript position.

You could do

$P \displaystyle\mathrel{\mathop{\simeq}_p} Q$

To locally get mathop positioning and then make the construct a relation again.

share|improve this answer
    
Your answer is accepted @DaviCarlisle. Thank you. –  Soumitra Sen Apr 12 '13 at 14:28
2  
@SoumitraSen thanks (you don't have to accept, but if you want to accept you need to click on the accept button to make the tick mark) –  David Carlisle Apr 12 '13 at 14:32
add comment

Your Answer

 
discard

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.