TransWikia.com

How do I strikethrough in text{} inside inline math mode

TeX - LaTeX Asked on February 4, 2021

I want to strike out the word "prime" in the given below text. How can I do it?

$mathfrak{P}:={text{set of all prime ideals contained in}  Asetminus S}$.

One Answer

You can use the sout command from ulem.

documentclass{article}
usepackage{newpxtext,newpxmath} % These fonts are just examples.
usepackage{ulem}

begin{document}
$mathfrak{P}:={textnormal{set of all sout{prime} ideals contained in}  Asetminus S}$
end{document}

newpx sample

You usually want textnormal, rather than text, so that the formatting of the surrounding text will not bleed through.

Answered by Davislor on February 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP