[Tex/LaTex] Thickness for \sout{} (strikethrough) command from ulem package

strikeoutulem

I am using \sout from the ulem package together with beamer to strike through some text:

\documentclass[mathserif]{beamer}
\usepackage{ulem}
\begin{document}
\begin{frame}
  Next meetings: 
  \begin{itemize}
    \item \sout{22.01.2016} (cancelled) 
    \item 28.01.2016
  \end{itemize}
\end{frame}
\end{document}

However, I would like to have the line a bit thicker because it's so thin that people might miss it. How is that possible?

Best Answer

The ulem source states that:

To draw a line through text instead of under it (strike out) do under-line with negative depth.

So, the thickness of the strike is the same as that of the underline. From the ulem package documentation:

The thickness of the underline rule is given by the command macro \ULthickness; use \renewcommand (not the usual \setlength) to change it.

So, writing:

\documentclass[mathserif]{beamer}
\usepackage{ulem}
\newcommand{\soutthick}[1]{%
    \renewcommand{\ULthickness}{2.4pt}%
       \sout{#1}%
    \renewcommand{\ULthickness}{.4pt}% Resetting to ulem default
}
\begin{document}
\begin{frame}
  Next meetings: 
  \begin{itemize}
    \item \soutthick{22.01.2016} (cancelled)
    \item \sout{22.01.2016}
    \item 28.01.2016
  \end{itemize}
\end{frame}
\end{document}

you will get:

enter image description here

Related Question