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?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI 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?
You can redefine \sqsubset
to take an optional argument that would raise it:
\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.
<len>
to lower the symbol.
\raisebox
'resets' to the normal size and I cannot figure out how to make it preserve the current size.
Feb 20, 2020 at 8:21
\sqsubset
is designed to be so low for the case that you have descenders as in the lettery
. But I see why you want to raise it when there are no descenders as inS
andP
.