In the amssymb package, there are the \precapprox and \precnapprox symbols. But there isn't a \nprecapprox symbol. How can I create one?
1 Answers
You can use a larger version of the slash, with a handful of tricks to move it a bit down when in script style. However, this would not work in scriptscript style (I don't think it's a big limitation).
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\makeatletter
\DeclareMathSymbol{\bigb@r}{\mathord}{largesymbols}{"0E}
\newcommand{\bigc@ncel}[2]{%
\ooalign{%
\hfil$\vcenter{\moved@wn{#1}\hbox{$#1\bigb@r$}}$\hfil\cr % the bar
$#1#2$\cr % the symbol
}%
}
\newcommand{\moved@wn}[1]{%
\sbox\z@{$#1\mkern3mu\nonscript\mkern-3mu$}%
\vskip\wd\z@
}
\newcommand{\nprecapprox}{%
\mathrel{\m@th\mathpalette\bigc@ncel\precapprox}%
}
\newcommand{\nsuccapprox}{%
\mathrel{\m@th\mathpalette\bigc@ncel\succapprox}%
}
\makeatother
\begin{document}
$a \nprecapprox b \nsuccapprox c$
$\scriptstyle a \nprecapprox b \nsuccapprox c$
\end{document}
- 1,121,712

\not\precapproxwork? – Davislor Aug 05 '21 at 13:28\precnapproxfor ⪹, instix,stix2andunicode-math, but I’m not sure if that’s what you want. – Davislor Aug 05 '21 at 13:31mathabxdefines a\nprecapproxand a\nsuccapproxsymbols, and it is easy to make them usable in your document without loading the whole package. – Bernard Aug 05 '21 at 13:38