diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty | 68 |
1 files changed, 65 insertions, 3 deletions
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{% |