I want to strike obliquely one or more paragraphs of text, to indicate cancellation, like in this picture:
I would need to strike also if the paragraph spans in two pages.
I tried the cancel package, but it doesn't work.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI want to strike obliquely one or more paragraphs of text, to indicate cancellation, like in this picture:
I would need to strike also if the paragraph spans in two pages.
I tried the cancel package, but it doesn't work.
You could try tcolorbox. Be aware that even if looks like normal text, it is nevertheless a box and e.g. spacing before and after can differ a bit to normal spacing:
\documentclass{article}
\usepackage{lipsum}
\usepackage[most]{tcolorbox}
\begin{document}
\lipsum[1-4]
\begin{tcolorbox}[breakable,
enhanced jigsaw,
opacityback=0,
sharp corners,
parbox=false,
boxrule=0mm,
top=0mm,bottom=0pt,left=0pt,right=0pt,
boxsep=0pt,
frame hidden,
parbox=false,
before upper=\indent\strut,
before=\par,after=\par,
finish={\draw[thick,red] ([xshift=3cm]frame.north)--([xshift=-3cm]frame.south);}
]
\lipsum[1-2]
\end{tcolorbox}
\lipsum[1-2]
\end{document}