diff options
author | Norbert Preining <norbert@preining.info> | 2023-06-07 03:04:09 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-06-07 03:04:09 +0000 |
commit | 5c99135c06494b236cce7fd76e346851cf8c4408 (patch) | |
tree | ddae5aa8cd5c5ebbd4bb7518958532bdf817125f /macros/latex/contrib/censor | |
parent | 81c6e34f9b4e2191ee45a1e3236d77914a7af519 (diff) |
CTAN sync 202306070304
Diffstat (limited to 'macros/latex/contrib/censor')
-rw-r--r-- | macros/latex/contrib/censor/censor.pdf | bin | 246320 -> 247256 bytes | |||
-rw-r--r-- | macros/latex/contrib/censor/censor.sty | 11 |
2 files changed, 9 insertions, 2 deletions
diff --git a/macros/latex/contrib/censor/censor.pdf b/macros/latex/contrib/censor/censor.pdf Binary files differindex 637c75f820..cd519b7d55 100644 --- a/macros/latex/contrib/censor/censor.pdf +++ b/macros/latex/contrib/censor/censor.pdf diff --git a/macros/latex/contrib/censor/censor.sty b/macros/latex/contrib/censor/censor.sty index 2232bc0c63..3a45aae3ed 100644 --- a/macros/latex/contrib/censor/censor.sty +++ b/macros/latex/contrib/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. |