diff options
author | Karl Berry <karl@freefriends.org> | 2018-09-25 20:25:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-09-25 20:25:27 +0000 |
commit | ea8edbcb109a90aa4a837df9f9e61ad88fb3ca0a (patch) | |
tree | de35b3e8005aa2ea209854a0df099cdd4c70001c /Master/texmf-dist/tex | |
parent | 5c06f8155e0c12ba6d3369acbd0c42dc4ebeca8f (diff) |
clrstrip (25sep18)
git-svn-id: svn://tug.org/texlive/trunk@48756 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty b/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty index c0e792fdd95..2f32cb36195 100644 --- a/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty +++ b/Master/texmf-dist/tex/latex/clrstrip/clrstrip.sty @@ -46,6 +46,8 @@ \clrstrip@left1sp \newcommand*\clrstrip@oarg{} \newcommand*\clrstrip@marg{} +\newif\ifclrstrip@afterheading +\clrstrip@afterheadingtrue \newcommand*\clrstrip@key{\define@key{clrstrip}} \newcommand*\clrstrip@strip@a[1] {% @@ -79,7 +81,17 @@ \fi \setbox\clrstrip@box\vbox\bgroup \hsize\clrstrip@width - \noindent\ignorespaces + \clrstrip@preventIndent + } +\newcommand*\clrstrip@preventIndent + {% + \ifclrstrip@afterheading + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi + {\@afterindentfalse\@afterheading} + {\noindent\ignorespaces}% } \clrstrip@key{inner}{\clrstrip@innerT#1\relax\clrstrip@innerB#1\relax} \clrstrip@key{outer}{\clrstrip@outerT#1\relax\clrstrip@outerB#1\relax} @@ -89,6 +101,8 @@ \clrstrip@key{outer bot}{\clrstrip@outerB#1\relax} \clrstrip@key{width}{\clrstrip@width#1\relax} \clrstrip@key{left}{\clrstrip@left#1\relax} +\clrstrip@key{afterheading}[]{\clrstrip@afterheadingtrue} +\clrstrip@key{noindent}[]{\clrstrip@afterheadingfalse} \newcommand*\colorstripSet{\setkeys{clrstrip}} \newenvironment{colorstrip}[2][] {% |