[Tex/LaTex] \wedge and \vee juxtaposed in one symbol

math-operatorssymbols

How can I combine the symbols \wedge and \vee into one symbol, like \wedge\vee and \vee\wedge?

I am thinking of something like \gtrless but rotated by 90 degrees.

The purpose is similar to the \pm symbol, to indicate an alternative.

Best Answer

This requires some trial and error:

\documentclass{article}

\usepackage{amssymb,graphicx}

\newcommand{\veewedge}{%
  \mathbin{{\vee}\mkern-5mu{\wedge}}%
}
\newcommand{\wedgevee}{%
  \mathbin{{\wedge}\mkern-5mu{\vee}}%
}

\begin{document}

$A\veewedge B\wedgevee C_{\veewedge+\wedgevee}$

\end{document}

enter image description here

This instead doesn't require trial and error but is, of course, less efficient.

\documentclass{article}

\usepackage{amsmath,amssymb,graphicx}

\newcommand{\veewedge}{\veeorwedge{\vee\wedge}}
\newcommand{\wedgevee}{\veeorwedge{\wedge\vee}}

\makeatletter
\newcommand{\veeorwedge}[1]{%
  \mathbin{%
    \mathpalette\vee@or@wedge{#1}\relax
  }%
}
\newcommand{\vee@or@wedge}[2]{\vee@@or@@wedge#1#2}
\newcommand{\vee@@or@@wedge}[3]{%
  \sbox\z@{$\m@th#1#3$}%
  {#2}\kern-.5\wd\z@\mkern2mu\box\z@
}
\makeatother

\begin{document}

$A\veewedge B\wedgevee C_{\veewedge+\wedgevee}$

\end{document}

The separation is decided upon by changing the \mkern value.

enter image description here