texlive[60688] Master/texmf-dist: multiaudience (3oct21)
commits+karl at tug.org
commits+karl at tug.org
Sun Oct 3 22:31:26 CEST 2021
Revision: 60688
http://tug.org/svn/texlive?view=revision&revision=60688
Author: karl
Date: 2021-10-03 22:31:26 +0200 (Sun, 03 Oct 2021)
Log Message:
-----------
multiaudience (3oct21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/multiaudience/README
trunk/Master/texmf-dist/doc/latex/multiaudience/multiaudience.pdf
trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins.pdf
trunk/Master/texmf-dist/doc/latex/multiaudience/sample-devs.pdf
trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs.pdf
trunk/Master/texmf-dist/source/latex/multiaudience/multiaudience.dtx
trunk/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,devs.pdf
trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,execs.pdf
trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs,devs.pdf
trunk/Master/texmf-dist/source/latex/multiaudience/Makefile
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/multiaudience/Makefile
Deleted: trunk/Master/texmf-dist/doc/latex/multiaudience/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/multiaudience/Makefile 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/doc/latex/multiaudience/Makefile 2021-10-03 20:31:26 UTC (rev 60688)
@@ -1,62 +0,0 @@
-#
-#
-# This file is in public domain
-#
-# $Id: Makefile,v 1.3 2015/08/02 23:00:13 boris Exp $
-#
-
-PACKAGE=multiaudience
-PDF = sample-execs.pdf sample-devs.pdf sample-admins.pdf
-
-
-all: $(PACKAGE).pdf ${PDF}
-
-%.pdf: %.dtx $(PACKAGE).sty
- pdflatex $<
- - bibtex $*
- pdflatex $<
- - makeindex -s gind.ist -o $*.ind $*.idx
- - makeindex -s gglo.ist -o $*.gls $*.glo
- pdflatex $<
- while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
- do pdflatex $<; done
-
-
-
-
-%.sty: %.ins %.dtx
- pdflatex $<
-
-sample-%.pdf: sample.tex $(PACKAGE).sty
- pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"
- -bibtex sample-$*
- pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"
- while ( grep -q '^LaTeX Warning: Label(s) may have changed' sample-$*.log) \
- do pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"; done
-
-
-.PRECIOUS: $(PACKAGE).cfg $(PACKAGE).sty
-
-
-clean:
- $(RM) $(PACKAGE).sty *.log *.aux \
- *.cfg *.glo *.idx *.toc \
- *.ilg *.ind *.out *.lof \
- *.lot *.bbl *.blg *.gls *.hd \
- *.dvi *.ps *.tgz *.zip *.brf
-
-veryclean: clean
- $(RM) $(PACKAGE).pdf ${PDF}
-
-distclean: veryclean
-
-#
-# Archive for the distribution. Includes typeset documentation
-#
-archive: all clean
- tar -czvf $(PACKAGE).tgz -C .. --exclude '*~' --exclude '*.tgz' --exclude CVS $(PACKAGE)
-
-zip: all clean
- ${MAKE} $(PACKAGE).sty
- $(RM) *.log
- zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/multiaudience/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/multiaudience/README 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/doc/latex/multiaudience/README 2021-10-03 20:31:26 UTC (rev 60688)
@@ -3,3 +3,7 @@
The multiaudience package allows to generate several versions of the
same document for different audiences.
+
+Changes
+
+Version 1.04: Added support for a list of current audiences
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/multiaudience/multiaudience.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,devs.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,devs.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,devs.pdf 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,devs.pdf 2021-10-03 20:31:26 UTC (rev 60688)
Property changes on: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,devs.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,execs.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,execs.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,execs.pdf 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,execs.pdf 2021-10-03 20:31:26 UTC (rev 60688)
Property changes on: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins,execs.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-admins.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-devs.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs,devs.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs,devs.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs,devs.pdf 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs,devs.pdf 2021-10-03 20:31:26 UTC (rev 60688)
Property changes on: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs,devs.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/multiaudience/sample-execs.pdf
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/source/latex/multiaudience/Makefile
===================================================================
--- trunk/Master/texmf-dist/source/latex/multiaudience/Makefile (rev 0)
+++ trunk/Master/texmf-dist/source/latex/multiaudience/Makefile 2021-10-03 20:31:26 UTC (rev 60688)
@@ -0,0 +1,62 @@
+#
+#
+# This file is in public domain
+#
+# $Id: Makefile,v 1.4 2021/10/02 22:18:28 boris Exp $
+#
+
+PACKAGE=multiaudience
+PDF = sample-execs.pdf sample-devs.pdf sample-admins.pdf sample-admins,execs.pdf sample-admins,devs.pdf sample-execs,devs.pdf
+
+
+all: $(PACKAGE).pdf ${PDF}
+
+%.pdf: %.dtx $(PACKAGE).sty
+ pdflatex $<
+ - bibtex $*
+ pdflatex $<
+ - makeindex -s gind.ist -o $*.ind $*.idx
+ - makeindex -s gglo.ist -o $*.gls $*.glo
+ pdflatex $<
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
+ do pdflatex $<; done
+
+
+
+
+%.sty: %.ins %.dtx
+ pdflatex $<
+
+sample-%.pdf: sample.tex $(PACKAGE).sty
+ pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"
+ -bibtex sample-$*
+ pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' sample-$*.log) \
+ do pdflatex -jobname sample-$* "\def\CurrentAudience{$*}\input{sample.tex}"; done
+
+
+.PRECIOUS: $(PACKAGE).cfg $(PACKAGE).sty
+
+
+clean:
+ $(RM) $(PACKAGE).sty *.log *.aux \
+ *.cfg *.glo *.idx *.toc \
+ *.ilg *.ind *.out *.lof \
+ *.lot *.bbl *.blg *.gls *.hd \
+ *.dvi *.ps *.tgz *.zip *.brf
+
+veryclean: clean
+ $(RM) $(PACKAGE).pdf ${PDF}
+
+distclean: veryclean
+
+#
+# Archive for the distribution. Includes typeset documentation
+#
+archive: all clean
+ tar -czvf $(PACKAGE).tgz -C .. --exclude '*~' --exclude '*.tgz' --exclude CVS $(PACKAGE)
+
+zip: all clean
+ ${MAKE} $(PACKAGE).sty
+ $(RM) *.log
+ zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'
Property changes on: trunk/Master/texmf-dist/source/latex/multiaudience/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/multiaudience/multiaudience.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/multiaudience/multiaudience.dtx 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/source/latex/multiaudience/multiaudience.dtx 2021-10-03 20:31:26 UTC (rev 60688)
@@ -1,7 +1,7 @@
% \iffalse
-% $Id: multiaudience.dtx,v 1.6 2015/08/02 23:02:42 boris Exp $
+% $Id: multiaudience.dtx,v 1.9 2021/10/02 22:21:51 boris Exp $
%
-%% Copyright 2015, Boris Veytsman <borisv at lk.net
+%% Copyright 2015-2021, Boris Veytsman <borisv at 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
@@ -22,13 +22,13 @@
%</gobble>
%<style>\ProvidesPackage{multiaudience}
%<*style>
-[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]
% \end{macrocode}
%</style>
%<*gobble>
% \fi
-% \CheckSum{81}
+% \CheckSum{85}
%
%
%% \CharacterTable
@@ -134,8 +134,8 @@
% This trick allows one to generate all versions of output from the
% command line:
% \begin{verbatim}
-% pdflatex -jobnane file-execs "\def\CurrentAudience{execs}\input{file}"
-% pdflatex -jobnane file-devs "\def\CurrentAudience{devs}\input{file}"
+% pdflatex -jobname file-execs "\def\CurrentAudience{execs}\input{file}"
+% pdflatex -jobname file-devs "\def\CurrentAudience{devs}\input{file}"
% ...
% \end{verbatim}
%
@@ -201,7 +201,7 @@
% TEXT~1 will be visible only to devs and execs, while TEXT~2 only to
% devs.
% \begin{verbatim}
-% \begin{shownto}{devs, execs}
+% \begin{shownto}{devs,execs}
% TEXT 1
% \begin{shownto}{devs}
% TEXT 2
@@ -298,8 +298,40 @@
% \begin{verbatim}
% \NewMultiaudienceSectionEnv{Section}{\section}
% \end{verbatim}
+%
+% \subsection{Combined audiences}
+% \label{ug:combinations}
+%
+% Sometimes one wants to create a document for several audiences. You
+% can do this using comma-separated lists in \cs{CurrentAudience}, for
+% example,
+% \begin{verbatim}
+% \DefCurrentAudience{execs,admins}
+% \end{verbatim}
%
%
+% \emph{Important:} there should be no spaces in the definition. The
+% definition |\DefCurrentAudience{execs, admins}| will \emph{not} work!
+%
+% The resulting audience is the union of the audiences in the
+% definition. Thus a fragment is included if either:
+% \begin{enumerate}
+% \item The list of audiences for the fragment does not start with
+% |-|, and at least one of the current audiences is mentioned in the
+% list.
+% \item The list of audiences for the fragment starts with |-|, and
+% none of the current audiences is mentioned in the list.
+% \end{enumerate}
+% For example, suppose the current audience is |execs,admins|. Then
+% the following is true:
+% \begin{enumerate}
+% \item |\showto{devs}{...}|---excluded.
+% \item |\showto{devs,admins}{...}|---included.
+% \item |\showto{-, devs}{...}|---included.
+% \item |\showto{-, devs, admins}{...}|---excluded.
+% \end{enumerate}
+%
+%
%\StopEventually{\clearpage}
%
% \clearpage
@@ -380,6 +412,8 @@
% \end{macro}
%
% \begin{macro}{\SetNewAudience}
+% \changes{v1.04}{2021/10/02}{Added facility for a list of current
+% audiences}
% Definition of a new audience. We create a new key that switches
% visibility on or off.
% \begin{macrocode}
@@ -386,14 +420,15 @@
\def\SetNewAudience#1{%
\define at key{MULTAU}{#1}[]{%
\def\@MULTAU at currkey{#1}%
- \ifx\@MULTAU at currkey\CurrentAudience\relax
+ \@for\@tempa:=\CurrentAudience \do{%
+ \ifx\@MULTAU at currkey\@tempa\relax
\if at MULTAU@include
\@MULTAU at showntrue
\else
\@MULTAU at shownfalse
- \fi
- \fi}%
-}
+ \fi%
+ \fi%
+}}}
% \end{macrocode}
%
% \end{macro}
Modified: trunk/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty 2021-10-03 20:31:03 UTC (rev 60687)
+++ trunk/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty 2021-10-03 20:31:26 UTC (rev 60688)
@@ -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 at lk.net
+%% Copyright 2015-2021, Boris Veytsman <borisv at 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 @@
\def\SetNewAudience#1{%
\define at key{MULTAU}{#1}[]{%
\def\@MULTAU at currkey{#1}%
- \ifx\@MULTAU at currkey\CurrentAudience\relax
+ \@for\@tempa:=\CurrentAudience \do{%
+ \ifx\@MULTAU at currkey\@tempa\relax
\if at MULTAU@include
\@MULTAU at showntrue
\else
\@MULTAU at shownfalse
- \fi
- \fi}%
-}
+ \fi%
+ \fi%
+}}}
\long\def\showto#1#2{\@MULTAU at shownfalse\@MULTAU at includetrue
\setkeys{MULTAU}{#1}%
\if at MULTAU@shown#2\fi
More information about the tex-live-commits
mailing list.