summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-06-06 20:05:59 +0000
committerKarl Berry <karl@freefriends.org>2023-06-06 20:05:59 +0000
commit94617bbdb2210de3606ba82fafd652ca48e16b93 (patch)
tree25d73e21dd4d970ad47ba78ffc43ddac10235930
parente31f816419026769ef215c1054c17ca9352c31cd (diff)
censor (6jun23)
git-svn-id: svn://tug.org/texlive/trunk@67293 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/censor/censor.pdfbin246320 -> 247256 bytes
-rw-r--r--Master/texmf-dist/tex/latex/censor/censor.sty11
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
--- a/Master/texmf-dist/doc/latex/censor/censor.pdf
+++ b/Master/texmf-dist/doc/latex/censor/censor.pdf
Binary files 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.