From b248dc0ef22a0e175a76c6379c03cc3a728f7f4c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 11 May 2016 21:28:48 +0000 Subject: jslectureplanner (11may16) git-svn-id: svn://tug.org/texlive/trunk@41043 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/jslectureplanner/jslectureplanner.sty | 68 +++++++++++++++++++++- 1 file changed, 65 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/jslectureplanner') diff --git a/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty b/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty index 5e3df477936..81f1d97bef4 100644 --- a/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty +++ b/Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty @@ -23,8 +23,8 @@ %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\def\filedate{2015/07/15} -\def\fileversion{1.1} +\def\filedate{2016/05/11} +\def\fileversion{1.2} \def\filename{jslectureplanner.sty} \NeedsTeXFormat{LaTeX2e} @@ -159,6 +159,7 @@ \newcounter{autooffsetcounter} \newcounter{breakunits} \newcounter{loopcounter} +\newcounter{adjsession} % % HELPERS @@ -546,7 +547,7 @@ \protected@csxdef{sesshortdate\thesnum}{% \bgroup\ifx\lecstartdate\empty\else\SetDate[\lecstartdate]\fi% \AdvanceDate[\thedateratio]\vlshdate\today\egroup} - \protected@csxdef{sestitle\thesnum}{\csuse{@sestitle}} + \protected@csxdef{sestitle\thesnum}{\csuse{@sestitle}\ifcsempty{@sestitle}{\strut}{}} \protected@csxdef{sestitlesep\thesnum}{\csuse{@sestitlesep}} \protected@csxdef{sessubtitle\thesnum}{\csuse{@vasutitle}} \protected@csxdef{sesshorttitle\thesnum}{\csuse{@vashorttitle}} @@ -861,6 +862,67 @@ \lsestitle\lsestitlesep\lsessubtitle% } +% Get information for adjacent (next, previous etc.) sessions +% +% Full title +\newcommand*\AdjSessionFullTitle[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionFullTitle{\theadjsession}% + \fi +} +% Date +\newcommand*\AdjSessionDate[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionDate{\theadjsession}% + \fi +} +% Short title +\newcommand*\AdjSessionShortTitle[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionShortTitle{\theadjsession}% + \fi +} +% Main title +\newcommand*\AdjSessionTitle[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionTitle{\theadjsession}% + \fi +} +% Short date +\newcommand*\AdjSessionShortDate[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionShortDate{\theadjsession}% + \fi +} +% Room +\newcommand*\AdjSessionRoom[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionRoom{\theadjsession}% + \fi +} +% Instructor +\newcommand*\AdjSessionInstructor[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionInstructor{\theadjsession}% + \fi +} +% Presenting students +\newcommand*\AdjSessionPresStudents[1][1]{% + \ifnum0<0\sesnr\relax + \setcounter{adjsession}{\numexpr\sesnr+#1\relax}% + \SessionPresStudents{\theadjsession}% + \fi +} +% +%%%%%%%%%%%%% + % Reset to today % DEPRECATED as of v.0.8, \newcommand*\ResetDate{% -- cgit v1.2.3