texlive[67293] Master/texmf-dist: censor (6jun23)
commits+karl at tug.org
commits+karl at tug.org
Tue Jun 6 22:05:59 CEST 2023
Revision: 67293
http://tug.org/svn/texlive?view=revision&revision=67293
Author: karl
Date: 2023-06-06 22:05:59 +0200 (Tue, 06 Jun 2023)
Log Message:
-----------
censor (6jun23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/censor/censor.pdf
trunk/Master/texmf-dist/tex/latex/censor/censor.sty
Modified: trunk/Master/texmf-dist/doc/latex/censor/censor.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/censor/censor.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/censor/censor.sty 2023-06-06 20:05:50 UTC (rev 67292)
+++ trunk/Master/texmf-dist/tex/latex/censor/censor.sty 2023-06-06 20:05:59 UTC (rev 67293)
@@ -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 at cenword[1]{#1}
\newcommand\StopCensoring{%
+ \censorfalse%
\let\censor\un at censor%
\let\censorbox\un at censorbox%
\renewcommand\censpace{ }%
}
\newcommand\RestartCensoring{%
+ \censortrue%
\renewcommand\censor{\@ifstar{\@cenlen}{\@cenword}}%
\renewcommand\censorbox{\@ifstar{\censor at dim}{\censor at box}}%
\let\censpace\sv at censpace%
@@ -257,4 +261,7 @@
- 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.
More information about the tex-live-commits
mailing list.