I have a manuscript I lecture from using class scrbook.
Now for distance teaching I want to redefine some environments (such as proof) so that I get gaps for the proofs on the presentation that I can fill handwritten.
One possibility probably would be to just choose a textcolor of white in these environments. However, then the text remains copy-pasteable on the page. And it might be irritating, if I handwrite over the text, and the invisible characters in the background interfere. Another drawback would be, that if my text contains a \textcolor{red}{redly emphasized} text, it would not vanish:
\documentclass{scrbook}
\usepackage{color}
\usepackage{xcolor}
\usepackage{amsthm,amsfonts,amssymb}
\begin{document}
\begin{proof}
\textcolor{red}{This} is important
\end{proof}
\begin{proof}
\color{white}
\textcolor{red}{This} is important
\end{proof}
\end{document}
Numbering should not depend on whether the proofs and their content are hidden or not.
I was wondering, if there were a possibility, to make a font-manipulation, so that instead of the pdf-characters, only empty (and invisible) boxes with the char's size were put into the pdf. That way, numbering would stay intact, and the text were no longer copyable.
thanks, sven


\phantomwork for you? E.g. https://tex.stackexchange.com/questions/4519/how-do-i-create-an-invisible-character – Willie Wong Sep 15 '20 at 20:44censorpackage, where users contact me about similar issues. Thus, how important or not is it that the space allotted exactly equals the equivalent typeset space? – Steven B. Segletes Sep 15 '20 at 20:48\phantomand changes the font size, so that the amount of space left is potentially bigger, but proportional to the space used in the actual answer? – rbrignall Sep 15 '20 at 20:56\phantomwould work, but only for single paragraphs; if the proof environment contains multiple paragraphs, I would need to phantom each paragraph individually instead of redefining the proof environment. Good point about the fontsize, but if my proof-redifinition adds a\largeor similar, this would essentially be addressed. So it seems, the luatex-suggestion would be the best way to go for me, if there are no suggestion to get away, without lua:) – Sven Sep 17 '20 at 08:02