summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-10-03 20:31:26 +0000
committerKarl Berry <karl@freefriends.org>2021-10-03 20:31:26 +0000
commit01ff03dce6921c6e40b65ec78befdf9124b1709d (patch)
tree4fcff1a7ba2f46361380244ed9b971a5f4aa3b60 /Master/texmf-dist/tex/latex
parent01cdae6b339b202e0d8798701b0f36a3bd36dd60 (diff)
multiaudience (3oct21)
git-svn-id: svn://tug.org/texlive/trunk@60688 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty13
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty b/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
index f0691df3efc..6861e8a3552 100644
--- a/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
+++ b/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
@@ -20,7 +20,7 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%% Copyright 2015, Boris Veytsman <borisv@lk.net
+%% Copyright 2015-2021, Boris Veytsman <borisv@lk.net
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any
@@ -36,7 +36,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{multiaudience}
-[2015/08/02 v1.02 Generating versions for different audiences from the
+[2021/10/02 v1.04 Generating versions for different audiences from the
same source]
\providecommand*\CurrentAudience{default}
\def\DefCurrentAudience#1{\def\CurrentAudience{#1}}
@@ -49,14 +49,15 @@ same source]
\def\SetNewAudience#1{%
\define@key{MULTAU}{#1}[]{%
\def\@MULTAU@currkey{#1}%
- \ifx\@MULTAU@currkey\CurrentAudience\relax
+ \@for\@tempa:=\CurrentAudience \do{%
+ \ifx\@MULTAU@currkey\@tempa\relax
\if@MULTAU@include
\@MULTAU@showntrue
\else
\@MULTAU@shownfalse
- \fi
- \fi}%
-}
+ \fi%
+ \fi%
+}}}
\long\def\showto#1#2{\@MULTAU@shownfalse\@MULTAU@includetrue
\setkeys{MULTAU}{#1}%
\if@MULTAU@shown#2\fi