Skip to content

Instantly share code, notes, and snippets.

@thomasahle
Created November 12, 2023 18:34
Show Gist options
  • Save thomasahle/484d6d362743c433d3b22e94612f88f2 to your computer and use it in GitHub Desktop.
Save thomasahle/484d6d362743c433d3b22e94612f88f2 to your computer and use it in GitHub Desktop.
Latex code for "does not divide" symbols
\usepackage{graphicx}
\newcommand{\shortslash}{\raisebox{0.2ex}{\scalebox{0.65}{/}}}
\newcommand{\notdivides}{\!\mathrel{\backslash\kern-0.4em\shortslash}\!}
\newcommand{\notdividesTim}{\!\!\mathrel{\rotatebox[origin=c]{20}{$\nmid$}}\!\!}
\def\notdividesHeinrich{\mathpalette\notdiv\relax}
\let\divides=\backslash
\def\notdiv#1#2{\setbox0=\hbox{$#1\divides$}%
\vcenter{\hbox to\wd0{\hss$\scriptscriptstyle/\hss$}}\kern-\wd0
\vcenter{\hbox to\wd0{\hss$\scriptscriptstyle/\hss$}}\kern-\wd0
\box0\relax}
\usepackage{wasysym}
\newcommand{\notdividesFiddley}{\notbackslash}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment