1

If I'm trying to negate \frac{1}{4} or just whole equations how do I do that?

I've tried searching through questions and there are just awnsers on how you do it with symbols like: \neq, \not (etc).

Bernard
  • 271,350
  • 2
    you question isn't very clear, do you want $-\frac{1}{4}$ ? – David Carlisle Aug 29 '21 at 19:01
  • 1
    Can you show us a sketch with neageted \frac{1}{4}? – Zarko Aug 29 '21 at 19:04
  • negating in a simple fraqtion is basically like a backslash over a fraction or a equation like when simplifying 1/(x - 1) + 1/4 = 1 the first step is removing 1/4. on paper you just draw a line acros 1/4 (negating the fraqtion) and 1 - 1/4 on the other side. so how do i draw a backslash acros an equation/fraction? – Odysseus101 Aug 29 '21 at 19:40
  • see also https://tex.stackexchange.com/questions/376932/equation-with-canceled-terms/376934?noredirect=1. – Marijn Aug 29 '21 at 20:45
  • But I'm not sure that also works in KaTeX, which is off-topic for this site (the site is only about "full" TeX/LaTeX and derivatives, that have packages such as cancel to facilitate this kind of extended functionality). – Marijn Aug 29 '21 at 20:48
  • I found the solution katex cant use the package cancel but it does have a function called /bcancel{content} – Odysseus101 Aug 30 '21 at 09:25

1 Answers1

4

I think you mean 'cancel' rather than 'negate', in which case one possible answer is to use the cancel package.

\documentclass{article}
\usepackage{cancel}
\begin{document}
\[\cancel{\frac{1}{4}}\]
\end{document}

cancel

Ian Thompson
  • 43,767