0

I am trying to do a similar thing as in vertical equal sign but with an inequality sign instead.

I tried replacing = with \ineq in the line

\newcommand{\verteq}{\rotatebox{90}{$\,=$}}

but could you please explain what is wrong in the approach?

6
  • \newcommand{\vertneq}{\rotatebox{90}{$\,\neq$}}?
    – Manuel
    Commented Jun 7, 2014 at 14:18
  • 1
    You should use \neq, that you'll find in How to look up a symbol or identify a math alphabet?.
    – Werner
    Commented Jun 7, 2014 at 14:18
  • @Werner: The rotation issues are not covered by the duplicate, therefore I wanted to write this as answer: \usepackage{graphicx} \makeatletter \newcommand*{\vertneq}{% \mathrel{% \mathpalette{\math@rotate{90}}{\neq}% }% } \newcommand*{\math@rotate}[3]{% % #1: rotation angle % #2: math style % #3: symbol \sbox0{$#2\vcenter{}$}% location of the math axis \rotatebox[y=\ht0]{90}{$#2#3\m@th$}% } \makeatother Commented Jun 7, 2014 at 14:30
  • @HeikoOberdiek: There is no mention of rotation issues in this post.
    – Werner
    Commented Jun 7, 2014 at 16:56
  • @Werner: The definitiono of \verteq looks quite odd with \,. Also \verteq is not a relational operator and it does not adapt in size according to the current math style. Commented Jun 7, 2014 at 17:22

0

Browse other questions tagged .