summaryrefslogtreecommitdiff
path: root/macros/luatex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-05-23 03:01:29 +0000
committerNorbert Preining <norbert@preining.info>2024-05-23 03:01:29 +0000
commitbc71ec3b9d78d568e53a103c858b43fd284b44d4 (patch)
treea00b448f97581b5f96546ceb991a79b464167e8c /macros/luatex
parent5ffc6013ea1684a5f4191278bde57d9ee035983c (diff)
CTAN sync 202405230301
Diffstat (limited to 'macros/luatex')
-rw-r--r--macros/luatex/latex/semesterplannerlua/README.md2
-rw-r--r--macros/luatex/latex/semesterplannerlua/semesterplannerlua.dtx80
-rw-r--r--macros/luatex/latex/semesterplannerlua/semesterplannerlua.pdfbin144336 -> 146192 bytes
3 files changed, 53 insertions, 29 deletions
diff --git a/macros/luatex/latex/semesterplannerlua/README.md b/macros/luatex/latex/semesterplannerlua/README.md
index d7049942cb..f445e69324 100644
--- a/macros/luatex/latex/semesterplannerlua/README.md
+++ b/macros/luatex/latex/semesterplannerlua/README.md
@@ -2,7 +2,7 @@
Author: Lukas Heindl (`oss.heindl+latex@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.
diff --git a/macros/luatex/latex/semesterplannerlua/semesterplannerlua.dtx b/macros/luatex/latex/semesterplannerlua/semesterplannerlua.dtx
index 8341981afd..b19204d64f 100644
--- a/macros/luatex/latex/semesterplannerlua/semesterplannerlua.dtx
+++ b/macros/luatex/latex/semesterplannerlua/semesterplannerlua.dtx
@@ -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@lib@cal@xshift,\tikz@lib@cal@yshift,\tikz,\textit,\t,\section,\phantom,\pgftransformyshift,\pgftransformxshif,\pgfmathsetlength,\pgf@ya,\pgf@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,6 +784,22 @@
}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\laboratory}
+% \begin{macrocode}
+ \newcommand{\laboratory}[1][]{
+ \semesterplannerLua@event[tikz={fill=laboratory,}, textcolor=white, type=lab, ##1]
+ \ignorespaces
+ }
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\fieldstudy}
+% \begin{macrocode}
+ \newcommand{\fieldstudy}[1][]{
+ \semesterplannerLua@event[tikz={fill=fieldstudy,}, textcolor=white, type=fieldstudy, ##1]
+ \ignorespaces
+ }
+% \end{macrocode}
+% \end{macro}
% \begin{macrocode}
}{
% \end{macrocode}
diff --git a/macros/luatex/latex/semesterplannerlua/semesterplannerlua.pdf b/macros/luatex/latex/semesterplannerlua/semesterplannerlua.pdf
index 40ee78f8a3..e226250212 100644
--- a/macros/luatex/latex/semesterplannerlua/semesterplannerlua.pdf
+++ b/macros/luatex/latex/semesterplannerlua/semesterplannerlua.pdf
Binary files differ