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 have a small nitpicking query

I have:

$S\sqsubset\mathbf{P}$

and noticed that the \sqsubset symbol is a bit too low (off centered) for my liking. Is it possible to shift it up slightly?

share|improve this question
    
Note that \sqsubset is designed to be so low for the case that you have descenders as in the letter y. But I see why you want to raise it when there are no descenders as in S and P. –  Hendrik Vogt Jun 13 '12 at 14:51

1 Answer 1

up vote 10 down vote accepted

You can redefine \sqsubset to take an optional argument that would raise it:

enter image description here

\documentclass{article}
\usepackage{amsfonts}% http://ctan.org/pkg/amsfonts
\let\oldsqsubset\sqsubset
\renewcommand{\sqsubset}[1][0pt]{%
  \mathrel{\raisebox{#1}{$\oldsqsubset$}}%
}
\begin{document}
$S\sqsubset\mathbf{P} \quad S\sqsubset[5pt]\mathbf{P} \quad S\sqsubset[1pt]\mathbf{P}$
\end{document}

The updated \sqsubset is set as a binary relation \mathrel. Note that if you want to use square brackets after \sqsubset, you need to surround it with braces. The new usage is \sqsubset[<len>] where <len> is any recognized (La)TeX length.

share|improve this answer
    
Thanks! exactly what I wanted –  Mobius Pizza Mar 6 '12 at 18:45
    
@MobiusPizza: Note that you can also use a negative <len> to lower the symbol. –  Werner Mar 7 '12 at 2:33

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.