diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty | 73 |
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 % |