summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/jslectureplanner
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-11 21:28:48 +0000
committerKarl Berry <karl@freefriends.org>2016-05-11 21:28:48 +0000
commitb248dc0ef22a0e175a76c6379c03cc3a728f7f4c (patch)
tree348b71090c0a2940f5b4f0e22ea5b6eeb5f0d724 /Master/texmf-dist/tex/latex/jslectureplanner
parentbde5af3bfbebbad7a5387d12a0951c1da8340ee3 (diff)
jslectureplanner (11may16)
git-svn-id: svn://tug.org/texlive/trunk@41043 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jslectureplanner')
-rw-r--r--Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty68
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{%