texlive[72539] Master/texmf-dist: litetable (13oct24)

commits+karl at tug.org commits+karl at tug.org
Sun Oct 13 22:22:29 CEST 2024


Revision: 72539
          https://tug.org/svn/texlive?view=revision&revision=72539
Author:   karl
Date:     2024-10-13 22:22:29 +0200 (Sun, 13 Oct 2024)
Log Message:
-----------
litetable (13oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-hk.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-hk.tex
    trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex	2024-10-13 20:22:21 UTC (rev 72538)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex	2024-10-13 20:22:29 UTC (rev 72539)
@@ -23,7 +23,7 @@
   夏明宇 \texttt{<\href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com}>}
   \thanks{\href{https://github.com/ljguo1020}{郭李军}开发了读取 \meta{left} -> \meta{right} 型数据结构模块和低版本 \hologo{TeX} Live 兼容模块.}
 }
-\date{Version 3.1C, \today}
+\date{Version 3.1D, \today}
 
 \begin{document}
 
@@ -47,8 +47,8 @@
 
 \begin{function}{\timelist,\weeklist}
   \begin{syntax}
-    \cs{timelist} \oarg{rows} \marg{time list}          \cs{timelist} \marg{time list} \oarg{rows}
-    \cs{weeklist} \oarg{default weeks} \marg{week list} \cs{weeklist} \marg{week list} \oarg{default weeks}
+    \cs{timelist} \oarg{rows} \marg{list}            \cs{timelist} \marg{list} \oarg{rows}
+    \cs{weeklist} \oarg{default weeks} \marg{list}   \cs{weeklist} \marg{list} \oarg{default weeks}
   \end{syntax}
 
   命令 \cs{timelist} 的可选参数可强制设定课程表的行数,命令 \cs{weeklist} 的可选参数可设定默认的星期数目并会在每个课程盒子的右下角显示. 两个命令的强制参数均接收数组,可分别在课程表的左侧添加时间列表、在课程表的顶部添加对应宽度比例的工作日. 输入数组的用例见Appendix \ref{mwe}.

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex	2024-10-13 20:22:21 UTC (rev 72538)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex	2024-10-13 20:22:29 UTC (rev 72539)
@@ -23,7 +23,7 @@
   Mingyu Xia \texttt{<\href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com}>}
   \thanks{\href{https://github.com/ljguo1020}{Lijun Guo} developed modules for reading \meta{left} -> \meta{right} data structure and supporting low version \hologo {TeX} Live.}
 }
-\date{Version 3.1C, \today}
+\date{Version 3.1D, \today}
 
 \begin{document}
 
@@ -31,7 +31,7 @@
 
 \section{Introduction}
 
-The \cls{litetable} class provides a design of timetable with colorful course boxes, which is based on the \cls{article} class, and conducted on \pkg{expl3} and \pkg{tikz}. It is compatible with \hologo{TeX}Live 2019 or later distributions, they all work fine for \hologo{pdfLaTeX} and \hologo{XeLaTeX} compilers. This is the Chinese manual for the \cls{litetable} class, manuals in \href{./litetable-cn.pdf}{Chinese} and \href{./litetable-hk.pdf}{Cantonese} versions are also provided\footnote{\href{https://qm.qq.com/q/RyssAhG4qy}{QQ Group: 760570712}}.
+The \cls{litetable} class provides a timetable design with colorful course boxes, based on the \pkg{article} class and conducted on \pkg{expl3} and \pkg{tikz}. It is compatible with \hologo{TeX}Live 2019 or later distributions, they all work fine for \hologo{pdfLaTeX} and \hologo{XeLaTeX} compilers. This is the Chinese manual for the \cls{litetable} class, manuals in \href{./litetable-cn.pdf}{Chinese} and \href{./litetable-hk.pdf}{Cantonese} versions are also provided\footnote{\href{https://qm.qq.com/q/RyssAhG4qy}{QQ Group: 760570712}}.
 
 \section{Loading \cls{litetable} and generate the timetable frame}
 
@@ -47,8 +47,8 @@
 
 \begin{function}{\timelist,\weeklist}
   \begin{syntax}
-    \cs{timelist} \oarg{rows} \marg{time list}          \cs{timelist} \marg{time list} \oarg{rows}
-    \cs{weeklist} \oarg{default weeks} \marg{week list} \cs{weeklist} \marg{week list} \oarg{default weeks}
+    \cs{timelist} \oarg{rows} \marg{list}            \cs{timelist} \marg{list} \oarg{rows}
+    \cs{weeklist} \oarg{default weeks} \marg{list}   \cs{weeklist} \marg{list} \oarg{default weeks}
   \end{syntax}
 
   The optional argument of the command \cs{timelist} can force the number of rows on the timetable, and that of the command \cs{weeklist} can set the default number of weeks and print it at every course box's southeast corner. Each mandatory argument of the two commands accepts an array that can add a time list to the left side of the timetable and add workdays with corresponding width ratios at the top of the timetable, respectively. The example for inputting the arrays is shown in Appendix \ref{mwe}.
@@ -82,7 +82,7 @@
 
 The \cs{course} command can add course boxes on the current workday, it should execute after command \cs{maketable} in the \env{tikzpicture} environment with the option of \cmd{[remember picture, overaly]}.
 
-The optional argument accepts the following keys: \keys{\cmdmac~color} \keys{\cmdmac~subject} \keys{\cmdmac~location} \keys{\cmdmac~teacher} \keys{\cmdmac~weeks}. The default value of the key \keys{\cmdmac~color} is \cmd{teal}, and the default value of the key \keys{\cmdmac~weeks} is determined by the argument of the command \cs{weeklist}. The first and second mandatory arguments are the start and end numbers of the course, respectively.  The example of this command is shown in Appendix \ref{mwe}
+The optional argument accepts the following keys: \keys{\cmdmac~color} \keys{\cmdmac~subject} \keys{\cmdmac~location} \keys{\cmdmac~teacher} \keys{\cmdmac~weeks}. The default value of the key \keys{\cmdmac~color} is \cmd{teal}, and the default value of the key \keys{\cmdmac~weeks} is determined by the argument of the command \cs{weeklist}. The first and second mandatory arguments are the start and end numbers of the course, respectively.  The example of this command is shown in Appendix \ref{mwe}.
 
 \begin{itemize}
   \item If the course box's height is only one unit, that is $\meta{start number} = \meta{end number}$, the values of keys \keys{\cmdmac~location} and \keys{\cmdmac~teacher} will print on the same line with a comma (,) separated, and the value of the key \keys{\cmdmac~weeks} will be hidden.

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-hk.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-hk.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-hk.tex	2024-10-13 20:22:21 UTC (rev 72538)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-hk.tex	2024-10-13 20:22:29 UTC (rev 72539)
@@ -23,7 +23,7 @@
   夏明宇 \texttt{<\href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com}>}
   \thanks{\href{https://github.com/ljguo1020}{郭李軍}開發咗讀取 \meta{left} -> \meta{right} 型資料結構糢塊同低版本 \hologo{TeX} Live 相容糢塊.}
 }
-\date{Version 3.1C, \today}
+\date{Version 3.1D, \today}
 
 \begin{document}
 
@@ -47,8 +47,8 @@
 
 \begin{function}{\timelist,\weeklist}
   \begin{syntax}
-    \cs{timelist} \oarg{rows} \marg{time list}          \cs{timelist} \marg{time list} \oarg{rows}
-    \cs{weeklist} \oarg{default weeks} \marg{week list} \cs{weeklist} \marg{week list} \oarg{default weeks}
+    \cs{timelist} \oarg{rows} \marg{list}            \cs{timelist} \marg{list} \oarg{rows}
+    \cs{weeklist} \oarg{default weeks} \marg{list}   \cs{weeklist} \marg{list} \oarg{default weeks}
   \end{syntax}
 
   命令 \cs{timelist} 嘅可選參數可強制設定課程表嘅行數,命令 \cs{weeklist} 嘅可選參數可設定預設嘅星期數目並會喺每個課程盒子嘅右下角顯示. 兩個命令嘅強制參數均接受數組,可分別就系課程表嘅左側添加時間表、喺課程表嘅頂部添加對應寬度比例嘅工作日. 輸入數組嘅用例見Appendix \ref{mwe}.

Modified: trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls	2024-10-13 20:22:21 UTC (rev 72538)
+++ trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls	2024-10-13 20:22:29 UTC (rev 72539)
@@ -17,7 +17,7 @@
 %%    available at https://github.com/xiamyphys/litetable              *
 %% *********************************************************************
 \RequirePackage{xparse}% For TeX Live 2019 - 2020 Compatibility
-\ProvidesExplClass {litetable} {2024/10/09} {3.1C} {Course Schedule}
+\ProvidesExplClass {litetable} {2024/10/13} {3.1D} {Course Schedule}
 
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
 \ProcessOptions\relax
@@ -81,13 +81,13 @@
       {
         \int_set:Nn \l__time_num_int {#1}
         \int_compare:nNnTF {#1} <
-        { \clist_count:N \l__litetable_timelist_clist }
-        {
-          \int_set:Nn \l__time_num_int
-            { \clist_count:N \l__litetable_timelist_clist }
-          \litetable_msg_warning:n { timelist }
-        }
-        { \int_set:Nn \l__time_num_int {#1} }
+          { \clist_count:N \l__litetable_timelist_clist }
+          {
+            \int_set:Nn \l__time_num_int
+              { \clist_count:N \l__litetable_timelist_clist }
+            \litetable_msg_warning:n { timelist }
+          }
+          { \int_set:Nn \l__time_num_int {#1} }
       }
     \dim_set:Nn \l__time_vunit_dim
       { \fp_eval:n { 1/( 2\l__time_num_int + 3.5 ) } \paperheight }
@@ -173,7 +173,7 @@
           ]
           ([shift = {(-.4pt, \fp_eval:n { - 2 * ##1 - 2.5 } \l__time_vunit_dim)}]
             current~page.north~west
-          ) rectangle + ({\paperwidth + .8pt}, -2\l__time_vunit_dim);
+          ) rectangle + (\paperwidth + .8pt, -2\l__time_vunit_dim);
       }
     % Classes numbering
     \clist_if_empty:NTF { \l__litetable_timelist_clist }
@@ -216,7 +216,7 @@
               [ shift =
                   {(
                     \paperwidth/30,
-                    \fp_eval:n { -1.9 - 2 * ##1 } \l__time_vunit_dim
+                    \fp_eval:n { - 1.9 - 2 * ##1 } \l__time_vunit_dim
                   )}, gray, font = \ttfamily, align = center
               ] at (current~page.north~west)
               { \l__litetable_tmpa_tl\\\l__litetable_tmpb_tl };
@@ -312,7 +312,7 @@
           (
             \clist_item:Nn \l__week_ratio_clist
               { \l__litetable_week_day_int } \l__week_hunit_dim,
-            - .5\l__time_vunit_dim
+            -\l__time_vunit_dim/2
           );
     \end{scope}
     % Course info
@@ -337,7 +337,7 @@
                       \clist_item:Nn \l__week_ratio_clist
                         { \l__litetable_week_day_int }/2
                     } \l__week_hunit_dim + \paperwidth/15,
-                    \fp_eval:n { -1.75 - #1 - #2 } \l__time_vunit_dim
+                    \fp_eval:n { - 1.75 - #1 - #2 } \l__time_vunit_dim
                 )}, align = center, font = \large\bfseries,
                 \l_shortcourse_anchor_tl, \l__course_color_tl!60
               ] at (current~page.north~west) { \l__course_subject_tl };
@@ -387,20 +387,20 @@
         \cs_if_exist:NT { \l__course_subject_tl }
           {
             \node 
-            [ shift =
-              {(
-                \fp_eval:n
-                  {
-                    \clist_item:Nn \l__week_accum_clist
-                      { \l__litetable_week_day_int } -
-                    \clist_item:Nn \l__week_ratio_clist
-                      { \l__litetable_week_day_int }/2
-                  } \l__week_hunit_dim + \paperwidth/15,
-                \fp_eval:n { - 1.5 - #1 - #2 } \l__time_vunit_dim+
-                \l__course_infoshift_dim
-              )}, font = \large\bfseries, \l_course_anchor_tl,
-              \l__course_color_tl!60, align = center
-            ] at (current~page.north~west) { \l__course_subject_tl };
+              [ shift =
+                {(
+                  \fp_eval:n
+                    {
+                      \clist_item:Nn \l__week_accum_clist
+                        { \l__litetable_week_day_int } -
+                      \clist_item:Nn \l__week_ratio_clist
+                        { \l__litetable_week_day_int }/2
+                    } \l__week_hunit_dim + \paperwidth/15,
+                  \fp_eval:n { - 1.5 - #1 - #2 } \l__time_vunit_dim +
+                  \l__course_infoshift_dim
+                )}, font = \large\bfseries, \l_course_anchor_tl,
+                \l__course_color_tl!60, align = center
+              ] at (current~page.north~west) { \l__course_subject_tl };
           }
         \bool_if:nTF
           {



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