2

I want to strike out the superscripts and subscripts for an expression like $$\Gamma^{\lambda}_{\mu\nu}$$

I tried the ulem package:

\usepackage[normalem]{ulem} 
\sout{Hello World}

and the soul package

\usepackage{soul}
\st{Hello World}

But neither of worked.

My Question

How do I strike out indices?

  • The cancel package might suit your needs better. – Henri Menke Mar 26 '15 at 19:48
  • I checked breifly the answers in the other question and it seems to me that they'll all fail to use the correct font size. – yo' Mar 26 '15 at 21:11
  • Wait... why you deleted your explanation of duplicate? You think Maarten Dhondt's asnwer is good enough? By the way @yo' is Maarten Dhondt's answer using the correct font size? – Symbol 1 Mar 27 '15 at 1:05
  • @Symbol1 Ah it does. But the reason why is very strange, and the answer will likely fail in some cases, since the measurements are based on completely wrong assumptions. – yo' Mar 27 '15 at 1:08
0

The solution is mentioned in Strikeout in math mode

\documentclass{article}
\usepackage{cancel}

\newcommand\hcancel[1]{\setbox0=\hbox{$#1$}%
\rlap{\raisebox{.45\ht0}{\rule{\wd0}{1pt}}}#1} 

\begin{document}

\[
  \Gamma^{\hcancel{\lambda}}_{\hcancel{\mu\nu}}
\]

\end{document}
|improve this answer|||||
  • ...then it's a duplicate, right? – Werner Mar 26 '15 at 19:52
  • Seems that way, yes – Maarten Dhondt Mar 26 '15 at 19:53

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