texlive[76085] Master/texmf-dist: litetable (18aug25)

commits+karl at tug.org commits+karl at tug.org
Mon Aug 18 21:02:05 CEST 2025


Revision: 76085
          https://tug.org/svn/texlive?view=revision&revision=76085
Author:   karl
Date:     2025-08-18 21:02:04 +0200 (Mon, 18 Aug 2025)
Log Message:
-----------
litetable (18aug25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/litetable/build.lua
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable.pdf
    trunk/Master/texmf-dist/source/latex/litetable/litetable.dtx
    trunk/Master/texmf-dist/tex/latex/litetable/litetable.sty

Modified: trunk/Master/texmf-dist/doc/latex/litetable/build.lua
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/build.lua	2025-08-18 19:01:55 UTC (rev 76084)
+++ trunk/Master/texmf-dist/doc/latex/litetable/build.lua	2025-08-18 19:02:04 UTC (rev 76085)
@@ -10,17 +10,15 @@
 --]==========================================]--
 
 module              = "litetable"
-version             = "v3.6B"
-date                = "2025-08-16"
+version             = "v3.7A"
+date                = "2025-08-18"
 maintainer          = "Mingyu Xia; Lijun Guo"
 uploader            = "Mingyu Xia"
 maintainid          = "myhsia"
 email               = "myhsia at outlook.com"
 repository          = "https://github.com/" .. maintainid .. "/" .. module
-announcement        = [[Version 3.6B released.
-- Optimized the `litetable` environment.
-- Updated the preamble of the docs.
-- Fixed incorrect appearances of the docs.]]
+announcement        = [[Version 3.7A released.
+- Initialed the `scale` key of the `litetable` environment.]]
 summary             = "A Colorful Timetable Design"
 description         = "The litetable package provides a colorful timetable design, developed by expl3 based on TikZ"
 

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

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex	2025-08-18 19:01:55 UTC (rev 76084)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex	2025-08-18 19:02:04 UTC (rev 76085)
@@ -20,7 +20,7 @@
   }
 \begin{litetable} [ DarkBlue, sem = SEM 7, hline = dashed ]
   {Course Schedule}
-  \course [ subject = interface3, comment = \TeX\ Live 2025,
+  \course [ subject = interface3, comment = \TeX~Live 2025,
             lecture = The \LaTeX\ Project, DarkBlue ] {4} {5}
   \newday
   \course [ subject = expl3, lecture = The \LaTeX\ Project ] {8} {8}

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

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex	2025-08-18 19:01:55 UTC (rev 76084)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex	2025-08-18 19:02:04 UTC (rev 76085)
@@ -1,7 +1,7 @@
 \documentclass[svgnames]{l3doc}
 \usepackage{pdfpages, twemojis}
 \usepackage[osf, mono = false]{libertine}
-\usepackage[fontset = fandol, linespread = 1.25, autoindent = 0pt]{ctex}
+\usepackage[fontset = fandol, linespread = 1.2, autoindent = 0pt]{ctex}
 \AddToHook{env/function/before}{\vspace*{-.5\baselineskip}}
 \ExplSyntaxOn \makeatletter
 \DeclareDocumentCommand \key { s m }
@@ -33,7 +33,7 @@
 \author{^^A
   夏明宇 \texttt{<^^A
     \href{mailto:myhsia at outlook.com}{myhsia at outlook.com}^^A
-    \texorpdfstring{\:\textbar\:}{, }
+    \texorpdfstring{\:\textbar\:}{, }^^A
     \href{mailto:xiamingyu at westlake.edu.cn}{xiamingyu at westlake.edu.cn}>^^A
   }\thanks{^^A
     \href{https://github.com/ljguo1020}{郭李军}^^A
@@ -40,7 +40,7 @@
     开发了解析 \meta{left} \texttt{->} \meta{right} 型数据结构的接口.^^A
   }^^A
 }
-\date{Released 2025-08-16\quad \texttt{v3.6B}}
+\date{Released 2025-08-18\quad \texttt{v3.7A}}
 
 \begin{document}
 
@@ -76,6 +76,7 @@
 强制参数用于设定课程表标题,
 可选参数接受以下键
 \begin{keyval}
+  \item [\key{scale}] \textcolor{gray}{\val{float} 可设置课程表的缩放比例(默认值: |1.0|).}
   \item [\key{color}] \val{color} 可设置课程表框架的背景色
   (默认值:|gray|),键名可省略.
   \item [\key{sem}] \val{string}
@@ -172,7 +173,7 @@
   在课程表的右下角添加备注.
 \end{function}
 
-\appendix \linespread{1.25}
+\clearpage \appendix \linespread{1.25}
 
 \section{工作示例} \label{mwe}
 

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

Modified: trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex	2025-08-18 19:01:55 UTC (rev 76084)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex	2025-08-18 19:02:04 UTC (rev 76085)
@@ -1,7 +1,7 @@
 \documentclass[svgnames]{l3doc}
 \usepackage{pdfpages, twemojis}
 \usepackage[osf, mono = false]{libertine}
-\usepackage[fontset = fandol, linespread = 1.25, autoindent = 0pt]{ctex}
+\usepackage[fontset = fandol, linespread = 1.2, autoindent = 0pt]{ctex}
 \AddToHook{env/function/before}{\vspace*{-.5\baselineskip}}
 \ExplSyntaxOn \makeatletter
 \DeclareDocumentCommand \key { s m }
@@ -33,7 +33,7 @@
 \author{^^A
   夏明宇 \texttt{<^^A
     \href{mailto:myhsia at outlook.com}{myhsia at outlook.com}^^A
-    \texorpdfstring{\:\textbar\:}{, }
+    \texorpdfstring{\:\textbar\:}{, }^^A
     \href{mailto:xiamingyu at westlake.edu.cn}{xiamingyu at westlake.edu.cn}>^^A
   }\thanks{^^A
     \href{https://github.com/ljguo1020}{郭李軍}^^A
@@ -40,7 +40,7 @@
     開發了解析 \meta{left} \texttt{->} \meta{right} 型數據結構的接口.^^A
   }^^A
 }
-\date{Released 2025-08-16\quad \texttt{v3.6B}}
+\date{Released 2025-08-18\quad \texttt{v3.7A}}
 
 \begin{document}
 
@@ -76,6 +76,7 @@
 强制參數用於設定課程表標題,
 可選參數接受以下鍵
 \begin{keyval}
+  \item [\key{scale}] \textcolor{gray}{\val{float} 可設定課程表的縮放比例(默認值: |1.0|).}
   \item [\key{color}] \val{color} 可設定課程表框架的背景色
   (默認值:|gray|),鍵名可省略.
   \item [\key{sem}] \val{string}
@@ -172,7 +173,7 @@
   在課程表的右下角添加備注.
 \end{function}
 
-\appendix \linespread{1.25}
+\clearpage \appendix \linespread{1.25}
 
 \section{工作範例} \label{mwe}
 

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

Modified: trunk/Master/texmf-dist/source/latex/litetable/litetable.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/litetable/litetable.dtx	2025-08-18 19:01:55 UTC (rev 76084)
+++ trunk/Master/texmf-dist/source/latex/litetable/litetable.dtx	2025-08-18 19:02:04 UTC (rev 76085)
@@ -147,7 +147,7 @@
 %   }^^A
 % }
 %
-% \date{Released 2025-08-16\quad \texttt{v3.6B}}
+% \date{Released 2025-08-18\quad \texttt{v3.7A}}
 %
 % \maketitle
 %
@@ -181,6 +181,7 @@
 % The mandatory argument can set the title of the timetable, and the
 % optional argument accepts the following keys
 % \begin{keyval}
+%   \item [\key{scale}] \textcolor{gray}{\val{float} can set the scale of the timetable (Default: |1.0|).}
 %   \item [\key{color}] \val{string} can set the background color
 %   (Default: |gray|), this key's name could be omitted.
 %   \item [\key{sem}] \val{string} can set the semester information at the
@@ -277,7 +278,7 @@
 %   It can add a comment at the southwest corner of the timetable.
 % \end{function}
 %
-% \appendix \linespread{1.3}
+% \clearpage \appendix \linespread{1.3}
 %
 % \section{Working Example} \label{mwe}
 %
@@ -300,7 +301,7 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesExplPackage {litetable} {2025-08-16} {v3.6B}
+\ProvidesExplPackage {litetable} {2025-08-18} {v3.7A}
   {A Colorful Timetable Design}
 %    \end{macrocode}
 %
@@ -394,6 +395,14 @@
 %    \end{macrocode}
 % \end{variable}
 % \end{macro}
+% \begin{variable}{\l_@@_textwidth_dim, \l_@@_textheight_dim}
+%   Dimensions for the physical width and height of the timetable,
+%   controlled by |\l_@@_scale_fp|.
+%    \begin{macrocode}
+\dim_new:N \l_@@_textwidth_dim
+\dim_new:N \l_@@_textheight_dim
+%    \end{macrocode}
+% \end{variable}
 % \begin{environment}{litetable}
 %   Create a blank timetable frame.
 %    \begin{macrocode}
@@ -400,16 +409,27 @@
 \NewDocumentEnvironment { litetable } { O{} m O{} }
   {
     \clearpage \thispagestyle{empty}
-    \begin{tikzpicture} [ remember~picture, overlay ]
+    \group_begin:
+    \dim_gset:Nn \l_@@_textwidth_dim
+      { \fp_eval:n { \l_@@_scale_fp } \paperwidth }
+    \dim_gset:Nn \l_@@_textheight_dim
+      { \fp_eval:n { \l_@@_scale_fp } \paperheight }
     \keys_set:nn { litetable / frame } { #1, #3 }
-    \@@_maketable:n {#2}
-  } { \end{tikzpicture} \clearpage }
+    \tikzpicture [ remember~picture, overlay ]
+      \@@_maketable:n {#2}
+  } { \endtikzpicture \group_end: \clearpage }
 %    \end{macrocode}
-% \begin{variable}{\l_@@_bg_color_tl, \l_@@_bg_sem_tl}
+% \begin{variable}
+%   {
+%     \l_@@_scale_fp,       \l_@@_bg_color_tl,
+%     \l_@@_hline_type_tl,  \l_@@_bg_sem_tl
+%   }
 %   Key--value definitions for the \env{litetable} command.
 %    \begin{macrocode}
 \keys_define:nn { litetable / frame }
   {
+    scale   .fp_set:N  = \l_@@_scale_fp,
+      scale .initial:n = 1.0,
     color   .tl_set:N  = \l_@@_bg_color_tl,
       color .initial:n = gray,
     hline   .tl_set:N  = \l_@@_hline_type_tl,

Modified: trunk/Master/texmf-dist/tex/latex/litetable/litetable.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/litetable/litetable.sty	2025-08-18 19:01:55 UTC (rev 76084)
+++ trunk/Master/texmf-dist/tex/latex/litetable/litetable.sty	2025-08-18 19:02:04 UTC (rev 76085)
@@ -22,7 +22,7 @@
 %%                                                                       *
 %%   The Current Maintainer of this work is Mingyu Xia.                  *
 %% -----------------------------------------------------------------------
-\ProvidesExplPackage {litetable} {2025-08-16} {v3.6B}
+\ProvidesExplPackage {litetable} {2025-08-18} {v3.7A}
   {A Colorful Timetable Design}
 \RequirePackage{tikz}
 \cs_new_protected:Npn \__ltbl_msg_new:nn #1#2
@@ -71,15 +71,24 @@
       hidetime   .initial:n  = false,
       hidetime   .default:n  = true
   }
+\dim_new:N \l__ltbl_textwidth_dim
+\dim_new:N \l__ltbl_textheight_dim
 \NewDocumentEnvironment { litetable } { O{} m O{} }
   {
     \clearpage \thispagestyle{empty}
-    \begin{tikzpicture} [ remember~picture, overlay ]
+    \group_begin:
+    \dim_gset:Nn \l__ltbl_textwidth_dim
+      { \fp_eval:n { \l__ltbl_scale_fp } \paperwidth }
+    \dim_gset:Nn \l__ltbl_textheight_dim
+      { \fp_eval:n { \l__ltbl_scale_fp } \paperheight }
     \keys_set:nn { litetable / frame } { #1, #3 }
-    \__ltbl_maketable:n {#2}
-  } { \end{tikzpicture} \clearpage }
+    \tikzpicture [ remember~picture, overlay ]
+      \__ltbl_maketable:n {#2}
+  } { \endtikzpicture \group_end: \clearpage }
 \keys_define:nn { litetable / frame }
   {
+    scale   .fp_set:N  = \l__ltbl_scale_fp,
+      scale .initial:n = 1.0,
     color   .tl_set:N  = \l__ltbl_bg_color_tl,
       color .initial:n = gray,
     hline   .tl_set:N  = \l__ltbl_hline_type_tl,



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