TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In LaTeX there is a slashed package which will put a nicely centered slash through an arbitrary symbol - the \not command provides an off-center slash on most symbols. How can I do this in ConTeXt? I need this in math mode, so that, for example:

\definecharacter notx {\buildtextaccent\textslash x}

gives me a nice text slashed x, but not a math one.


share|improve this question
The slashed package should work out the box in ConTeXt. – Aditya Mar 4 '11 at 20:26
I tried using the slashed package, but it gave me lots of error messages. – Alasdair Mar 9 '11 at 12:44
up vote 2 down vote accepted

Worked it out! Here's my solution:


\def\Not #1{\wasy@over{/}{#1}}

Then in math mode:


provides a properly slashed x.

share|improve this answer
You can accept your own answer to your question by clicking the tick mark underneath the vote counter. That will move it off the list of unanswered questions. You might also want to have a look at your other questions and see if there are answers that you could accept, which would increase the answerers' (and your) reputation. – Jake Mar 4 '11 at 12:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.