texlive[71322] Master/texmf-dist: semesterplannerlua (22may24)

commits+karl at tug.org commits+karl at tug.org
Wed May 22 22:32:13 CEST 2024


Revision: 71322
          https://tug.org/svn/texlive?view=revision&revision=71322
Author:   karl
Date:     2024-05-22 22:32:13 +0200 (Wed, 22 May 2024)
Log Message:
-----------
semesterplannerlua (22may24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/semesterplannerlua/README.md
    trunk/Master/texmf-dist/doc/lualatex/semesterplannerlua/semesterplannerlua.pdf
    trunk/Master/texmf-dist/source/lualatex/semesterplannerlua/semesterplannerlua.dtx
    trunk/Master/texmf-dist/tex/lualatex/semesterplannerlua/semesterplannerlua.sty

Modified: trunk/Master/texmf-dist/doc/lualatex/semesterplannerlua/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/semesterplannerlua/README.md	2024-05-22 20:32:01 UTC (rev 71321)
+++ trunk/Master/texmf-dist/doc/lualatex/semesterplannerlua/README.md	2024-05-22 20:32:13 UTC (rev 71322)
@@ -2,7 +2,7 @@
 
 Author: Lukas Heindl (`oss.heindl+latex at protonmail.com`).
 
-CTAN page: not yet
+CTAN page: [semesterplannerlua](https://ctan.org/pkg/semesterplannerlua)
 
 ## License
 The LaTeX package `semesterplannerLua` is distributed under the LPPL 1.3 license.

Modified: trunk/Master/texmf-dist/doc/lualatex/semesterplannerlua/semesterplannerlua.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/lualatex/semesterplannerlua/semesterplannerlua.dtx
===================================================================
--- trunk/Master/texmf-dist/source/lualatex/semesterplannerlua/semesterplannerlua.dtx	2024-05-22 20:32:01 UTC (rev 71321)
+++ trunk/Master/texmf-dist/source/lualatex/semesterplannerlua/semesterplannerlua.dtx	2024-05-22 20:32:13 UTC (rev 71322)
@@ -26,7 +26,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{semesterplannerlua}
 %<*package>
-   [2024/05/19 v1.1.1 Semesterplanner package in lua with tikz only]
+   [2024/05/19 v1.1.2 Semesterplanner package in lua with tikz only]
 %</package>
 %
 %<*driver>
@@ -34,6 +34,7 @@
 \usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry}
 \usepackage[numbered]{hypdoc}
 \usepackage{array}
+\usepackage{babel}
 \usepackage{semesterplannerlua}[2024/02/27]
 \EnableCrossrefs
 \CodelineIndex
@@ -76,6 +77,7 @@
 % \changes{v1.0.0}{2024/02/27}{First full release}
 % \changes{v1.1.0}{2024/05/19}{Make ready for CTAN}
 % \changes{v1.1.1}{2024/05/19}{Make ready for CTAN (2)}
+% \changes{v1.1.2}{2024/05/19}{Typos corrected, \textbackslash laboratory and \textbackslash fieldstudy types added to timetamble}
 %
 %
 % \DoNotIndex{\newcommand,\newenvironment,\\,\begin,\end,\def,\definecolor,\directlua,\endinput,\faBullhorn,\faCamera,\faFlag,\faQuestion,\faTimesCircle,\faWarning,\faWindows,\faYoutubePlay,\node,\pgfkeys,\pgfkeysvalueof,\protected,\raggedright,\textbf,\textcolor,\textwidth,\unexpanded,\",\x,\y,\year,\week,\tiny,\tikz at lib@cal at xshift,\tikz at lib@cal at yshift,\tikz,\textit,\t,\section,\phantom,\pgftransformyshift,\pgftransformxshif,\pgfmathsetlength,\pgf at ya,\pgf at xa,\openout,\n,\newwrite,\month,\minuteToFrac,\matrix,\l,\jobname,\init,\immediate,\ignorespaces,\ifdate,\hfil,\href,\foreach,\faStickyNoteO,\faPencil,\faComment,\faClockO,\faCalendar,\faBold,\draw,\d,\day,\checkKeys,\%,\RequirePackage,\usepackage,\usetikzlibrary,\pgftransformxshift}
@@ -111,12 +113,12 @@
 %
 % \DescribeEnv{timetable} |\begin{timetable}[opts]...\end{timetable}|\\
 % This is the core environment of this package. Within it you can use
-% |\lecture|, |\seminar|, |\tutorial|, |\officehour| and |\meeting|. All
-% these commands are only defined inside the |timetable| environment, and
-% have the same structure. It typesets a timetable with the specified
-% entries. If you have a look at the |.sty| file you'll see that these
-% macros just take a general macro and set some default values before. Thus
-% it is easy to define new ones (keep in mind that you'll need
+% |\lecture|, |\seminar|, |\tutorial|, |\officehour|, |\laboratory|,
+% |\fieldstudy| and |\meeting|. All these commands are only defined inside the
+% |timetable| environment, and have the same structure. It typesets a timetable
+% with the specified entries. If you have a look at the |.sty| file you'll see
+% that these macros just take a general macro and set some default values
+% before. Thus it is easy to define new ones (keep in mind that you'll need
 % |\makeatletter|) to access the general macro.
 %
 % Writes out a file containing the data from the timetable (your events) to
@@ -134,7 +136,7 @@
 %     column names. Note that if you specify only 4 names only these 4
 %     columns will be printed (with the first day being identified as
 %     Monday)
-%     \textit{Default: |Mon,Thue,Wend,Thur,Fri|}
+%     \textit{Default: |Mon,Tue,Wend,Thur,Fri|}
 %     \item[|dayse|] List of strings used in the code to idenfity the day.
 %     This list is kind of a mapping string $\to$ integer.
 %     \item[|start time|] Explicit start-time of the timetable given in minutes
@@ -161,6 +163,10 @@
 %
 % \DescribeMacro{\meeting}    |\meeting   [opts]|
 %
+% \DescribeMacro{\fieldstudy} |\fieldstudy[opts]|
+%
+% \DescribeMacro{\laboratory} |\laboratory[opts]|
+%
 % |opts| are optional arguments (enclosed with |{}|) separated with |,|:
 % \begin{description}
 %     \item[|title|] Give the name of the lecture
@@ -211,35 +217,35 @@
 % |\settowidth{\length}{12:30}| to set a length to the length of a clock
 % label and then subtract this from the length you want to specify.
 %
-% \hangindent=4.5em \hangafter=1 \textbf{Hint:} The content of the
-% environment isn't processed by this package. Only the event commands (so
-% to speak |\lecture|,|\tutorial|,|\seminar|,|\officehour|,|\meeting| are
-% relevant.  All other contents are set immediately before the timetable.
-% Therefore, if you wan to add e.g. a |\hspace*{10cm}| to shift the
-% timetable to the left, the last line of the env would be the place to do
-% so (there musn't be an empty line below since otherwise a new paragraph
-% is started).
+% \hangindent=4.5em \hangafter=1 \textbf{Hint:} The content of the environment
+% isn't processed by this package. Only the event commands (so to speak
+% |\lecture|,|\tutorial|,|\seminar|,|\officehour|,|\fieldstudy|,|\laboratory|,|\meeting|
+% are relevant.  All other contents are set immediately before the timetable.
+% Therefore, if you wan to add e.g. a |\hspace*{10cm}| to shift the timetable
+% to the left, the last line of the env would be the place to do so (there
+% musn't be an empty line below since otherwise a new paragraph is started).
 %
 % \newpage
 % \subsubsection{Example}
 % |\begin{timetable}[|\\
-% |        days={Mon,Thue,Wend,Thur,Fri},|\\
+% |        days={Mon,Tue,Wend,Thur,Fri},|\\
 % |        start time/.evaluated={11*60}, end time/.evaluated={15*60}|\\
 % |    ]|\\
-% |    \lecture[title={TestingLectureLongOne},speaker={Doe},|\\
+% |    \lecture[title={Testing Lecture LongOne},speaker={Doe},|\\
 % |        location={RN1},day={W},time={12:30-13:30}]|\\
-% |    \lecture[title={TestingLectureLongOne},speaker={John},|\\
+% |    \tutorial[title={Testing Lecture LongOne},speaker={John},|\\
 % |        location={RN1},day={Th},time={12:30-13:30},offset=0.5,scale width=0.5]|\\
-% |    \lecture[title={TestingLectureLongOne},speaker={Dr. Doe},|\\
+% |    \lecture[title={Testing Lecture LongOne},speaker={Dr. Doe},|\\
 % |        location={\zoom},day={T},time={12:30-13:30},prio={\phigh}]|\\
 % |\end{timetable}|\\
 %
-% \begin{timetable}[days={Mon,Thue,Wend,Thur,Fri}, start
-% time/.evaluated={11*60}, end time/.evaluated={15*60}]
-%   \lecture[title={TestingLectureLongOne}, speaker={Heindl}, location={RN1},   day={W},  time={12:30-13:30}]
-%   \lecture[title={TestingLectureLongOne}, speaker={Heindl}, location={RN1},   day={Th}, time={12:30-13:30}, offset=0.5, scale width=0.5]
-%   \lecture[title={TestingLectureLongOne}, speaker={Heindl}, location={\zoom}, day={T},  time={12:30-13:30}, prio={\phigh}]
-%   \hspace*{-.2\textwidth}
+% \begin{timetable}[days={Mon,Tue,Wend,Thur,Fri},start time/.evaluated={11*60}, end time/.evaluated={15*60}]
+%     \lecture[title={Testing Lecture LongOne},speaker={Doe},
+%         location={RN1},day={W},time={12:30-13:30}]
+%     \tutorial[title={Testing Lecture LongOne},speaker={John},
+%         location={RN1},day={Th},time={12:30-13:30},offset=0.5,scale width=0.5]
+%     \lecture[title={Testing Lecture LongOne},speaker={Dr. Doe},
+%         location={\zoom},day={T},time={12:30-13:30},prio={\phigh}]
 % \end{timetable}
 %
 % \subsection{Calendar related things}
@@ -442,6 +448,8 @@
 \definecolor{lecture}{rgb}{0.2, 0.7, 1.0}
 \definecolor{tutorial}{rgb}{0.0, 0.8, 0.0}
 \definecolor{meeting}{rgb}{0.8, 0.0, 0.0}
+\definecolor{laboratory}{rgb}{0.8, 0.0, 0.0}
+\definecolor{fieldstudy}{rgb}{0.8, 0.0, 0.0}
 \definecolor{officehour}{rgb}{0.0, 0.4, 0.6}
 \definecolor{DodgerBlue}{HTML}{1E90FF}
 %    \end{macrocode}
@@ -567,7 +575,7 @@
 % \end{description}
 %    \begin{macrocode}
         /semesterplannerLua/timetable/env/.cd,
-        days/.initial={Mon,Thue,Wend,Thur,Fri}, days/.default={Mon,Thue,Wend,Thur,Fri},
+        days/.initial={Mon,Tue,Wend,Thur,Fri}, days/.default={Mon,Tue,Wend,Thur,Fri},
         dayse/.initial={M,T,W,Th,F}, dayse/.default={M,T,W,Th,F},
         %
         start time/.initial=, start time/.default=,
@@ -695,7 +703,7 @@
 %   Afterwards the lua module is beeing initialized (erase data from
 %   possible previous runs.
 %    \begin{macrocode}
-    \pgfkeys{/semesterplannerLua/timetable/env/.cd, days,dayse, start time,end time, width,length, #1}
+    \pgfkeys{/semesterplannerLua/timetable/env/.cd,days,dayse,start time,end time,width,length,#1}
     \directlua{sp.init{
         days=[[\pgfkeysvalueof{/semesterplannerLua/timetable/env/days}]],
         min=[[\pgfkeysvalueof{/semesterplannerLua/timetable/env/start time}]],
@@ -776,7 +784,23 @@
     }
 %    \end{macrocode}
 %   \end{macro}
+%   \begin{macro}{\laboratory}
 %    \begin{macrocode}
+    \newcommand{\laboratory}[1][]{
+        \semesterplannerLua at event[tikz={fill=laboratory,}, textcolor=white, type=lab, ##1]
+        \ignorespaces
+    }
+%    \end{macrocode}
+%   \end{macro}
+%   \begin{macro}{\fieldstudy}
+%    \begin{macrocode}
+    \newcommand{\fieldstudy}[1][]{
+        \semesterplannerLua at event[tikz={fill=fieldstudy,}, textcolor=white, type=fieldstudy, ##1]
+        \ignorespaces
+    }
+%    \end{macrocode}
+%   \end{macro}
+%    \begin{macrocode}
 }{
 %    \end{macrocode}
 % At the end of the environment after all events have been collected,

Modified: trunk/Master/texmf-dist/tex/lualatex/semesterplannerlua/semesterplannerlua.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/semesterplannerlua/semesterplannerlua.sty	2024-05-22 20:32:01 UTC (rev 71321)
+++ trunk/Master/texmf-dist/tex/lualatex/semesterplannerlua/semesterplannerlua.sty	2024-05-22 20:32:13 UTC (rev 71322)
@@ -20,7 +20,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{semesterplannerlua}
-   [2024/05/19 v1.1.1 Semesterplanner package in lua with tikz only]
+   [2024/05/19 v1.1.2 Semesterplanner package in lua with tikz only]
 
 \RequirePackage{tikz}
 \usetikzlibrary{calendar, positioning, shapes.misc, backgrounds}
@@ -32,6 +32,8 @@
 \definecolor{lecture}{rgb}{0.2, 0.7, 1.0}
 \definecolor{tutorial}{rgb}{0.0, 0.8, 0.0}
 \definecolor{meeting}{rgb}{0.8, 0.0, 0.0}
+\definecolor{laboratory}{rgb}{0.8, 0.0, 0.0}
+\definecolor{fieldstudy}{rgb}{0.8, 0.0, 0.0}
 \definecolor{officehour}{rgb}{0.0, 0.4, 0.6}
 \definecolor{DodgerBlue}{HTML}{1E90FF}
     \newcommand*{\semesterplannerLua at encircle}[1]{
@@ -61,7 +63,7 @@
 \directlua{cal = require("semesterplannerLua_calendar.lua")}
     \pgfkeys{
         /semesterplannerLua/timetable/env/.cd,
-        days/.initial={Mon,Thue,Wend,Thur,Fri}, days/.default={Mon,Thue,Wend,Thur,Fri},
+        days/.initial={Mon,Tue,Wend,Thur,Fri}, days/.default={Mon,Tue,Wend,Thur,Fri},
         dayse/.initial={M,T,W,Th,F}, dayse/.default={M,T,W,Th,F},
         %
         start time/.initial=, start time/.default=,
@@ -123,7 +125,7 @@
 ]
 \newenvironment{timetable}[1][]{
     \section*{\faClockO~Timetable}
-    \pgfkeys{/semesterplannerLua/timetable/env/.cd, days,dayse, start time,end time, width,length, #1}
+    \pgfkeys{/semesterplannerLua/timetable/env/.cd,days,dayse,start time,end time,width,length,#1}
     \directlua{sp.init{
         days=[[\pgfkeysvalueof{/semesterplannerLua/timetable/env/days}]],
         min=[[\pgfkeysvalueof{/semesterplannerLua/timetable/env/start time}]],
@@ -170,6 +172,14 @@
         \semesterplannerLua at event[tikz={fill=officehour,}, textcolor=white, type=office, ##1]
         \ignorespaces
     }
+    \newcommand{\laboratory}[1][]{
+        \semesterplannerLua at event[tikz={fill=laboratory,}, textcolor=white, type=lab, ##1]
+        \ignorespaces
+    }
+    \newcommand{\fieldstudy}[1][]{
+        \semesterplannerLua at event[tikz={fill=fieldstudy,}, textcolor=white, type=fieldstudy, ##1]
+        \ignorespaces
+    }
 }{
     \directlua{sp.draw(
         [[\pgfkeysvalueof{/semesterplannerLua/timetable/env/length}]],



More information about the tex-live-commits mailing list.