summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-07-17 22:42:45 +0000
committerKarl Berry <karl@freefriends.org>2015-07-17 22:42:45 +0000
commit836bd4773e861a6ea3ac4e8c9606bbb0fdd3f44c (patch)
tree2e68afa431d3566c160198fdb9e9d2821242a579 /Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty
parent19b8c17ca1c0af54d194ebc1d1c39f5cfbe1d06a (diff)
jslectureplanner (16jul15)
git-svn-id: svn://tug.org/texlive/trunk@37878 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty')
-rw-r--r--Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty73
1 files changed, 71 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty b/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty
index e1a8298900e..5e3df477936 100644
--- a/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty
+++ b/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty
@@ -3,6 +3,8 @@
%%
%% Package to manage university courses.
%%
+%% This file is part of the jslectureplanner bundle.
+%%
%% Author: Juergen Spitzmueller <juergen.spitzmueller@univie.ac.at>
%%
%% This work may be distributed and/or modified under the
@@ -21,8 +23,8 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def\filedate{2015/07/07}
-\def\fileversion{1.0.2}
+\def\filedate{2015/07/15}
+\def\fileversion{1.1}
\def\filename{jslectureplanner.sty}
\NeedsTeXFormat{LaTeX2e}
@@ -38,6 +40,7 @@
\RequirePackage{xkeyval}
\RequirePackage{datetime}
\RequirePackage{calc}
+\RequirePackage{ifthen}
%
@@ -702,6 +705,72 @@
%
+% 6) Student presentations
+%
+
+\newcounter{pressession}
+\newcounter{lastpressession}
+\providebool{deflastpressession}
+
+% Allow to change first output session
+\newcommand*\setfirstpressession[1]{%
+ \setcounter{pressession}{#1}%
+}
+
+% Allow to change last output session
+\newcommand*\setlastpressession[1]{%
+ \setcounter{lastpressession}{#1}%
+ \booltrue{deflastpressession}%
+}
+
+% Generate presentation list
+\newcommand\makepreslist{%
+ \@ifstar{\@makeblankpreslist}{\@makepreslist}%
+}
+% Unstarred: use sespresstudents
+\newcommand\@makepreslist{%
+ \ifbool{deflastpressession}{}{\setcounter{lastpressession}{\thesnum}}%
+ \begin{labeling}{\lecprogramlistindent}
+ \whiledo {\not{\value{pressession} > \value{lastpressession}}}%
+ {%
+ \ThisSession{\thepressession}%
+ \if\relax\sespresstudents\relax
+ \MakeProgramline{\thepressession}\par
+ ---
+ \else
+ \MakeProgramline{\thepressession}\par
+ \SessionPresStudents{\thepressession}
+ \fi
+ \stepcounter{pressession}%
+ }
+ \end{labeling}
+}
+% Starred: blank list
+\newcommand\@makeblankpreslist{%
+ \ifbool{deflastpressession}{}{\setcounter{lastpressession}{\thesnum}}%
+ \begin{labeling}{\lecprogramlistindent}
+ \whiledo {\not{\value{pressession} > \value{lastpressession}}}%
+ {%
+ \MakeProgramline{\thepressession}\vspace{2\baselineskip}
+ \stepcounter{pressession}%
+ }
+ \end{labeling}
+}
+
+% A beamer-specific version
+\newcommand\makebeamerpreslist{%
+ \ifbool{deflastpressession}{}{\setcounter{lastpressession}{\thesnum}}%
+ \begin{description}[\lecprogramlistindent]
+ \whiledo {\not{\value{pressession} > \value{lastpressession}}}%
+ {%
+ \MakeProgramline{\thepressession}: \SessionPresStudents{\thepressession}
+ \stepcounter{pressession}%
+ }
+ \end{description}
+}
+
+
+%
% RETRIEVE SESSION-SPECIFIC INFORMATION
%