diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/censor/censor.sty | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/censor/censor.sty b/Master/texmf-dist/tex/latex/censor/censor.sty index 1170c2238b0..9caeae26cf8 100644 --- a/Master/texmf-dist/tex/latex/censor/censor.sty +++ b/Master/texmf-dist/tex/latex/censor/censor.sty @@ -1,9 +1,9 @@ % censor.sty +\def\censorversionnumber{3.20} \ProvidesPackage{censor} -[2013/05/02 v3.10 +[2013/06/24 \censorversionnumber Provides capability for redaction of sensitive information] -%% Copyright 2009, 2012, 2013 Steven B. Segletes % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -26,13 +26,22 @@ % 3.00 - \censorbox introduced to handle figures, tables, etc. % 3.10 - Made \blackout work with \par in argument. Introduced % \xblackout +% 3.20 - Specify depth/height of censor rule. Introduced \def\censordot{} \usepackage{pbox} \usepackage{ifnextok} +\newlength\censorruledepth +\newlength\censorruleheight + +\censorruledepth=-0.3ex% -0.3ex DEFAULT +\censorruleheight=2.1ex% 2.1ex DEFAULT +\def\censordot{.}% versus \def\censordot{ }% + +\newcommand\censorrule[1]{\protect\rule[\censorruledepth]{#1}{\censorruleheight}} + \newcommand\censor{\@ifstar{\@cenlen}{\@cenword}} - \newcommand\@cenlen[1]{\protect\rule[-.3ex]{#1 ex}{2.1ex}} - \newcommand\@cenword[1]{% - \protect\rule[-.3ex]{\widthofpbox{#1}}{2.1ex}} + \newcommand\@cenlen[1]{\censorrule{#1 ex}} + \newcommand\@cenword[1]{\censorrule{\widthofpbox{#1}}} \newcommand\un@censor{\@ifstar{\un@cenlen}{\un@cenword}} \newcommand\un@cenlen[1]{\protect\underline{\hspace{#1 ex}}} @@ -60,7 +69,7 @@ % \def\bl@t#1#2{\censor{#2}#1} % V2.10 DEFINITION (MADE \long IN V3.1): -\long\def\bl@t#1#2{\if\bpar#2\par\else\if.#2#2\else\censor{#2}\fi\fi#1} +\long\def\bl@t#1#2{\if\bpar#2\par\else\if.#2\censordot\else\censor{#2}\fi\fi#1} %\def\bpar{_} %V3.00 DEFINITION \let\bpar\par %AS OF V3.1, CAN HANDLE \par @@ -84,11 +93,11 @@ \newlength\rletterlap\setlength\rletterlap{0.55ex} \newlength\afterspacelap\setlength\afterspacelap{0.0ex} -\def\@periodrlap{\rlap{\rule[-.3ex]{\periodrlap}{2.1ex}}} -\def\@afterperiodlap{\llap{\rule[-.3ex]{\afterperiodlap}{2.1ex}}} -\def\@lletterlap{\llap{\rule[-.3ex]{\lletterlap}{2.1ex}}} -\def\@rletterlap{\rlap{\rule[-.3ex]{\rletterlap}{2.1ex}}} -\def\@afterspacelap{\llap{\rule[-.3ex]{\afterspacelap}{2.1ex}}} +\def\@periodrlap{\rlap{\censorrule{\periodrlap}}} +\def\@afterperiodlap{\llap{\censorrule{\afterperiodlap}}} +\def\@lletterlap{\llap{\censorrule{\lletterlap}}} +\def\@rletterlap{\rlap{\censorrule{\rletterlap}}} +\def\@afterspacelap{\llap{\censorrule{\afterspacelap}}} \long\def\xbl@t#1#2{% \if\par#2% @@ -100,7 +109,7 @@ \if.#2% \def\@justperiod{T}% \@periodrlap% - #2% + \censordot% \else% \if F\@justpar% \if T\@justperiod% |