diff options
author | Karl Berry <karl@freefriends.org> | 2011-08-05 22:31:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-08-05 22:31:34 +0000 |
commit | e490838fbf019812f6c428450ffae3c7a9b22153 (patch) | |
tree | 9fabcf6be77693af6207a79fe3f41877053c5c32 | |
parent | ef7d8805855fe42e4654f21022b8e19117ede9d7 (diff) |
new latex package beameraudience (5aug11)
git-svn-id: svn://tug.org/texlive/trunk@23427 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/beameraudience/README | 45 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/beameraudience/beameraudience.sty | 81 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/beameraudience.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 |
5 files changed, 129 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/beameraudience/README b/Master/texmf-dist/doc/latex/beameraudience/README new file mode 100644 index 00000000000..dc318ce809e --- /dev/null +++ b/Master/texmf-dist/doc/latex/beameraudience/README @@ -0,0 +1,45 @@ +Copyright (c) 2011 Holger Marschall +holgermarschall@yahoo.de +Licence: LPPL +<http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html> + +1. What is it +============= +The Beamer Audience package provides macros to easily assemble frames according +to different audiences. It enables to pick up the frames for a specific audience +while leaving their order according to a logical structure in the LaTeX source. +This selection is done at compilation. + +This is the very first version! It's still considered experimental! Everything, +in particular the user interface, may change in the future in order to keep this +compatible to both beamer and packages extending beamer capabilities. + +The Beamer Audience package is a macro collection extending the Beamer Class. +Although it can only be used with the beamer class, it is not a part of the +beamer class! + +2. Usage +======== +Include package as + + \usepackage[audience=keyword]{beameraudience} + +with the keyword denoting your audience (for example: experts or beginner). + +Within the presentation source, use the beameraudience macros in order to +assemble frames according to the audience. Essentially, there are three macros +doing the job +* \framefor{/#1/}{/#2/} +* \justfor{/#1/}{/#2/} +* \showcontentfor{/#1/}{/#2/} +where +/#1/ is to provided as a keyword (for example: experts or beginner) +/#2/ is the content to be selected according to the audience. + For \framefor{}{} it's the frame content; + For \justfor{}{} it can be a frame environment; + For \showcontentfor{}{} it's the selective content in a frame. + +3. Files +======== +readme this file +beameraudience.sty the package
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/beameraudience/beameraudience.sty b/Master/texmf-dist/tex/latex/beameraudience/beameraudience.sty new file mode 100644 index 00000000000..955ea1e2cac --- /dev/null +++ b/Master/texmf-dist/tex/latex/beameraudience/beameraudience.sty @@ -0,0 +1,81 @@ +%% +%% This program is provided under the terms of the +%% LaTeX Project Public License distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt. +%% +%% Author: Holger Marschall +%% holgermarschall@yahoo.de +%% +\def\fileversion{0.1} +\def\filedate{2011/08/02} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beameraudience}[\filedate\space + v\fileversion\space assembling beamer frames according to audience] + +% check for beamer class +% taken from beamersubframe (v 0.1 -- Mike Kaufmann -- THANKS!) +\@ifclassloaded{beamer}{}{% + \PackageError{beameraudience}{% + The package works only with the beamer class,\MessageBreak + therefore it is not loaded. + }{% + The package is not loaded, because it needs the\MessageBreak + beamer class. Continuing may lead to additional\MessageBreak + errors because of undefined commands. + } + \endinput +} + +\RequirePackage{kvoptions} +\RequirePackage{cprotect} +\RequirePackage{ifthen} + +\DeclareStringOption[all]{audience} +\ProcessKeyvalOptions* + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% start functional stuff +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% +% new frame command '\framefor{#1}{#2}' +% #1 audience-keyword checked +% against the package option +% #2 frame content +% +% and related stuff: '\justfor{#1}{#2}' +% '\showcontentfor{#1}{#2}' +% + +\newboolean{includethis} +\newcommand{\ifinclude}[1]{\ifthenelse{\boolean{includethis}}{#1}{}} +\newcommand{\ifshow}[1]{\ifthenelse{\boolean{includethis}}{\only<beamer:1|handout:1>{#1}}{\only<beamer:0|handout:0>{#1}}} + +\newcommand{\framefor}[2]% +{% + \ifthenelse{\equal{#1}{\beameraudience@audience}}{\setboolean{includethis}{true}}{} + \ifinclude{% + \begin{frame} + #2 + \end{frame}% + } + \setboolean{includethis}{false} +} + +\newcommand{\justfor}[2]% +{% + \ifthenelse{\equal{#1}{\beameraudience@audience}}{\setboolean{includethis}{true}}{} + \ifinclude{% + #2 + } + \setboolean{includethis}{false} +} + +\newcommand{\showcontentfor}[2]% +{% + \ifthenelse{\equal{#1}{\beameraudience@audience}}{\setboolean{includethis}{true}}{} + \ifshow{% + #2 + } + \setboolean{includethis}{false} +}
\ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index fe3cb8c78dc..cbb8e6b6cd4 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -47,7 +47,8 @@ my @TLP_working = qw( b1encoding babel babelbib background bangtex barcodes bardiag barr bartel-chess-fonts bashful baskervald bbcard bbding bbm bbm-macros bbold bbold-type1 bclogo - beamer beamer2thesis beamer-FUBerlin beamer-tut-pt beamerposter + beamer beamer2thesis beamer-FUBerlin beamer-tut-pt + beameraudience beamerposter beamerthemejltree beamerthemenirma beebe begriff bengali bera berenisadf betababel beton bez123 bezos bgreek bhcexam diff --git a/Master/tlpkg/tlpsrc/beameraudience.tlpsrc b/Master/tlpkg/tlpsrc/beameraudience.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/beameraudience.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 3faf702b3bb..634321cd46d 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -38,6 +38,7 @@ depend authorindex depend background depend bashful depend beamer2thesis +depend beameraudience depend beamerposter depend beamerthemejltree depend beamerthemenirma |