2

I'm trying to achieve something like this

example of canceling the exponent 3 and substituting it with 2

I tried \cancelto but it doesn't look good. Is there a library for these kind of "special cancellations"? Thank you all.

New contributor
user424920 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • 2
    Welcome! The question would be much better with a small, compilable example showing why it "doesn't look good". Commented 10 hours ago

1 Answer 1

3

Use the "cancel" package

\documentclass{article}
\usepackage{amsmath}
\usepackage{cancel}
\begin{document}
    \[X^{\bcancel{3}^2}     \]
\end{document}

enter image description here

2
  • Thanks a lot, exactly what I saw looking for. Commented 9 hours ago
  • 1
    You might consider X^{\bcancel{3}^{\scriptstyle2}}, unless you really want the 2 to be smaller (\scriptscriptstyle) than the 3. Commented 6 hours ago

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.