13

enter image description here

When using \not in math mode only the following symbol gets crossed, is there any way to apply it to more than one symbol evenly as if it were one operator?

I tried \not{<:} but it doesn't work.

3 Answers3

11

You can use \mathclap from mathtools:

\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}

\DeclareMathOperator{\lecolon}{<:}

\begin{document}
\[ \not\mathclap\lecolon \]
%your whole expression should be something like
\[ \gamma\not\mathclap\lecolon\mkern10mu\tau \]
\end{document}

example_rendered

Anyways, I think your expression looks more like the \not reffers only to the less sign and it's followed by a colon:

\[ \gamma\not\mathclap<:\tau \]

example2_rendered

which can finally be slightly refined to

\[ \gamma\mkern-2mu\not\mkern2mu\mathclap<:\tau \]

example3_output

Ruben
  • 13,448
  • Note, of course, that the \mathclap totally kills the width of its contents, so if you're using \not\mathclap\iff or some other longer symbol then you'll need to adjust your \mkerns. (Also, you should consider using mathtools's <\vcentcolon instead of <: .) – wchargin Jan 19 '17 at 23:01
10

Here my MWE. What do you prefer?

enter image description here

\documentclass[a4paper]{article}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%Useful packages
\usepackage{amsmath}
\usepackage{centernot,cancel}

\begin{document}

\[
  \cancel{<:} ~~~~\text{or}~~~~ \centernot{<:}
\]

\end{document}
Sebastiano
  • 54,118
8

Choose a more representative name of what you are talking about with that symbol. Note that the standard is to use \n<relation name> to show the negated symbol of \<relation name>, so you may want to adhere to that.

\documentclass{scrartcl}

\usepackage{centernot,amssymb,mathtools}

\newcommand*\somekindofrelation{\mathrel{<:}}
\newcommand*\nsomekindofrelation{\mathrel{\centernot{<}\vcentcolon}}

\begin{document}

\[ \gamma \nsomekindofrelation \tau \]

\end{document}

EDIT Result:

enter image description here

Jan
  • 5,293
Manuel
  • 27,118