I would like to cross out some words in a presentation and I prefer to have semitransparent lines to facilitate reading.
The MWE hereafter is based on: https://tex.stackexchange.com/a/478560/19788
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\newcommand{\txtcross}[1]{%
\tikz[remember picture, baseline=(A.base)]{
\node[inner sep=0pt](A){#1};
}%
\tikz[overlay, remember picture]{
\draw[red, draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east);
\draw[red, draw opacity=0.5, line width=1.5pt] (A.south west) -- (A.north east);
}%
}
\begin{document}
Antonio Vivaldi was \mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
\end{document}
The result seems good but, in fact, the part where the lines overlap is (logically) darker than the other parts.
Should I modify the code to obtain a cross uniformly colored with an opacity value lower than 1?
Or should I try drawing the cross by another means?





transparency group. Just google of look on this site - it is simple. – hpekristiansen Aug 02 '19 at 20:21