summaryrefslogtreecommitdiff
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
parent19b8c17ca1c0af54d194ebc1d1c39f5cfbe1d06a (diff)
jslectureplanner (16jul15)
git-svn-id: svn://tug.org/texlive/trunk@37878 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/README42
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturebib.pdfbin85432 -> 85429 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturehandout.pdfbin59145 -> 59145 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturepresentation.pdfbin84929 -> 84929 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/lectureprogram.pdfbin57878 -> 57878 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturescript.pdfbin34743 -> 34743 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.pdfbin0 -> 28387 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.tex30
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.pdfbin0 -> 28510 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.tex30
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/metadata.tex14
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.pdfbin0 -> 27895 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.tex33
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.pdfbin0 -> 26783 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.tex33
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.pdfbin0 -> 26860 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.tex35
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/examples/students.csv6
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.pdfbin119927 -> 409457 bytes
-rw-r--r--Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.tex537
-rw-r--r--Master/texmf-dist/tex/latex/jslectureplanner/cologne.lps2
-rw-r--r--Master/texmf-dist/tex/latex/jslectureplanner/german-default.lps28
-rw-r--r--Master/texmf-dist/tex/latex/jslectureplanner/jslectureplanner.sty73
-rw-r--r--Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty696
24 files changed, 1429 insertions, 130 deletions
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/README b/Master/texmf-dist/doc/latex/jslectureplanner/README
index bede5a9b1a1..fb1ed5a8e07 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/README
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/README
@@ -1,7 +1,7 @@
==================================================================
-The jslectureplanner package
+The jslectureplanner bundle
-A LaTeX package to help managing university courses.
+A set of LaTeX packages to help managing university courses.
Maintained by Jürgen Spitzmüller
E-mail: juergen (at) spitzmueller (dot) org
@@ -14,24 +14,26 @@ See http://www.latex-project.org/lppl.txt
== PURPOSE ==
-The jslectureplanner package facilitates the generation and managment
+The jslectureplanner bundle facilitates the generation and managment
of university course material. It provides an interface to set up and
access centralized course data that can be reused in all course documents.
-Furthermore, the package is able to calculate the session dates of
-a whole semester and generate course programs, if the sessions follow at
-regular intervals and the date of the first session is specified.
-Moreover, the package can be used to generate a sectioned course
-bibliography via biblatex.
+Furthermore, it is able to calculate the session dates of a whole semester
+and generate course programs, if the sessions follow at regular intervals
+and the date of the first session is specified. Moreover, it can be used
+to generate a sectioned course bibliography via biblatex.
+Next to the main, title-giving package, the bundle includes a package
+that helps generating course member and presence lists.
== CONTENTS ==
The package consists of the following files:
-* jslectureplanner.sty (the LaTeX package)
+* jslectureplanner.sty (the main LaTeX package)
+* jsmembertable.sty (LaTeX package to generate course member and presence lists)
* german-default.lps (German 'model' style file with default settings)
-* cologne.lps (German style file attempted at the Univ. of Cologne)
-* jslectureplanner.pdf (package documentation)
+* cologne.lps (German style file attempted at the University of Cologne)
+* jslectureplanner.pdf (documentation)
* jslectureplanner.tex (documentation source)
* README (this very file)
@@ -49,7 +51,13 @@ The following example files are included:
* lecpresbody.tex: common body of presentation/handout
* lecturebib.tex: example course bibliography
* lecturebib.pdf
-* lectureplanner-examples.bib
+* lectureplanner-examples.bib: example bibliography data
+* membertable.tex: example member table
+* membertable.pdf
+* presencetable.tex: example presence table
+* presencetable.pdf
+* preslist.tex: example student presentation list
+* preslist.pdf
== DOCUMENTATION ==
@@ -60,6 +68,12 @@ instructions; also have a look at the example files.
== CHANGES ==
+* V. 1.1 (2015-07-15): - Include and document the companion package jsmembertable.
+ - Add support for student presentation lists (new macros
+ \makepreslist, \makepreslist*, \makebeamerpreslist,
+ \jsetfirstpressession and \jsetlastpressession).
+ - Major revision of the manual.
+
* V. 1.0.2 (2015-07-07): - Permit \LecType and \LecYear in the document body again
(fix a regression introduced in v. 1.0).
@@ -100,9 +114,9 @@ instructions; also have a look at the example files.
in favour of better translatability.
* V. 0.7 (2015-01-04): - Add macro for resetting \today.
- - Minor corrections in the manual.
+ - Minor corrections of the manual.
-* V. 0.6b (2014-12-12): - Minor corrections in the manual and
+* V. 0.6b (2014-12-12): - Minor corrections of the manual and
example files.
* V. 0.6 (2014-12-12): - Initial release to CTAN.
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturebib.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturebib.pdf
index 77550df9207..b69d5273994 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturebib.pdf
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturebib.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturehandout.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturehandout.pdf
index 23dd94a7617..18c0156668a 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturehandout.pdf
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturehandout.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturepresentation.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturepresentation.pdf
index edea80cea3f..9f1c206bf80 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturepresentation.pdf
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturepresentation.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lectureprogram.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lectureprogram.pdf
index 8c5a7a7ea28..756ff524c6f 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lectureprogram.pdf
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lectureprogram.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturescript.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturescript.pdf
index 3c05d9a917d..c1ddefa1488 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturescript.pdf
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/lecturescript.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.pdf
new file mode 100644
index 00000000000..6657cd72d31
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.tex b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.tex
new file mode 100644
index 00000000000..21cf2e31032
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-blank.tex
@@ -0,0 +1,30 @@
+% Example file, part of the package jslectureplanner
+%
+% Example of a course member table generated with jslectureplanner
+% and jsmembertable
+
+\documentclass[ngerman]{article}
+\usepackage{mathptmx}
+\usepackage[T1]{fontenc}
+\usepackage[latin9]{inputenc}
+
+\usepackage{jslectureplanner}
+\input{metadata.tex}
+
+\usepackage{jsmembertable}
+
+\usepackage{babel}
+
+\begin{document}
+
+\title{\lectype\ \lecfulltitle}
+
+\author{\lecinstructor}
+
+\date{\lecsemester}
+
+\maketitle
+
+\makemembertable{25}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.pdf
new file mode 100644
index 00000000000..4cf89b7b0b6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.tex b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.tex
new file mode 100644
index 00000000000..9a79edf6eb7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/membertable-filled.tex
@@ -0,0 +1,30 @@
+% Example file, part of the package jslectureplanner
+%
+% Example of a course member table generated with jslectureplanner
+% and jsmembertable
+
+\documentclass[ngerman]{article}
+\usepackage{mathptmx}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+
+\usepackage{jslectureplanner}
+\input{metadata.tex}
+
+\usepackage[datafile=students]{jsmembertable}
+
+\usepackage{babel}
+
+\begin{document}
+
+\title{\lectype\ \lecfulltitle}
+
+\author{\lecinstructor}
+
+\date{\lecsemester}
+
+\maketitle
+
+\makemembertable{}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/metadata.tex b/Master/texmf-dist/doc/latex/jslectureplanner/examples/metadata.tex
index a742ae1796c..8f8f5f87026 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/examples/metadata.tex
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/metadata.tex
@@ -42,13 +42,13 @@
% another thematic block
\begin{SessionBlock}{Die Geschichte meiner Wissenschaft}
- \NewSession[bibsec=anf]{Die Anf\"ange}
+ \NewSession[bibsec=anf, presstudents={Johannes Schmidt}]{Die Anf\"ange}
- \NewSession[bibsec=erf]{Erste Erfolge}
+ \NewSession[bibsec=erf, presstudents={Clara Vanderfeld}]{Erste Erfolge}
\NewSession[cancel=true]{Dies Academicus}
- \NewSession[bibsec=konk]{Konkurrenzk\"ampfe}
+ \NewSession[bibsec=konk, presstudents={Jana Braun}]{Konkurrenzk\"ampfe}
\NewSession[%
titlesep={:\ },
@@ -69,7 +69,7 @@
\NewSession[bibsec=wesentl]{Bestimmung des Wesentlichen}
- \NewSession[bibsec=fok]{Fokussierung auf das Wesentliche}
+ \NewSession[bibsec=fok, presstudents={Andy Braun}]{Fokussierung auf das Wesentliche}
\NewSession[bibsec=rekap]{Rekapitulation der Wesensbestimmung}
@@ -81,13 +81,15 @@
\NewSession[%
titlesep={:\ },
subtitle={Mein Institut},
- bibsec=lokal
+ bibsec=lokal,
+ presstudents={Rolf Brandner}
]{Das lokale Umfeld}
\NewSession[%
titlesep={:\ },
subtitle={Die Welt},
- bibsec=welt
+ bibsec=welt,
+ presstudents={Z\"oe Peters}
]{Der Rest}
\end{SessionBlock}
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.pdf
new file mode 100644
index 00000000000..f492296b844
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.tex b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.tex
new file mode 100644
index 00000000000..6d162d94d21
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-blank.tex
@@ -0,0 +1,33 @@
+% Example file, part of the package jslectureplanner
+%
+% Example of a presence table generated with jslectureplanner
+% and jsmembertable
+
+\documentclass[ngerman,landscape]{article}
+\usepackage{mathptmx}
+\usepackage[T1]{fontenc}
+\usepackage[latin9]{inputenc}
+
+\usepackage{geometry}
+\geometry{left=2cm, right=2cm,top=2cm,bottom=2cm}
+
+\usepackage{jslectureplanner}
+\input{metadata.tex}
+
+\usepackage{jsmembertable}
+
+\usepackage{babel}
+
+\begin{document}
+
+\title{\lectype\ \lecfulltitle}
+
+\author{\lecinstructor}
+
+\date{\lecsemester}
+
+\maketitle
+
+\makeprestable{25}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.pdf
new file mode 100644
index 00000000000..b8779feb160
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.tex b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.tex
new file mode 100644
index 00000000000..e95dcfb981f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presencetable-filled.tex
@@ -0,0 +1,33 @@
+% Example file, part of the package jslectureplanner
+%
+% Example of a presence table generated with jslectureplanner
+% and jsmembertable
+
+\documentclass[ngerman,landscape]{article}
+\usepackage{mathptmx}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+
+\usepackage{geometry}
+\geometry{left=2cm, right=2cm,top=2cm,bottom=2cm}
+
+\usepackage{jslectureplanner}
+\input{metadata.tex}
+
+\usepackage[datafile=students]{jsmembertable}
+
+\usepackage{babel}
+
+\begin{document}
+
+\title{\lectype\ \lecfulltitle}
+
+\author{\lecinstructor}
+
+\date{\lecsemester}
+
+\maketitle
+
+\makeprestable{}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.pdf
new file mode 100644
index 00000000000..434dfa37585
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.tex b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.tex
new file mode 100644
index 00000000000..94951e02fbb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/presentation-list.tex
@@ -0,0 +1,35 @@
+% Example file, part of the package jslectureplanner
+%
+% Example of a course presentation list generated with jslectureplanner
+
+\documentclass[ngerman]{article}
+\usepackage{mathptmx}
+\usepackage[T1]{fontenc}
+\usepackage[latin9]{inputenc}
+
+\usepackage{jslectureplanner}
+\input{metadata.tex}
+
+\usepackage{babel}
+
+\begin{document}
+
+\title{\lectype\ \lecfulltitle}
+
+\author{\lecinstructor}
+
+\date{\lecsemester}
+
+\maketitle
+
+\section*{Studentische Pr\"asentationen}
+
+\setfirstpressession{2}
+\setlastpressession{12}
+
+\makepreslist
+
+% Blank presentation list
+%\makepreslist*
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/examples/students.csv b/Master/texmf-dist/doc/latex/jslectureplanner/examples/students.csv
new file mode 100644
index 00000000000..7e7d91554bc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/examples/students.csv
@@ -0,0 +1,6 @@
+Johannes,Schmidt,102689,johannes@meine-uni.de
+Jana,Braun,102647,jana@meine-uni.de
+Andy,Braun,103569,andy@meine-uni.de
+Z\"oe,Peters,105987,zoe@meine-uni.de
+Rolf,Brandner,106872,rolf@meine-uni.de
+Clara,Vanderfeld,104356,clara@meine-uni.de
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.pdf b/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.pdf
index e7710ef0438..528efacfb7d 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.pdf
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.tex b/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.tex
index 77c58a8cbc7..60d9a49e7f4 100644
--- a/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.tex
+++ b/Master/texmf-dist/doc/latex/jslectureplanner/jslectureplanner.tex
@@ -1,7 +1,7 @@
\documentclass[english]{article}
-\usepackage{charter}
-\usepackage[scaled=0.87]{beramono}
+\usepackage[osf]{libertine}
+\usepackage[scaled=0.7]{beramono}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{url}
@@ -13,65 +13,104 @@
\newcommand*\jfmacro[1]{\texttt{#1}}
\newcommand*\jfcsmacro[1]{\jfmacro{\textbackslash{#1}}}
+% macros
+\newcommand*\jslp{\textsf{jslectureplanner}}
+\newcommand*\jsmt{\textsf{jsmembertable}}
+
+% improve layout
+\tolerance 1414
+\hbadness 1414
+\emergencystretch 1.5em
+\hfuzz 0.3pt
+\widowpenalty = 10000
+\vfuzz \hfuzz
+\raggedbottom
+
+\usepackage{microtype}
+
\usepackage{babel}
+
\usepackage{listings}
\lstset{language={[LaTeX]TeX},
basicstyle={\small\ttfamily},
frame=single}
-\renewcommand{\lstlistingname}{Listing}
\setcounter{tocdepth}{2}
\begin{document}
-\title{The jslectureplanner package}
+\title{The \jslp\ bundle}
\author{Jürgen Spitzmüller%
\thanks{Please report issues via \protect\url{https://github.com/jspitz/jslectureplanner}.}}
-\date{Version 1.0.2, 2015/07/07}
+\date{Version 1.1, 2015/07/15}
\maketitle
+\begin{abstract}
+\noindent The \jslp\ bundle provides a collection of packages
+I have written in order to facilitate, and somewhat systematize,
+the planning of my university courses and the generation of course material
+(and thus, ultimately, to relieve me from some of the more boring and
+time-consuming part of teaching work).
+Currently, the bundle consists of the main, title-giving package \jslp\
+that provides an interface to central, partly dynamically generated course
+metadata as well as routines to generate programs, bibliographies etc., and one
+smaller companion package: \jsmt, a package that can construct course
+member and presence tables. This manual documents these packages.
+\end{abstract}
+
\tableofcontents
+\clearpage
+
+\part{The \jslp\ package}
+
+This part of the manual describes the basic user interface of the
+\jslp\ package.
+Please also refer to the example files included in the bundle in order to
+see how \jslp\ is supposed to be used ``in practice''.
+
\section{Aim of this package}
-I have written this package in order to facilitate (and somewhat systematize)
-the planning of my university courses. The basic idea of this package
-is that you record all general data of a course (date, semester, type,
-course title, session titles, general information etc.) in a central
-tex file and then input this file to all documents related to the
-course (such as the course program, bibliography, scripts, handouts, beamer
-presentations, exercises etc.), in order to re-use the recorded data.
+The basic idea of the \jslp\ package is that you record
+all general data of a course (date, semester, type, course title, session titles,
+general information etc.) in a central tex file and then input this
+file to all documents related to the course (such as the course program,
+bibliography, scripts, handouts, beamer presentations, exercises etc.),
+in order to re-use the recorded data.
This is particularly helpful if you have standard courses which
are held every other semester: instead of changing the data in every
single file, you just need to change it once, in the metadata file.
-To further facilitate the planning, the package is able to calculate
-the session dates of a whole semester, if the sessions of the course
-follow at regular intervals.
+To further facilitate the planning, the \jslp\ package
+is able to calculate the session dates of a whole semester, if the sessions
+of the course follow at regular intervals.
You only need to set the date of the first session, the package does
the rest. Moreover, the package can be used to generate a sectioned
bibliography for the course via \textsf{biblatex}.
-Since the package was written for my own needs, it is somewhat tied
+Since the package has been written for my own needs, it is somewhat tied
to my workflow. Particularly, it is tied to my context: teaching in
the Humanities at a German-speaking university. Hence, the categorization
of the package draws on this context. In particular, all strings and
-formats are German. However, it is possible add new categories as well as
-to customize and translate the strings.
+formats are German. However, it is possible to add new categories as
+well as to customize and translate the strings.
This is described later in this manual.
-This manual describes the basic user interface of the package. Please
-also refer to the example files included in the package in order to
-see how it is supposed to be used ``in practice''.
-
+\section{Requirements of \jslp}\label{sec:req-jslp}
-\section{Requirements}
-
-The following packages are required: \textsf{etoolbox}, \textsf{advdate},
-\textsf{xkeyval}, \textsf{datetime}, \textsf{calc}.
+The following packages are required and loaded by \jslp:
+\begin{itemize}
+ \setlength\itemsep{2pt}
+ \item \textsf{advdate}
+ \item \textsf{calc}
+ \item \textsf{datetime}
+ \item \textsf{etoolbox}
+ \item \textsf{ifthen}
+ \item \textsf{xkeyval}
+\end{itemize}
\section{General idea}
@@ -107,72 +146,81 @@ or via specific macros (see sec.~\ref{sec:via-macros}).
\subsubsection{Course classification\label{sec:lecture-classification}}
-The default course classification draws on the conventions at German universities
-(or those where I have worked, for that matter). Each type is connected
-to a verbose string (such as ``Seminar''), a short form (such as
-``SE'') and a form that is used to denote individual sessions (as
+The default course classification draws on the conventions at German-speaking
+universities (or those where I have worked, for that matter). Each type is
+connected to a verbose string (such as \emph{Seminar}), a short form (such as
+\emph{SE}) and a form that is used to denote individual sessions (as
in ``the second \emph{session} of this course'').
\begin{description}
-\item [{type=<type>}] Defines the course type. Preset values:
+\item [\joption{type=<type>}] defines the course type. Predefined values are:
\begin{itemize}
-\item \joption{vl}: A lecture (verbose form: ``Vorlesung''\footnote{Sec.~\ref{sec:customizing-strings}
-explains how to customize these strings.}, short form: ``VL'', session form: ``Vorlesung'')
-\item \joption{ps}: Undergraduate seminar (verbose form: ``Proseminar'',
-short form: ``PS'', session form: ``Sitzung'')
-\item \joption{se}: Seminar (verbose form: ``Seminar'', short form: ``SE'',
-session form: ``Sitzung'')
-\item \joption{ue}: Practical course (verbose form: ``Übung'', short
-form: ``UE'', session form: ``Sitzung'')
-\item \joption{ko}: Colloquium (verbose form: ``Kolloquium'', short form:
-``KO'', session form: ``Sitzung'')
-\item \joption{pv}: Research seminar (verbose form: ``Privatissimum'',
-short form: ``PV'', session form: ``Sitzung'')
+\item \joption{vl}: A lecture (verbose form: \emph{Vorlesung}, short form:
+ \emph{VL}, session form: \emph{Vorlesung})
+\item \joption{ps}: Undergraduate seminar (verbose form: \emph{Proseminar},
+ short form: \emph{PS}, session form: \emph{Sitzung})
+\item \joption{se}: Seminar (verbose form: \emph{Seminar}, short form:
+ \emph{SE}, session form: \emph{Sitzung})
+\item \joption{ue}: Practical course (verbose form: \emph{Übung}, short
+ form: \emph{UE}, session form: \emph{Sitzung})
+\item \joption{ko}: Colloquium (verbose form: \emph{Kolloquium}, short form:
+ \emph{KO}, session form: \emph{Sitzung})
+\item \joption{pv}: Research seminar (verbose form: \emph{Privatissimum},
+ short form: \emph{PV}, session form: \emph{Sitzung})
\end{itemize}
-Sec.~\ref{sec:customizing-strings} explains how to customize and extend this list.
-Also cf. sec.~\ref{sec:styles} on the concept of ``styles''.
+Section~\ref{sec:customizing-strings} explains how to extend this list and how
+to customize the strings.
+Please also cf. sec.~\ref{sec:styles} on the concept of ``styles''.
\end{description}
\subsubsection{Course title}
\begin{description}
-\item [{title=<title>}] Main title of the course
-\item [{titlesep=<separator>}] Separator between title and subtitle
-\item [{subtitle=<subtitle>}] Subtitle of the course
-\item [{shorttitle=<shorttitle>}] Short title of the course (for headings etc.)
+\item [\joption{title=<title>}] Main title of the course
+\item [\joption{titlesep=<separator>}] Separator between title and subtitle
+\item [\joption{subtitle=<subtitle>}] Subtitle of the course
+\item [\joption{shorttitle=<shorttitle>}] Short title of the course (for headings etc.)
\end{description}
\subsubsection{Date and place\label{sec:date-and-place}}
\begin{description}
-\item [{semester=<term>,}] where \joption{<term>} is one of
+\item [\joption{semester=<term>,}] where \joption{<term>} is one of
\begin{itemize}
-\item \joption{fs}: Spring term (``Frühjahrssemester'', short form: ``FS'')
-\item \joption{hs}: Fall term (``Herbstsemester'', short form: ``HS'')
-\item \joption{ss}: Summer term (``Sommersemester'', short form: ``SoSe'')
-\item \joption{ws}: Winter term (``Wintersemester'', short form: ``WS'')
+\item \joption{fs}: Spring term (\emph{Frühjahrssemester}, short form: \emph{FS})
+\item \joption{hs}: Fall term (\emph{Herbstsemester}, short form: \emph{HS})
+\item \joption{ss}: Summer term (\emph{Sommersemester}, short form: \emph{SoSe})
+\item \joption{ws}: Winter term (\emph{Wintersemester}, short form: \emph{WS})
\end{itemize}
Sec.~\ref{sec:customizing-strings} explains how to customize and extend this list.
Also cf. sec.~\ref{sec:styles}.
-\item [{year=<year>}]~
-\item [{uni=<university>}]~
-\item [{institute=<institute>}]~
-\item [{room=<room>}]~
-\item [{startdate=<startdate>}] Date of the first session (argument\emph{
-must} have the form DD/MM/YYYY). If no startdate is given, \jfcsmacro{today} is used.
-\item [{interval=<interval>}] Interval (in days) between two sessions.
+\item [\joption{year=<year>}] Year of the term
+\item [\joption{uni=<university>}] Your university
+\item [\joption{institute=<institute>}] Your institute/department
+\item [\joption{room=<room>}] The room where the course generally takes place.
+ It is possible to specify diverging rooms for individual sessions
+ (see sec. \ref{sec:lecplan}).
+\item [\joption{startdate=<startdate>}] The date of the first session (the argument
+ \emph{must} have the form DD/MM/YYYY). If no startdate is given,
+ \jfcsmacro{today} is used.
+\item [\joption{interval=<interval>}] The interval (in days) between two sessions.
The preset interval is 7 (=~weekly courses).
\end{description}
\subsubsection{Additional information}
\begin{description}
-\item [{instructor=<name>}] Instructor's name
-\item [{platform=<data>}] Information (e.\,g., URL) of the e-learning platform
-\item [{officehours=<data>}] Date of your office hours
-\item [{officenumber=<data>}] Your office number
+\item [\joption{instructor=<name>}] (General) course instructor's name.
+ It is possible to specify different or specific instructors for individual sessions
+ (see sec. \ref{sec:lecplan}).
+\item [\joption{platform=<data>}] Information of the e-learning platform
+ (such as the URL)
+\item [\joption{officehours=<data>}] Date of your office hours
+\item [\joption{officenumber=<data>}] Your office (room) number
\end{description}
+\clearpage
+
\subsection{Via macros\label{sec:via-macros}}
The following macros provide an alternative way to set up the course metadata.
@@ -199,8 +247,8 @@ description.}
\joption{<package options>} might be any set of package options described
in sec.~\ref{sub:package-options}, so this macro can actually be used to record
all metadata.
-\item \jcsmacro{LecTitleSep\{<title separator>\}}: Specify course
-title-subtitle separator (e.\,g., ``. '' or `` -- '')
+\item \jcsmacro{LecTitleSep\{<title separator>\}}: Specify a separator between course
+title and subtitle (e.\,g., ``. '' or `` -- '')
\item \jcsmacro{LecSubTitle\{<subtitle>\}}: Record course subtitle
\end{itemize}
@@ -218,10 +266,10 @@ description.}
\end{itemize}
\item \jcsmacro{LecUni\{<university>\}}: Record the name of
your university
-\item \jcsmacro{LecInstitute\{<institute>\}}: Record your institute's name
-\item \jcsmacro{LecRoom\{<room>\}}: Record the room where the course takes place
-\item \jcsmacro{LecStartDate\{<startdate>\}}: Set date of
-the first session (argument\emph{ must} have the form DD/MM/YYYY)
+\item \jcsmacro{LecInstitute\{<institute>\}}: Record your institute's/department's name
+\item \jcsmacro{LecRoom\{<room>\}}: Record the room where the course (generally) takes place
+\item \jcsmacro{LecStartDate\{<startdate>\}}: Set the date of
+the first session (the argument \emph{must} have the form DD/MM/YYYY)
\item \jcsmacro{LecInterval\{<interval>\}}: Adjust the interval (in days) between two sessions.
The preset interval is 7 (=~weekly courses).
\item \jcsmacro{SetAutoOffset\{<n>\}\{<days>\}}: Automatically shift all subsequent sessions
@@ -232,16 +280,16 @@ the first session (argument\emph{ must} have the form DD/MM/YYYY)
also be a negative integer value.
\end{itemize}
-\subsubsection{Additional information}
+\subsubsection{Additional information}\label{ses-add}
\begin{itemize}
-\item \jcsmacro{LecInstructor\{<name>\}}: Record the instructor's name
+\item \jcsmacro{LecInstructor\{<name>\}}: Record the (general) instructor's name
\item \jcsmacro{SetOfficeHours\{<office hours>\}}: Record date of your office hours
-\item \jcsmacro{SetOfficeNumber\{<office number>\}}: Record your office number
+\item \jcsmacro{SetOfficeNumber\{<office number>\}}: Record your office (room) number
\item \jcsmacro{SetPlatform\{<platform information>\}}: Record information
(such as URL) of the e-learning platform
\end{itemize}
-\section{Setting up a course schedule\label{sec:lecplan}}
+\section{Setting up a course schedule}\label{sec:lecplan}
In the metadata file, you can set up a schedule for the course by entering
session information in chronological order. This is done via the following
@@ -250,7 +298,7 @@ macro:
\item \jcsmacro{NewSession[<options>]\{Session title\}}
-Valid \joption{<options>}:
+Valid \joption{<options>} include:
\begin{itemize}
\item \joption{titlesep=<separator>}: Separator between session title and
subtitle
@@ -260,6 +308,7 @@ Valid \joption{<options>}:
\item \joption{instructor=<name>}: Specific instructor for this session
(if it differs from the usual course instructor)
\item \joption{presstudents=<names>}: Students presenting in this session
+ (used for student presentation lists, see below sec.~\ref{sec:preslists})
\item \joption{room=<room>}: Specific room for this session (if it differs
from the usual course room)
\item \joption{bibsec=<keyword>}: Session keyword for the bibliography
@@ -299,7 +348,7 @@ an optional argument \joption{<span>}, the macro will expand to
\textbf{(<span>: Break)}
\par\end{center}
-E.\,g., \jcsmacro{SetBreak[28.05.-{}-3.06.]\{Whitsun holidays\}}
+So for instance, \jcsmacro{SetBreak[28.05.-{}-3.06.]\{Whitsun holidays\}}
expands to
@@ -331,8 +380,8 @@ Possible \jmacro{<options>} are:
the beamer program at this position (more precisely, start a new frame).
This also increments the frame counter which is used for subsequent program
frame titles. Note that you can insert maximally 3 breaks.
-\item \jcsmacro{SetBeamerHook\{<code>\}}: Add arbitrary \LaTeX{}
-code to the beamer program
+\item \jcsmacro{SetBeamerHook\{<code>\}}: Add arbitrary LaTeX code to the
+beamer program
\item \jcsmacro{begin\{SessionBlock\}\{<Block title>\}}\\
\ldots{} \\
\jcsmacro{end\{SessionBlock\}}:\\
@@ -369,20 +418,20 @@ of the course title
\item \jcsmacro{lecsemshort}: Outputs the short version of
the term type (e.\,g., ``WS'')
\item \jcsmacro{lecsemverb}: Outputs the verbose version
-of the term type (e.\,g., ``Wintersemester'')
+of the term type (such as ``Winter\-semester'')
\item \jcsmacro{lecyear}: Outputs the year
\item \jcsmacro{lecsemester}: Outputs the short version of
the semester (e.\,g., ``WS 2014'')
\item \jcsmacro{lecsemesterverb}: Outputs the verbose version
-of the semester (e.\,g., ``Wintersemester 2014'')
+of the semester (such as ``Winter\-semester 2014'')
\item \jcsmacro{lecuniversity}: Outputs the university's name
-\item \jcsmacro{lecinstitute}: Outputs the institute's name
-\item \jcsmacro{lecinstructor}: Outputs the instructor's name
-\item \jcsmacro{lecroom}: Outputs the course room
+\item \jcsmacro{lecinstitute}: Outputs the institute's/department's name
+\item \jcsmacro{lecinstructor}: Outputs the (general) instructor's name
+\item \jcsmacro{lecroom}: Outputs the (general) course room
\item \jcsmacro{lecplatform}: Outputs information on the
e-learning platform
\item \jcsmacro{officehours}: Outputs the office hours
-\item \jcsmacro{officenumber}: Outputs the office number
+\item \jcsmacro{officenumber}: Outputs the office (room) number
\end{itemize}
\subsection{Generating course programs}
@@ -404,7 +453,7 @@ e-learning platform
The \jmacro{labeling} environment is defined by the KOMA classes.
-The package provides a fallback, however, if another class is used.
+The package provides a fallback, however, if a different class is used.
\item \jcsmacro{makebeamerprogram[<options>]}: Generates
a beamer-suited lecture program from the metadata in the form
@@ -428,7 +477,7 @@ a beamer-suited lecture program from the metadata in the form
\joption{<options>} can be one of
\begin{itemize}
\item \joption{title=<title>}: Program title (<Heading>)
-\item \joption{options=<bfoptions>}: Beamer frame options. Note that yey-value
+\item \joption{options=<bfoptions>}: Beamer frame options. Note that key-value
beamer frame options need to be embraced, as in\\
\jcsmacro{makebeamerprogram[options=\{shrink=10\}]}
\end{itemize}
@@ -464,7 +513,60 @@ So if you specify your session with a keyword via the \joption{bibsec}
option, and tag your Bib\TeX{} database entries with that keyword,
you will get a list of session-specific literature.
-\clearpage
+
+\subsection{Generating student presentation lists}\label{sec:preslists}
+
+The package provides macros to produce a list with the name of the students presenting
+stuff, or generally being particularly involved, in specific sessions.
+
+The names of the presenting students are assigned in the metadata to specific sessions
+by means of the \joption{presstudents} option of the \jcsmacro{NewSession} command
+(see above sec.~\ref{ses-add}). The macro
+
+\begin{quote}
+\jcsmacro{makepreslist}
+\end{quote}
+outputs a list that consists of the session dates and titles as well as the names of the
+presenting students, i.\,e., it expands to code in the form:
+
+\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single]
+\begin{labeling}{\lecprogramlistindent}
+\item[<short date>] <session full title>\par
+ <presenting students>
+...
+\end{labeling}
+\end{lstlisting}
+If no presenting students have been assigned to a given session,
+an em-dash (---) is output instead.
+
+A starred version of the macro outputs a ``blank'' presentation list that just consists of
+the session dates and titles with enough space to fill in student names manually.
+This version might be useful to schedule the presentations of your students in the first
+session:
+
+\begin{quote}
+\jcsmacro{makepreslist*}
+\end{quote}
+For beamer presentations, finally, a specific macro
+
+\begin{quote}
+\jcsmacro{makebeamerpreslist}
+\end{quote}
+is provided (with no starred version). The main difference is the more compact design that makes
+the list fit better on a slide.
+
+If you want to start your presentation list only from a given session number (e.\,g., since you
+do not have any presentations in the first session of the course), you can use
+
+\begin{quote}
+\jcsmacro{setfirstpressession\{<session number>\}}
+\end{quote}
+to set the first session number to be printed on the list. Likewise,
+\begin{quote}
+\jcsmacro{setlastpressession\{<session number>\}}
+\end{quote}
+can be used to determine the last session number to be printed on the list.
+
\section{Retrieving session-specific information\label{sec:session-specific-info}}
@@ -582,8 +684,6 @@ package. By default, the two formats are defined as follows:
\newcommand*\lecdateshortformat{%
\THEDAY.\,\twodigit{\THEMONTH}.}
\end{lstlisting}
-
-
Use \jfcsmacro{renewcommand*} to redefine them.
@@ -596,25 +696,18 @@ following macro
\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single]
\newcommand*\leccancel{\ -- keine \lectypesession}
\end{lstlisting}
-
-
The default program string used in beamer frames can be changed by
redefining
\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single]
\newcommand*\lecprogram{Programm}
\end{lstlisting}
-
-
The indentation used in program lists can be changed by redefining
\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single]
\newcommand*\lecprogramlistindent{\textbf{88.\,88.}}
\end{lstlisting}
-
-
-Again, use \jfcsmacro{renewcommand{*}} to redefine
-those.
+Again, use \jfcsmacro{renewcommand{*}} for the redefinitions.
\subsection{Using styles}\label{sec:styles}
@@ -640,10 +733,242 @@ If you provide me with other style files, in particular
translations to other languages than German (but also other university conventions), I consider
them for inclusion to the package.
+\clearpage
+
+\part{Companion packages}
+
+\section{The \jsmt\ package}
+
+This section of the manual describes the user interface of the \jsmt\
+package. Please also refer to the example files included in the bundle.
+
+\subsection{Aim of this package}
+
+This package provides a way to easily generate tables to track the members of a
+university course (a table where you, or your students, can fill in names,
+student IDs and e-mail adresses) and a table to record their presence,
+should this be a requisite at your institute.
-\section{History}
+The package somewhat integrates with \jslp\ and can use the
+metadata and styles of that package where necessary (see part~I of this
+manual for details on metadata and styles).
+Since the package was written for my own needs, the table design might not fit yours.
+However, with some basic LaTeX knowledge, it should not be too hard to adapt it.
+Like for \jslp, the default strings are German.
+However, it is possible to customize and translate them.
+This is described later in this manual.
+
+
+\subsection{Requirements of \jsmt}\label{sec:req-jsmt}
+
+The following packages are required and loaded by \jsmt:
\begin{itemize}
+ \setlength\itemsep{2pt}
+ \item \textsf{datatool} (only if the option \joption{datafile} is used)
+ \item \textsf{ifthen}
+ \item \textsf{calc}
+ \item \textsf{longtable}
+ \item \textsf{hhline}
+ \item \textsf{xkeyval}
+\end{itemize}
+\jsmt\ can be used independently of
+\jslp\ to some degree. The latter package is only required for specific
+features (see below) and must be loaded explicitly in that case.
+
+\subsection{Loading the package}
+
+The package is loaded as usual:
+\begin{quote}
+\jcsmacro{usepackage[<options>]\{jsmembertable\}}
+\end{quote}
+Currently, one package option is available:
+\begin{itemize}
+ \item \joption{datafile=<csv-file>}: Use external student data file (see sec.~\ref{sec:ext-data}).
+\end{itemize}
+
+
+\subsection{Loading external data}\label{sec:ext-data}
+
+Both course member and presence tables can be filled with external student data. To this end,
+the package option \joption{datafile=<csv-file>} is provided. If it is used, the package tries
+to access a comma-separated data file. Note that the external file must have the extension \emph{.csv},
+and the extension must be omitted in the option, so
+\begin{quote}
+ \jcsmacro{usepackage[datafile=mystudents]\{jsmembertable\}}
+\end{quote}
+loads the file \texttt{mystudents.csv}.
+
+The external csv file must follow the following structure:
+
+\begin{lstlisting}[language={},basicstyle={\small\ttfamily},frame=single]
+Prename1, Surname1, StudentID1, Email1
+Prename2, Surname2, StudentID2, Email2
+...
+\end{lstlisting}
+
+\subsection{Generating a course member table}
+
+In order to generate a course member table, simply insert
+
+\begin{quote}
+\jcsmacro{makemembertable\{<number of blank rows>\}}
+\end{quote}
+If an external data file has been loaded, \joption{<number of blank rows>} can either be empty or a positive
+integer value. If no external data file has been loaded, \joption{<number of blank rows>} \emph{must} be a
+positive integer value.
+
+If no external data file has been loaded, the command generates a table with \joption{<number of blank rows>}
+blank rows, to which your students can fill in their name, student ID and e-mail address.
+
+If an external data file has been loaded, an appropriate number of rows is generated and the
+respective student data is filled in. Additionally, \joption{<number of blank rows>} blank rows are
+\emph{appended} after the filled-in rows (for the late birds that have not registered themselves yet).
+If the command's argument is empty or \joption{0}, no extra rows are appended.
+
+The number of columns of the member table is always 3, tracking \emph{student id},
+\emph{name} and \emph{e-mail address}.
+If you want to have more or less columns, you need to redefine the
+\jcsmacro{makemembertable} command.
+The header strings, though, can easily be changed by redefining the following three
+macros (using \jfcsmacro{renewcommand*}), for instance like this:
+
+\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single]
+% Student Name
+\renewcommand*\jsmnameheader{\textbf{Student name}}
+% Student ID
+\renewcommand*\jsmidheader{\textbf{Student ID}}
+% Email
+\renewcommand*\jsemailheader{\textbf{Email address}}
+\end{lstlisting}
+If you use the \jslp\ package, you can use the \jslp\
+style files in order to store those redefinitions globally.
+See the \texttt{german-default.lps} style file for a model.\footnote{%
+Note that within styles, you must use \jfcsmacro{newcommand*} instead of
+\jfcsmacro{renewcommand*}, since the styles are loaded before the \jsmt\ package.}
+Of course, you need to load \jslp\ with the respective \joption{style} option then
+(\emph{before} \jsmt).
+See above section~\ref{sec:styles} for details on styles.
+
+\subsection{Generating a presence table}
+
+Presence tables consist of rows with your students' names and columns for each session
+of your course where each student can sign and mark her/his presence in the respective
+session. As with the member tables, the package can fill in student data (the student
+name in this case) from an external data file if the \joption{datafile} package option
+is used.
+
+The package provides two kinds of presence tables: A presence table with real session dates
+and a simpler one just with session numbers (``Session~1'' etc.). The first variant requires
+the \jslp\ package, since it uses the course metadata in order to generate a matching number
+of columns with the respective session date in the column headers. The second one also works
+without \jslp\, since the session numbers can be simply derived from an internal counter and
+you can manually set the total number of sessions.
+
+Note that if you use \jslp, you must load the \jslp\ package and also input the metadata file
+\emph{before} \jsmt.
+
+The first presence table variant (with real session dates) is produced with the following macro:
+
+\begin{quote}
+\jcsmacro{makeprestable\{<number of blank rows>\}}
+\end{quote}
+As with the member table, an appropriate number of rows, pre-filled with student data, is
+generated if an external data file has been loaded. Then, \joption{<number of blank rows>}
+blank rows are \emph{appended} after the filled-in rows (if \joption{<number of blank rows>}
+is not empty or \joption{0}). If no external data file has been loaded, simply a table with
+\joption{<number of blank rows>} blank rows is constructed.
+
+The number of columns/sessions is automatically calculated from the metadata. If you want a different
+number, you can use the optional argument of the command to override this calculation:
+
+\begin{quote}
+\jcsmacro{makeprestable[<number of sessions>]\{<number of blank rows>\}}
+\end{quote}
+The second kind of presence table (with session numbers instead of session dates) is provided
+via the starred version of the command:
+
+\begin{quote}
+\jcsmacro{makeprestable*[<number of sessions>]\{<number of blank rows>\}}
+\end{quote}
+Like with the unstarred version, if the \jslp\
+metadata is used/available, the number of columns/sessions is calculated from the metadata.
+Again, the optional argument can be used to override this calculation.
+If the \jslp\ metadata is not used/available, and no session number is given via the optional
+argument, the table will use a preset number of sessions, namely 15. The starred version uses,
+like the unstarred variant, the external student data if the \joption{datafile} option has been
+used.
+
+For courses of 2--16 sessions, the package tries to produce reasonably sized tables that
+fit the page width (more than 16 sessions are currently not supported).
+From 7 sessions upwards, two separate tables, each for half a term,
+are produced. In general, it is assumed that you use landscape page format for presence tables.
+The tables will be too wide for portrait page format. Also, the tables have been optimized for A4
+page size.
+
+The header strings of the presence tables can be adjusted by redefining the following
+macros (using \jfcsmacro{renewcommand*}), for instance like this:
+
+\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single]
+% Student Name
+\renewcommand*\jsmnameheader{\textbf{Student name}}
+% "Session" string for the starred macro version
+\renewcommand*\jsmsession{Session}}
+% Session header for the starred macro version
+% (\thesession outputs the counter value)
+\renewcommand*\jsmsessionheader{\textbf{\jsmsession\ \thesession}}
+% The advice for students to sign
+\renewcommand*\jssigheader{Students' signature}
+\end{lstlisting}
+Again, if you use \jslp, you can use the \jslp\
+style files in order to store those redefinitions globally.
+See the \texttt{german-default.lps} style file for a model.\footnote{%
+Note that within styles, you must use \jfcsmacro{newcommand*} instead of
+\jfcsmacro{renewcommand*}, since the styles are loaded before the \jsmt\ package.}
+Of course, you need to load \jslp\ with the respective \joption{style} option then
+(\emph{before} \jsmt).
+See above section~\ref{sec:styles} for details on styles.
+
+Note, furthermore, that the ``Session'' string (value of \jcsmacro{jsmsession}) is by default
+linked to \jslp's \jcsmacro{lectypesession} value if
+\jslp\ is loaded before \jsmt. So if \jcsmacro{lectypesession} fits, you do not have to redefine
+\jcsmacro{jsmsession}.
+
+
+\clearpage
+
+\appendix
+
+\part{Appendix}
+
+\section{Acknowledgements}
+
+I could not have written the packages of the \jslp\ bundle without the expertise of the incredible \LaTeX\
+community. The packages heavily rely on functions and features
+provided by other packages (which are listed in sec.~\ref{sec:req-jslp} and \ref{sec:req-jsmt}).
+I am deeply indepted to the authors of those packages.
+Furthermore, \emph{stackexchange} proved to be a great source of knowledge which
+provided me with solutions for specific tasks:
+\jsmt\ heavily draws on code for dynamic table generation that has been
+provided by Herbert Voss (\url{http://tex.stackexchange.com/a/7594}); \jslp\ and \jsmt\
+use code to test for \jfcsmacro{romannumeral} arguments which has been taken from
+a \emph{stackexchange} post by Enrico Gregorio (\url{http://tex.stackexchange.com/a/50131}).
+Thank you, Herbert and Enrico! Finally, Dominik Waßenhoven tested the package and provided
+me with multiple suggestions, which effectively manifested in major new features such as
+the \jslp\ style files. Thanks, Dominik.
+
+\section{Release History}
+
+\begin{itemize}
+\item 2015/07/15 (v. 1.1):
+ \begin{itemize}
+ \item Include and document the \jsmt\ package.
+ \item Add support for student presentation lists. This introduces the new macros
+ \jcsmacro{makepreslist}, \jcsmacro{makepreslist*},
+ \jcsmacro{makebeamerpreslist}, \jcsmacro{setfirstpressession} and
+ \jcsmacro{setlastpressession}.
+ \item Major revision of the manual.
+ \end{itemize}
\item 2015/07/07 (v. 1.0.2):
\begin{itemize}
\item Permit \jcsmacro{LecType} and \jcsmacro{LecYear} in the document body again
@@ -658,25 +983,25 @@ them for inclusion to the package.
\begin{itemize}
\item Lecture types and term types are not hardcoded anymore and can be freely
modified and extended via \jcsmacro{DefLecType} and \jcsmacro{DefSemType}.
- \item Add option to add the instructor's name to both the course (via
+ \item Add option to add the instructor's name to both the course (via macro
\jcsmacro{LecInstructor} or \joption{instructor} package option) and
to specific sessions (via \joption{instructor} option of
\jcsmacro{NewSession}).
- \item Add option to add names of presenting students to a session (via
- \joption{presstudents} option).
+ \item Add option to add names of presenting students to a session (via option
+ \joption{presstudents}).
\item Add option to record the office number (\jcsmacro{SetOfficeNumber}
or package option \joption{officenumber}).
\item Fix expansion issue in \joption{options} option of \jcsmacro{makebeamerprogram}.
\item Add option to automatically shift all subsequent sessions by a certain value
after every \emph{n}th session (\jcsmacro{SetAutoOffset}).
- \item Add \joption{cologne} style file.
+ \item Add \joption{cologne} style file (suggested by Dominik Waßenhoven).
\end{itemize}
\item 2015/02/08 (v. 0.9):
\begin{itemize}
\item Add a way to adjust the interval between two sessions
(\joption{interval} package option and \jcsmacro{LecInterval} macro).
\item Add a way to shift session dates from the regular interval
- (macro \jcsmacro{SetLecOffset}).
+ (by means of macro \jcsmacro{SetLecOffset}).
\item Add option and macro to set a room for the course as well as
a session-specific room.
\item Rename option \joption{weeks} of the \jcsmacro{SetBreaks} macro
@@ -695,9 +1020,9 @@ them for inclusion to the package.
\item 2015/01/04 (v.\,0.7):
\begin{itemize}
\item Add macro for resetting \jfcsmacro{today}.
- \item Minor corrections in the manual.
+ \item Minor corrections of the manual.
\end{itemize}
-\item 2014/12/12 (v.\,0.6\,b): Minor corrections in the manual and example files.
+\item 2014/12/12 (v.\,0.6\,b): Minor corrections of the manual and example files.
\item 2014/12/12 (v.\,0.6): Initial release to CTAN.
\end{itemize}
diff --git a/Master/texmf-dist/tex/latex/jslectureplanner/cologne.lps b/Master/texmf-dist/tex/latex/jslectureplanner/cologne.lps
index 729dffa1001..da7d17534de 100644
--- a/Master/texmf-dist/tex/latex/jslectureplanner/cologne.lps
+++ b/Master/texmf-dist/tex/latex/jslectureplanner/cologne.lps
@@ -3,7 +3,7 @@
%%
%% University of Cologne style for lecture planning
%%
-%% This file is part of the jslectureplanner package.
+%% This file is part of the jslectureplanner bundle.
%%
%% Author: Juergen Spitzmueller <juergen.spitzmueller@univie.ac.at>
%%
diff --git a/Master/texmf-dist/tex/latex/jslectureplanner/german-default.lps b/Master/texmf-dist/tex/latex/jslectureplanner/german-default.lps
index 7252eae826e..4a23ae70cf9 100644
--- a/Master/texmf-dist/tex/latex/jslectureplanner/german-default.lps
+++ b/Master/texmf-dist/tex/latex/jslectureplanner/german-default.lps
@@ -3,7 +3,7 @@
%%
%% Default German style for lecture planning
%%
-%% This file is part of the jslectureplanner package.
+%% This file is part of the jslectureplanner bundle.
%%
%% Author: Juergen Spitzmueller <juergen.spitzmueller@univie.ac.at>
%%
@@ -23,6 +23,10 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Default strings (German) used by the jslectureplanner package
+%
+
% Lecture types
\DefLecType{vl}{VL}{Vorlesung}{Vorlesung}% lecture
\DefLecType{ps}{PS}{Proseminar}{Sitzung}% undergraduate seminar
@@ -52,4 +56,26 @@
% Indentation of program list
\renewcommand*\lecprogramlistindent{\textbf{88.\,88.}}
+%
+% Strings used by the jsmembertable package
+% NOTE that these have to be defined via \newcommand
+%
+
+% 1.) Session column header
+\newcommand*\jsmsession{\lectypesession}%
+\newcommand*\jsmsessionheader{\textbf{\thesession.~\jsmsession}}%
+
+% 2.) Student Name
+\newcommand*\jsmnameheader{\textbf{Name, Vorname}}
+
+% 3.) Student ID
+\newcommand*\jsmidheader{\textbf{Matrikel-Nr.}}
+
+% 3.) E-Mail
+\newcommand*\jsemailheader{\textbf{E-Mail-Adresse}}
+
+% 4.) Signature advice
+\newcommand*\jssigheader{Unterschrift Teilnehmer*innen}
+
+
% Finis
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
%
diff --git a/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty b/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty
new file mode 100644
index 00000000000..82f0eb053d5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/jslectureplanner/jsmembertable.sty
@@ -0,0 +1,696 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% File jsmembertable.sty
+%%
+%% Generate a longtable suitable for course member or presence lists
+%%
+%% 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
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2003/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% The Current Maintainer of this work is Juergen Spitzmueller.
+%%
+%% Code repository and issue tracker: https://github.com/jspitz/jslectureplanner
+%%
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\filedate{2015/07/15}
+\def\fileversion{1.1}
+\def\filename{jsmembertable.sty}
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{jsmembertable}
+ [\filedate\space v\fileversion\space JS Course member table generation]
+
+%
+% REQUIRED PACKAGES
+%
+
+\RequirePackage{ifthen}
+\RequirePackage{calc}
+\RequirePackage{array}
+\RequirePackage{longtable}
+\RequirePackage{hhline}
+\RequirePackage{xkeyval}
+
+%
+% PACKAGE OPTIONS
+%
+
+\newif\if@datatool\@datatoolfalse
+\def\jsmt@datafile{}
+\define@key{mem}{datafile}{%
+ \def\jsmt@datafile{#1.csv}
+ \@datatooltrue
+}
+\DeclareOptionX{datafile}{\setkeys{mem}{datafile=#1}}
+\ProcessOptionsX
+
+%
+% OPT-IN PACKAGES
+%
+
+% Load datatool if necessary
+\if@datatool
+ \RequirePackage{datatool}
+ \DTLloadrawdb[noheader,keys={fname,sname,mid,email}]{data}{\jsmt@datafile}
+ \dtlsort{sname,fname}{data}{\dtlicompare}
+\fi
+
+%
+% STRETCH ROW HEIGHT
+%
+
+\renewcommand\arraystretch{2}
+
+%
+% COUNTERS
+%
+
+% Total members
+\newcounter{members}
+% Current member
+\newcounter{member}
+% Tabular row
+\newcounter{tabrow}
+% session (pres. list column)
+\newcounter{session}
+% Total sessions
+% (if jslectureplanner is used,
+% this is already defined)
+\@ifundefined{thesnum}{%
+ \newcounter{snum}
+ \setcounter{snum}{15}
+}{}
+
+
+%
+% STRINGS
+%
+
+% 1.) Session
+% Try to retrieve from jslectureplanner metadata
+\@ifundefined{\lectypesession}{%
+ \providecommand*\jsmsession{Sitzung}%
+}{%
+ \providecommand*\jsmsession{\lectypesession}%
+}
+\providecommand*\jsmsessionheader{\textbf{\thesession.~\jsmsession}}
+
+% 2.) Student Name
+\providecommand*\jsmnameheader{\textbf{Name, Vorname}}
+
+% 3.) Student ID
+\providecommand*\jsmidheader{\textbf{Matrikel-Nr.}}
+
+% 3.) E-Mail
+\providecommand*\jsemailheader{\textbf{E-Mail-Adresse}}
+
+% 4.) Signature advice
+\providecommand*\jssigheader{Unterschrift Teilnehmer*innen}
+
+
+%
+% GET VALUES
+%
+
+\newif\iffixedseshead\fixedsesheadfalse
+
+% Get the session date (self-incrementing)
+\newcommand*\sescolhead{%
+ \stepcounter{session}%
+ \iffixedseshead
+ \jsmsessionheader%
+ \else
+ \@ifundefined{SessionDate}{%
+ \PackageWarning{jsmembertable}{%
+ Command makemembertable (unstarred) requires jslectureplanner.\MessageBreak
+ Falling back to starred version.}%
+ \jsmsessionheader%
+ }{%
+ \textbf{\SessionDate{\thesession}}%
+ }
+ \fi
+}
+
+% Get member count (self-incrementing)
+\newcommand*\getmembernr{%
+ \stepcounter{member}%
+ \themember%
+}
+
+
+%
+% Define tokens for expanding table rows
+% (courtesy of Herbert Voss at http://tex.stackexchange.com/a/7594)
+%
+
+\newtoks\@tabtoks
+\newcommand\addtabtoks[1]{\@tabtoks\expandafter{\the\@tabtoks#1}}
+\newcommand*\resettabtoks{\@tabtoks{}}
+\newcommand*\printtabtoks{\the\@tabtoks}
+
+
+%
+% GENERATE A MEMBER TABLE
+% (code for dynamic row generation courtesy of Herbert Voss
+% at http://tex.stackexchange.com/a/7594)
+%
+
+\newcommand\makemembertable[1]{%
+ \ifx\relax#1\relax\else
+ % test if the input is a number
+ % courtesy of egreg at http://tex.stackexchange.com/a/50131
+ \if\relax\detokenize\expandafter{\romannumeral-0#1}\relax
+ \setcounter{members}{#1}%
+ \else
+ \PackageError{jsmembertable}{%
+ Argument of 'makemembertable' must be\MessageBreak
+ a positive integer number\MessageBreak
+ ('#1' was given instead)}{}%
+ \fi
+ \fi
+ \resettabtoks
+ \loop\ifnum\thetabrow<\themembers\relax
+ \stepcounter{tabrow}
+ \addtabtoks{\getmembernr & & & \tabularnewline\hline}%
+ \repeat
+ \begin{longtable}{|r|>{\raggedright}p{0.2\textwidth}|>{\raggedright}%
+ p{0.35\textwidth}|>{\raggedright}p{0.32\textwidth}|}
+ \cline{2-4}
+ \multicolumn{1}{l|}{} & \jsmidheader & \jsmnameheader%
+ & \jsemailheader\tabularnewline
+ \hhline{-===}
+ \endhead
+ \if@datatool
+ \DTLforeach*{data}{%
+ \jsmt@firstname=fname,\jsmt@surname=sname,\jsmt@mid=mid,\jsmt@email=email}{%
+ \DTLiffirstrow{}{\tabularnewline\hline}%
+ \getmembernr & \jsmt@mid & \jsmt@surname, \jsmt@firstname & \jsmt@email%
+ }%
+ \tabularnewline\hline
+ \fi%
+ \printtabtoks%
+ \end{longtable}
+}
+
+
+%
+% GENERATE PRESENCE TABLES
+%
+
+\newcommand*{\makeprestable}{%
+ \@ifstar{%
+ \fixedsesheadtrue\@makeprestable%
+ }{%
+ \fixedsesheadfalse\@makeprestable%
+ }%
+}
+
+\newcommand*\@makeprestable[2][]{
+ \ifx\relax#1\relax\else\setcounter{snum}{#1}\fi
+ \@@makeprestable{#2}
+}
+
+% Width of session columns (table 1)
+\newlength\sescolwidth
+% Width of session columns (table 2)
+\newlength\sescolwidthtwo
+
+
+%
+% TEMPLATES FOR DYNAMIC TABLES (2--16 SESSIONS)
+%
+
+\newcommand\inittemplates{%
+% Default table design (16 sessions)
+\setlength\sescolwidth{.075\textwidth}
+\setlength\sescolwidthtwo{.075\textwidth}
+\def\bodyrowone##1{##1 & & & & & & & & }
+\def\bodyrowtwo##1{##1 & & & & & & & & }
+\def\visumcell{\raisebox{8pt}{\footnotesize\jssigheader}}
+\def\headerpone{%
+ \cline{2-9}
+ \multicolumn{1}{c|}{} & \multicolumn{8}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+}
+\def\headerptwo{%
+ \cline{2-9}
+ \multicolumn{1}{c|}{} & \multicolumn{8}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+}
+\def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+}
+\def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.24\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|}
+}
+%
+% Table design: 15 sessions
+\ifnum\thesnum=15
+ \setlength\sescolwidth{.085\textwidth}
+ \setlength\sescolwidthtwo{.075\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & & & & & }
+ \def\headerpone{%
+ \cline{2-8}
+ \multicolumn{1}{c|}{} & \multicolumn{7}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-9}
+ \multicolumn{1}{c|}{} & \multicolumn{8}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.24\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 14 sessions
+\ifnum\thesnum=14
+ \setlength\sescolwidth{.085\textwidth}
+ \setlength\sescolwidthtwo{.085\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & & & & }
+ \def\headerpone{%
+ \cline{2-8}
+ \multicolumn{1}{c|}{} & \multicolumn{7}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-8}
+ \multicolumn{1}{c|}{} & \multicolumn{7}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 13 sessions
+\ifnum\thesnum=13
+ \setlength\sescolwidth{.085\textwidth}
+ \setlength\sescolwidthtwo{.102\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & & & }
+ \def\headerpone{%
+ \cline{2-8}
+ \multicolumn{1}{c|}{} & \multicolumn{7}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-7}
+ \multicolumn{1}{c|}{} & \multicolumn{6}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 12 sessions
+\ifnum\thesnum=12
+ \setlength\sescolwidth{.102\textwidth}
+ \setlength\sescolwidthtwo{.102\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & & & }
+ \def\headerpone{%
+ \cline{2-7}
+ \multicolumn{1}{c|}{} & \multicolumn{6}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead& \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-7}
+ \multicolumn{1}{c|}{} & \multicolumn{6}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead& \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 11 sessions
+\ifnum\thesnum=11
+ \setlength\sescolwidth{.102\textwidth}
+ \setlength\sescolwidthtwo{.125\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & & }
+ \def\headerpone{%
+ \cline{2-7}
+ \multicolumn{1}{c|}{} & \multicolumn{6}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead& \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-6}
+ \multicolumn{1}{c|}{} & \multicolumn{5}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 10 sessions
+\ifnum\thesnum=10
+ \setlength\sescolwidth{.125\textwidth}
+ \setlength\sescolwidthtwo{.125\textwidth}
+ \def\bodyrowone##1{##1 & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & & }
+ \def\headerpone{%
+ \cline{2-6}
+ \multicolumn{1}{c|}{} & \multicolumn{5}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-6}
+ \multicolumn{1}{c|}{} & \multicolumn{5}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 9 sessions
+\ifnum\thesnum=9
+ \setlength\sescolwidth{.125\textwidth}
+ \setlength\sescolwidthtwo{.161\textwidth}
+ \def\bodyrowone##1{##1 & & & & & }
+ \def\bodyrowtwo##1{##1 & & & & }
+ \def\headerpone{%
+ \cline{2-6}
+ \multicolumn{1}{c|}{} & \multicolumn{5}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-5}
+ \multicolumn{1}{c|}{} & \multicolumn{4}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 8 sessions
+\ifnum\thesnum=8
+ \setlength\sescolwidth{.161\textwidth}
+ \setlength\sescolwidthtwo{.161\textwidth}
+ \def\bodyrowone##1{##1 & & & & }
+ \def\bodyrowtwo##1{##1 & & & & }
+ \def\headerpone{%
+ \cline{2-5}
+ \multicolumn{1}{c|}{} & \multicolumn{4}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\headerptwo{%
+ \cline{2-5}
+ \multicolumn{1}{c|}{} & \multicolumn{4}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+ \def\ltstarttwo{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}%
+ |>{\raggedright}p{\sescolwidthtwo}|>{\raggedright}p{\sescolwidthtwo}|}
+ }
+\fi
+%
+% Table design: 7 sessions
+\ifnum\thesnum=7
+ \setlength\sescolwidth{.085\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & & }
+ \def\headerpone{%
+ \cline{2-8}
+ \multicolumn{1}{c|}{} & \multicolumn{7}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+\fi
+%
+% Table design: 6 sessions
+\ifnum\thesnum=6
+ \setlength\sescolwidth{.102\textwidth}
+ \def\bodyrowone##1{##1 & & & & & & }
+ \def\headerpone{%
+ \cline{2-7}
+ \multicolumn{1}{c|}{} & \multicolumn{6}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead& \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|}
+ }
+\fi
+%
+% Table design: 5 sessions
+\ifnum\thesnum=5
+ \setlength\sescolwidth{.125\textwidth}
+ \def\bodyrowone##1{##1 & & & & & }
+ \def\headerpone{%
+ \cline{2-6}
+ \multicolumn{1}{c|}{} & \multicolumn{5}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead
+ & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+\fi
+%
+% Table design: 4 sessions
+\ifnum\thesnum=4
+ \setlength\sescolwidth{.161\textwidth}
+ \def\bodyrowone##1{##1 & & & & }
+ \def\headerpone{%
+ \cline{2-5}
+ \multicolumn{1}{c|}{} & \multicolumn{4}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.27\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+\fi
+%
+% Table design: 3 sessions
+\ifnum\thesnum=3
+ \setlength\sescolwidth{.2\textwidth}
+ \def\bodyrowone##1{##1 & & & }
+ \def\headerpone{%
+ \cline{2-4}
+ \multicolumn{1}{c|}{} & \multicolumn{3}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.33\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}%
+ |>{\raggedright}p{\sescolwidth}|}
+ }
+\fi
+%
+% Table design: 2 sessions
+\ifnum\thesnum=2
+ \setlength\sescolwidth{.3\textwidth}
+ \def\bodyrowone##1{##1 & & }
+ \def\headerpone{%
+ \cline{2-3}
+ \multicolumn{1}{c|}{} & \multicolumn{2}{c|}{\visumcell}\tabularnewline[-12pt]
+ \hline
+ \jsmnameheader & \sescolhead & \sescolhead\tabularnewline
+ }
+ \def\ltstartone{%
+ \begin{longtable}[l]{|>{\raggedright}p{0.35\textwidth}|>{\raggedright}p{\sescolwidth}|>{\raggedright}p{\sescolwidth}|}
+ }
+\fi
+}% close \inittemplates
+%
+% End templates
+
+
+%
+% ROUTINE FOR DYNAMIC PRESENCE TABLE
+% \makeprestable{rows}
+% (code for dynamic row generation courtesy of Herbert Voss
+% at http://tex.stackexchange.com/a/7594)
+
+\newcommand\@@makeprestable[1]{%
+ \inittemplates
+ \ifx\relax#1\relax\else
+ % test if the input is a number
+ % courtesy of egreg at http://tex.stackexchange.com/a/50131
+ \if\relax\detokenize\expandafter{\romannumeral-0#1}\relax
+ \setcounter{members}{#1}%
+ \else
+ \PackageError{jsmembertable}{%
+ Argument of 'makeprestable' must be\MessageBreak
+ a positive integer number\MessageBreak
+ ('#1' was given instead)}{}%
+ \fi
+ \fi
+ \resettabtoks
+ \loop\ifnum\thetabrow<\themembers\relax
+ \stepcounter{tabrow}
+ \addtabtoks{\bodyrowone{}\tabularnewline\hline}%
+ \repeat
+ \ltstartone
+ \headerpone
+ \hline
+ \hline
+ \endhead
+ \if@datatool%
+ \DTLforeach*{data}{%
+ \jsmt@firstname=fname,\jsmt@surname=sname}{%
+ \DTLiffirstrow{}{\tabularnewline\hline}%
+ \bodyrowone{\jsmt@surname, \jsmt@firstname}%
+ }%
+ \tabularnewline\hline
+ \fi%
+ \printtabtoks
+ \end{longtable}
+ \ifnum\thesnum>7
+ \clearpage
+ \setcounter{tabrow}{0}
+ \ifx\relax#1\relax\else
+ % test if the input is a number
+ % courtesy of egreg at http://tex.stackexchange.com/a/50131
+ \if\relax\detokenize\expandafter{\romannumeral-0#1}\relax
+ \setcounter{members}{#1}%
+ \else
+ \PackageError{jsmembertable}{%
+ Argument of 'makeprestable' must be\MessageBreak
+ a positive integer number\MessageBreak
+ ('#1' was given instead)}{}%
+ \fi
+ \fi
+ \resettabtoks
+ \loop\ifnum\thetabrow<\themembers\relax
+ \stepcounter{tabrow}
+ \addtabtoks{\bodyrowtwo{}\tabularnewline\hline}%
+ \repeat
+ \ltstarttwo
+ \headerptwo
+ \hline
+ \hline
+ \endhead
+ \if@datatool
+ \DTLforeach*{data}{%
+ \jsmt@firstname=fname,\jsmt@surname=sname}{%
+ \DTLiffirstrow{}{\tabularnewline\hline}%
+ \bodyrowtwo{\jsmt@surname, \jsmt@firstname}%
+ }%
+ \tabularnewline\hline
+ \fi%
+ \printtabtoks
+ \end{longtable}
+ \fi
+}
+
+% Finis!
+%%%