summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/multiaudience
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-08-03 22:04:47 +0000
committerKarl Berry <karl@freefriends.org>2015-08-03 22:04:47 +0000
commitb1bd2dbbfd4d6be2af62246fa1889e5470fd45f0 (patch)
treeff57789c1f0477df6b98c02c3c62253e577ef469 /Master/texmf-dist/tex/latex/multiaudience
parent8861879f68d110b9c3cbb9b4153c28e5e3799b9d (diff)
multiaudience (3aug15)
git-svn-id: svn://tug.org/texlive/trunk@38035 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/multiaudience')
-rw-r--r--Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty84
1 files changed, 84 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty b/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
new file mode 100644
index 00000000000..f0691df3efc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/multiaudience/multiaudience.sty
@@ -0,0 +1,84 @@
+%%
+%% This is file `multiaudience.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% multiaudience.dtx (with options: `style')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from multiaudience.sty.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file multiaudience.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% 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
+%% 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
+%% later version.
+%% The latest version of the license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2003/06/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Boris Veytsman
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{multiaudience}
+[2015/08/02 v1.02 Generating versions for different audiences from the
+same source]
+\providecommand*\CurrentAudience{default}
+\def\DefCurrentAudience#1{\def\CurrentAudience{#1}}
+\newif\if@MULTAU@shown
+\@MULTAU@showntrue
+\newif\if@MULTAU@include
+\@MULTAU@includetrue
+\RequirePackage{xkeyval}
+\define@key{MULTAU}{-}[]{\@MULTAU@showntrue\@MULTAU@includefalse}
+\def\SetNewAudience#1{%
+ \define@key{MULTAU}{#1}[]{%
+ \def\@MULTAU@currkey{#1}%
+ \ifx\@MULTAU@currkey\CurrentAudience\relax
+ \if@MULTAU@include
+ \@MULTAU@showntrue
+ \else
+ \@MULTAU@shownfalse
+ \fi
+ \fi}%
+}
+\long\def\showto#1#2{\@MULTAU@shownfalse\@MULTAU@includetrue
+ \setkeys{MULTAU}{#1}%
+ \if@MULTAU@shown#2\fi
+ \@MULTAU@showntrue\@MULTAU@includetrue}
+\RequirePackage{environ}
+\NewEnviron{shownto}[1]{%
+ \@MULTAU@shownfalse\@MULTAU@includetrue
+ \setkeys{MULTAU}{#1}%
+ \if@MULTAU@shown\BODY\fi}{\@MULTAU@showntrue\@MULTAU@includetrue}
+\def\DefMultiaudienceCommand#1#2{\long\def#1##1##2{\showto{##1}{#2{##2}}}}
+\DefMultiaudienceCommand{\Footnote}{\footnote}
+\def\NewMultiaudienceSectionEnv#1#2{%
+ \NewEnviron{#1}[1]{%
+ \@MULTAU@shownfalse\@MULTAU@includetrue
+ \setkeys{MULTAU}{##1}%
+ \if@MULTAU@shown\expandafter#2\BODY\fi}%
+ {\@MULTAU@showntrue\@MULTAU@includetrue}}
+\NewMultiaudienceSectionEnv{Section}{\section}
+\NewMultiaudienceSectionEnv{Subsection}{\subsection}
+\NewMultiaudienceSectionEnv{Subsubsection}{\subsubsection}
+\NewMultiaudienceSectionEnv{Paragraph}{\paragraph}
+\NewMultiaudienceSectionEnv{Subparagraph}{\subparagraph}
+\endinput
+%%
+%% End of file `multiaudience.sty'.