I would like to mark up a whole section (including all subsections and footnotes, spanning multiple pages) as proposed for deletion — ideally, with color and strikethrough, but just one of the two would suffice. I'm using pdflatex and TeXLive 2013.
So far, I have not had good luck with any color change commands I've tried, because they failed either on multiple groups, or on multiple pages, or at footnotes. changes
package and \color{}
command couldn't handle footnotes either.
The most promising command I could find was pdfcolorstack
, but it seems to break when either hyperref
or pdfpages
is used, e.g. in the example below (copied from documentation), when \usepackage{pdfpages}
is present, the "still green"
text is black:
\documentclass{article}
\usepackage{pdfpages} % This breaks things
\begin{document}
Hello world!
\chardef\Color=\pdfcolorstackinit page direct{0 g}
default color,
\pdfcolorstack\Color set{1 1 0 0 k}
some new default
\pdfcolorstack\Color push{0 1 1 0 k}
red,
\pdfcolorstack\Color push{1 0 1 0 k}
green, and some footnote\footnote{here!!} and some more text.
\newpage
still green (BUT NOT WHEN PDFPAGES IS USED!!),
\pdfcolorstack\Color pop
red again,
\pdfcolorstack\Color pop
default again,
\pdfcolorstack\Color set{0 g}
back to black.
\end{document}
I could get by without hyperref
for the draft purposes, but pdfpages
is pretty essential 🙁
Best Answer
produces
which makes the claim on page 2 false...