I really like the general style of mathabx symbols, but I'm a bit turned off by the lack of vertical space between the 'vee' and the 'bar' in \veebar (on the left below). How might I construct an alternate symbol in the same style where there is some separation between the two (such as that on the right below)?
Asked
Active
Viewed 733 times
4
3 Answers
4
Here is one:
\documentclass{article}
\usepackage{mathtools, amssymb}
\DeclareFontFamily{U}{matha}{\hyphenchar\font45}
\DeclareFontShape{U}{matha}{m}{n}{ <-6> matha5 <6-7> matha6 <7-8>
matha7 <8-9> matha8 <9-10> matha9 <10-12> matha10 <12-> matha12 }{}
\DeclareSymbolFont{matha}{U}{matha}{m}{n}
\DeclareMathSymbol{\myvee}{\mathbin}{matha}{"5F}
\newcommand{\myveebar}{\mathbin{\vcenter{\hbox{$ \underline{\mkern-2.4mu{\myvee}\mkern-2.4mu} $}}}}
\begin{document}
\[ K \myveebar A\]
\end{document}
Bernard
- 271,350
3
Here is another (does not scale in superscript):
\documentclass[border=1pt]{standalone}
\usepackage{stackengine,mathabx}
% \newcommand{\veebaralt}{\:\stackanchor[-.22em]{$\vee$}{$-$}\:}
\newcommand{\veebaralt}{\mathrel{\ensurestackMath{\renewcommand\stacktype{S}\stackanchor[-.22em]{\vee}{-}}}}
\begin{document}
$123 \veebaralt 123$
$123 \veebar 123$
\end{document}
Edit: Added \: before and after the old command; added Steven B. Segletes' helpful answer.
Jasper Habicht
- 48,848
3
I myself have just blindly hacked together a possible solution, with all credit going to egreg's answer at Dashed underline under a inequality symbol, from which it is adapted:
\documentclass{article}
\usepackage{pict2e,picture}
\usepackage{mathabx}
\makeatletter
\newcommand{\barredeq}[1]{\mathrel{\vphantom{\veebar}\mathpalette\barred@eq{#1}}}
\newcommand{\barred@eq}[2]{%
\vcenter{%
\offinterlineskip
\roundcap
\linethickness{0.6\dimexpr\variable@rule{#1}\relax}%
\sbox\z@{$\m@th#1#2$}%
\setlength{\unitlength}{\dimexpr(\wd\z@-2\dimexpr\barred@eq@kern{#1})/10}%
\sbox\tw@{\begin{picture}(1,0)\Line(0,0)(10,0)\end{picture}}%
\ialign{%
##\cr
\copy\z@\cr
\noalign{\vskip 0.25\ht\z@}
\kern\barred@eq@kern{#1}%
\copy\tw@
\kern\barred@eq@kern{#1}%
\cr
}%
}%
}
\newcommand{\barred@eq@kern}[1]{%
\ifx#1\displaystyle 0.12\wd\z@\else
\ifx#1\textstyle 0.12\wd\z@\else
\ifx#1\scriptstyle 0.18\wd\z@\else
\ifx#1\scriptscriptstyle 0.22\wd\z@\else
0.16\wd\z@
\fi\fi\fi\fi
}
\newcommand{\variable@rule}[1]{%
\fontdimen8
\ifx#1\displaystyle\textfont3\else
\ifx#1\textstyle\textfont3\else
\ifx#1\scriptstyle\scriptfont3\else
\scriptscriptfont3\relax
\fi\fi\fi
}
\makeatother
\DeclareRobustCommand{\nveebar}{\barredeq{\vee}}
\begin{document}
$A\vee A \veebar A\nveebar A$
$\scriptstyle A\vee A \veebar A \nveebar A$
$\scriptscriptstyle A \vee A \veebar A \nveebar A$
\end{document}
solisoc
- 640




\veebar(compare the distance from\veebaraltto the 3 with the distance from\veebarto the 1) – solisoc Aug 27 '18 at 12:49\mathrelas in\newcommand{\veebaralt}{\mathrel{\ensurestackMath{\renewcommand\stacktype{S}\stackanchor[-.22em]{\vee}{-}}}}– Steven B. Segletes Aug 27 '18 at 13:05\renewcommand\stacktype{S}do in this context? – Jasper Habicht Aug 27 '18 at 13:08Short rather thanLong. Short is the default, but if the user had reset the default along the way, this will override the default. Change theStoLand see how the result changes... – Steven B. Segletes Aug 27 '18 at 13:23