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.


  • 1
    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

Worked it out! Here's my solution:


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

Then in math mode:


provides a properly slashed x.

  • 2
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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