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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to cross out a sentence using a horizontal line in a colour different from the text?

I found this useful question about how to cross out a sentence, but I cannot figure out how to use colour with this solution. The cancel package allows that, as described here, but would not do a horizontal line.

share|improve this question
up vote 6 down vote accepted

Too long for a comment.

The second answer in that thread is a working example.

If you want to change the color when using the soul package you can use the command \setstcolor:




\st{Some overstruck text}


enter image description here

The ulem package does not support coloring directly, but looking at its manual, you can find that it is possible to define a new command like


so that




\redsout{Some overstruck text}


produces the same result as the above one.

share|improve this answer

Your Answer


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.