Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

Thanks!

share|improve this question
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

1 Answer 1

up vote 2 down vote accepted

Worked it out! Here's my solution:

\usesymbols[was]

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

Then in math mode:

$\Not{x}$

provides a properly slashed x.

share|improve this answer
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

 
discard

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.