7

Possible Duplicate:
How to look up a symbol?

When I do $\not>$ in LaTeX it gives me not greater than, however I would like the bar to vertical instead of slanted. How do I do that?

Mads Ohm Larsen
  • 507
  • 1
  • 5
  • 14

2 Answers2

13

Overprinting symbols or text is possible \ooalign. The following MWE provides \ngrt and \nlst as math relations:

enter image description here

\documentclass{article}
\newcommand{\ngrt}{%
  \mathrel{\ooalign{$>$\cr\hidewidth$|$\hidewidth}}%
}
\newcommand{\nlst}{%
  \mathrel{\ooalign{$<$\cr\hidewidth$|$\hidewidth}}%
}

\begin{document}
$a\ngrt b\nlst c$
\end{document}​

For a quick course in \ooalign, see \subseteq + \circ as a single symbol (“open subset”).

Werner
  • 603,163
3

Something like this, using \rlap to typeset bar, but not move the point?

\documentclass{article}
\thispagestyle{empty}

\begin{document}
$a\rlap{\kern.45em$|$}>b$

\end{document}

enter image description here

Boris
  • 38,129