Q&As like Strikethrough text, provide guidance on how to strike through text with ulem
's \sout{...}
or soul
's \st{...}
. Is there a readymade alternative that behaves like \bfseries
and affects all that follows, as opposed to only the provided argument?
In particular I'm looking for something that can be used in combination with this: Make first row of table all bold
Solutions working in XeTeX or pdfTeX are equally welcome.
\bfseries
to switch to that style. Otherwise, there is simply no comparison between what something likesoul
does to construct struck-through text and what font switching commands such as\bfseries
do.soul
reconstructs the argument passed to\st{}
with strike-through. If it goes wrong, it tells you thatreconstruction failed
. If Xe/LuaTeX are options, maybe something is possible there, but I kind of doubt it is possible with (pdf)TeX. (You don't say which engine you use.)\textbf{}
just applies\bfseries
to its argument, so it still works through the font style. But\st{}
has to do something completely different. If it were just applying e.g.\ststyle
to its argument, then you could just use that. But it has to do something else because fonts do not (mostly, anyway) provide a struck-through version in the way that they (often) provide a bold variant.