| 1 |
%% |
| 2 |
%% This is file `sesstime-samp.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% sesstime.dtx (with options: `sample') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2016-2026 Niklas Beisert |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% https://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 17 |
%% version 2008 or later. |
| 18 |
%% |
| 19 |
\NeedsTeXFormat{LaTeX2e}[1996-12-01] |
| 20 |
\ProvidesFile{sesstime-samp.tex}[2026-03-23 v1.1.4 sample for sesstime] |
| 21 |
\documentclass[12pt]{article} |
| 22 |
|
| 23 |
\usepackage{geometry} |
| 24 |
\geometry{layout=a4paper} |
| 25 |
\geometry{paper=a4paper} |
| 26 |
\geometry{margin=3cm} |
| 27 |
\parindent0pt |
| 28 |
|
| 29 |
\RequirePackage{sesstime} |
| 30 |
|
| 31 |
\timingconfigure{autosession=30} |
| 32 |
%%\timingconfigure{print=false} |
| 33 |
|
| 34 |
\newcommand{\sessiondate}[1]{\ifcase#1\\ |
| 35 |
\or Mon 09:00% |
| 36 |
\or Mon 10:00% |
| 37 |
\or Tue 09:00% |
| 38 |
\or Fri 11:00% |
| 39 |
\or Fri 12:00% |
| 40 |
\else END% |
| 41 |
\fi} |
| 42 |
|
| 43 |
\renewcommand{\timingprintsession}[2]{\timingprintremark{% |
| 44 |
lecture #1\\ |
| 45 |
\sessiondate{#1}% |
| 46 |
\timingsessiontotal[0]{#1}\ifnum\timingreturn>0% |
| 47 |
\\(\timingreturn\ min)% |
| 48 |
\ifnum #2>0\\at #2 min\fi\fi\vphantom{g}}} |
| 49 |
|
| 50 |
\timingconfigure{depthsec=3,depthpar=4} |
| 51 |
|
| 52 |
\renewcommand{\timingsessionline}[5]{\ \\% |
| 53 |
\makebox[2em][r]{#1. }% |
| 54 |
\makebox[5em][l]{\sessiondate{#1}:}% |
| 55 |
\makebox[2.5em][r]{#3. }% |
| 56 |
\makebox[10em][l]{\def\tmp{#5}\def\empty{}% |
| 57 |
\ifx\tmp\empty #4\else\S\ #5\fi}% |
| 58 |
\timingsessiontotal[0]{#1}\ifnum\timingreturn>0% |
| 59 |
\ [\timingreturn\ min\ifnum #2>0; #2 min into\fi]\fi} |
| 60 |
|
| 61 |
\def\lorem{Lorem ipsum dolor sit amet, consectetur adipisici elit, |
| 62 |
sed eiusmod tempor incidunt ut labore et dolore magna aliqua. |
| 63 |
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris |
| 64 |
nisi ut aliquid ex ea commodi consequat. |
| 65 |
Quis aute iure reprehenderit in voluptate velit esse |
| 66 |
cillum dolore eu fugiat nulla pariatur. |
| 67 |
Excepteur sint obcaecat cupiditat non proident, |
| 68 |
sunt in culpa qui officia deserunt mollit anim id est laborum.\par} |
| 69 |
|
| 70 |
\begin{document} |
| 71 |
|
| 72 |
\section{one} |
| 73 |
\timingchapter |
| 74 |
\timingchapterlabel{one} |
| 75 |
\timingstart{0} |
| 76 |
total chapter duration: \timingchaptertotal{one}\timingreturn\ min\par |
| 77 |
\lorem |
| 78 |
\lorem |
| 79 |
\timingsplit{10} |
| 80 |
\lorem |
| 81 |
\timingsplit{15} |
| 82 |
\lorem |
| 83 |
\lorem |
| 84 |
\timingstop{25} |
| 85 |
\subsection{one.one} |
| 86 |
\timingstart{0} |
| 87 |
\lorem |
| 88 |
\subsection{one.two} |
| 89 |
\timingnext{15} |
| 90 |
\lorem |
| 91 |
\timingstop*{10} |
| 92 |
\timingchapterend |
| 93 |
|
| 94 |
\section{two} |
| 95 |
\timingchapter |
| 96 |
total following block: \timingblocktotal*\timingreturn\ min\par |
| 97 |
\timingstart{0:15} |
| 98 |
total current block: \timingblocktotal\timingreturn\ min\par |
| 99 |
\lorem |
| 100 |
\subsection{two.one} |
| 101 |
\timingsplit*{10} |
| 102 |
\lorem |
| 103 |
\timingstart{0} |
| 104 |
\subsection{two.two} |
| 105 |
\timingsplit{40} |
| 106 |
\lorem |
| 107 |
\timingsplit{30} |
| 108 |
\lorem |
| 109 |
\timingstop{1:00} |
| 110 |
\subsection{two.three} |
| 111 |
\timingstart{0} |
| 112 |
\lorem |
| 113 |
some text broken |
| 114 |
\timingsplit{10} |
| 115 |
by active timing mark\par |
| 116 |
\lorem |
| 117 |
some text broken |
| 118 |
{\timingconfigure{print=false}\timingsplit{15}}% |
| 119 |
by inactive timing mark\par |
| 120 |
\lorem |
| 121 |
\timingstop{30} |
| 122 |
|
| 123 |
\include{\jobname-3} |
| 124 |
\include{\jobname-4} |
| 125 |
|
| 126 |
\section{five} |
| 127 |
\timingchapter |
| 128 |
\paragraph{five.paragraph.} |
| 129 |
\lorem |
| 130 |
\timingstart{0} |
| 131 |
\lorem |
| 132 |
\timingsplit*{15} |
| 133 |
\lorem |
| 134 |
\timingsplit*{15} |
| 135 |
\subsection{five.one} |
| 136 |
\lorem |
| 137 |
\timingsplit*{15} |
| 138 |
\paragraph{five.one.paragraph.} |
| 139 |
\lorem |
| 140 |
\timingsplit*{15} |
| 141 |
\subsection{five.two} |
| 142 |
\paragraph{five.two.paragraph.} |
| 143 |
\timingsession |
| 144 |
\lorem |
| 145 |
\timingsplit*{15} |
| 146 |
\subparagraph{five.two.subparagraph.} |
| 147 |
\timingsession |
| 148 |
\lorem |
| 149 |
\timingsplit*{15} |
| 150 |
\lorem |
| 151 |
\timingstop*{15} |
| 152 |
\timingchapterend |
| 153 |
|
| 154 |
\section{six} |
| 155 |
\timingchapter |
| 156 |
\timinglapse{5} |
| 157 |
\timingstart{10} |
| 158 |
\lorem |
| 159 |
\timinglapse{-5} |
| 160 |
\lorem |
| 161 |
\timingstop{20} |
| 162 |
\lorem |
| 163 |
\timinglapse{5} |
| 164 |
\timingstart{20} |
| 165 |
\lorem |
| 166 |
\timingsplit{30} |
| 167 |
\timinggauge{10} |
| 168 |
\lorem |
| 169 |
\timingstop{20} |
| 170 |
\timingchapterend |
| 171 |
|
| 172 |
\section{flags} |
| 173 |
\timingcomment{test comments} |
| 174 |
set flags `two' and `three':\timingconfigure{flags={two,three}}\par |
| 175 |
one? \timingif[if=one]{yes}\par |
| 176 |
two? \timingif[if=two]{yes}\par |
| 177 |
one or two? \timingif[if=one,if=two]{yes}\par |
| 178 |
not one? \timingif[not=one]{yes}\par |
| 179 |
not two? \timingif[not=two]{yes}\par |
| 180 |
not one or not two? \timingif[not=one,not=two]{yes}\par |
| 181 |
|
| 182 |
\appendix |
| 183 |
\section{list of sessions} |
| 184 |
the list of sessions |
| 185 |
\timinglistofsessions |
| 186 |
|
| 187 |
\end{document} |
| 188 |
\endinput |
| 189 |
%% |
| 190 |
%% End of file `sesstime-samp.tex'. |