1

In the amssymb package, there are the \precapprox and \precnapprox symbols. But there isn't a \nprecapprox symbol. How can I create one?

3
  • 2
    Does \not\precapprox work?
    – Davislor
    Aug 5, 2021 at 13:28
  • There’s also \precnapprox for ⪹, in stix, stix2 and unicode-math, but I’m not sure if that’s what you want.
    – Davislor
    Aug 5, 2021 at 13:31
  • mathabx defines a \nprecapprox and a \nsuccapprox symbols, and it is easy to make them usable in your document without loading the whole package.
    – Bernard
    Aug 5, 2021 at 13:38

1 Answer 1

1

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}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .