From 94617bbdb2210de3606ba82fafd652ca48e16b93 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 6 Jun 2023 20:05:59 +0000 Subject: censor (6jun23) git-svn-id: svn://tug.org/texlive/trunk@67293 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/censor/censor.pdf | Bin 246320 -> 247256 bytes Master/texmf-dist/tex/latex/censor/censor.sty | 11 +++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Master/texmf-dist/doc/latex/censor/censor.pdf b/Master/texmf-dist/doc/latex/censor/censor.pdf index 637c75f8209..cd519b7d551 100644 Binary files a/Master/texmf-dist/doc/latex/censor/censor.pdf and b/Master/texmf-dist/doc/latex/censor/censor.pdf differ diff --git a/Master/texmf-dist/tex/latex/censor/censor.sty b/Master/texmf-dist/tex/latex/censor/censor.sty index 2232bc0c63e..3a45aae3edf 100644 --- a/Master/texmf-dist/tex/latex/censor/censor.sty +++ b/Master/texmf-dist/tex/latex/censor/censor.sty @@ -1,6 +1,6 @@ % censor.sty -\def\censorversionnumber{4.2} -\def\censorversiondate{2022/04/21} +\def\censorversionnumber{4.3} +\def\censorversiondate{2023/06/05} \ProvidesPackage{censor} [\censorversiondate\ \censorversionnumber\ Provides capability for redaction of sensitive information] @@ -21,10 +21,12 @@ \newlength\censorruledepth \newlength\censorruleheight +\newif\ifcensor \censorruledepth=-0.3ex% -0.3ex DEFAULT \censorruleheight=2.1ex% 2.1ex DEFAULT \def\censordot{\censor{.}}% versus \def\censordot{.}% +\censortrue% DEFAULT \newcommand\censorrule[1]{\protect\rule[\censorruledepth]{#1}{\censorruleheight}} @@ -37,11 +39,13 @@ \newcommand\un@cenword[1]{#1} \newcommand\StopCensoring{% + \censorfalse% \let\censor\un@censor% \let\censorbox\un@censorbox% \renewcommand\censpace{ }% } \newcommand\RestartCensoring{% + \censortrue% \renewcommand\censor{\@ifstar{\@cenlen}{\@cenword}}% \renewcommand\censorbox{\@ifstar{\censor@dim}{\censor@box}}% \let\censpace\sv@censpace% @@ -257,4 +261,7 @@ VERSION: - Made \censor and \censorbox robust, which will allow censoring to occur across, for example, section headers, tocs, etc. - Revisited the documentation, bringing it up to date. +4.3 - Introduced \ifcensor condition, default true, set false via + \StopCensoring and set true via \RestartCensoring. Thus, the current + state of censoring can be determined by the user. -- cgit v1.2.3