texlive[74398] branches/branch2024.final/Master/texmf-dist: litetable
commits+karl at tug.org
commits+karl at tug.org
Sun Mar 2 22:44:22 CET 2025
Revision: 74398
https://tug.org/svn/texlive?view=revision&revision=74398
Author: karl
Date: 2025-03-02 22:44:22 +0100 (Sun, 02 Mar 2025)
Log Message:
-----------
litetable (branch) (2mar25)
Modified Paths:
--------------
branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.pdf
branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex
branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.pdf
branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex
branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable.pdf
branches/branch2024.final/Master/texmf-dist/source/latex/litetable/litetable.dtx
branches/branch2024.final/Master/texmf-dist/tex/latex/litetable/litetable.sty
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex 2025-03-02 21:44:09 UTC (rev 74397)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-cn.tex 2025-03-02 21:44:22 UTC (rev 74398)
@@ -9,7 +9,7 @@
\AddToHook{env/function/before}{\vspace*{-.65\baselineskip}}
\AddToHook{env/syntax/after}{\par\vspace*{.15\baselineskip}}
\makeatletter
-\def \@key #1{\textcolor{red}{\textbf{\texttt{#1}}} \normalfont \texttt{=}}
+\def \@key #1{\textcolor{red}{\textbf{\texttt{#1}}}~\normalfont \texttt{=}~}
\def \s at key #1{\textcolor{red}{\textbf{\texttt{#1}}}}
\DeclareRobustCommand \key {\@ifstar\s at key\@key}
\def \val #1{\meta{\textup{#1}}}
@@ -16,6 +16,8 @@
\def \TFF {true\textbar \textbf{false}}
\def \TTF {\textbf{true}\textbar false}
\def \HoLogo at ApTeX #1{\HOLOGO at mbox {Ap\kern -.1667em\TeX}}
+\newlist{keyval}{itemize}{10}
+\setlist[keyval]{leftmargin = 0pt, labelsep = 0pt}
\makeatother
\makeindex
@@ -35,7 +37,7 @@
}
}
-\date{Released 2025-03-01\quad \texttt{v3.3A}}
+\date{Released 2025-03-02\quad \texttt{v3.3B}}
\begin{document}
@@ -68,12 +70,12 @@
\end{quote}
强制参数用于设定课程表标题,
可选参数接受以下键
-\begin{itemize}[leftmargin = 0pt]
+\begin{keyval}
\item [\key{color}] \val{color} 可设置课程表框架的背景色
(默认值:\cmd[no-index]{gray}),键名可省略.
\item [\key{sem}] \val{string}
可设置页面右上角的学期信息.
-\end{itemize}
+\end{keyval}
\begin{function}{\weeklist}
\begin{syntax}
@@ -82,12 +84,12 @@
强制参数接收数组,
用于设置课程表顶部的工作日列表和列宽.
可选参数接受以下键
- \begin{itemize}[leftmargin = 0pt]
+ \begin{keyval}
\item [\key{format}] \val{format commands}
可设置工作日列表格式 (默认值:\cmd[no-index]{\bfseries}).
\item [\key{sep}] \val{string} 可设置工作日列表的分隔符
(默认为空).
- \end{itemize}
+ \end{keyval}
\begin{verbatim}
\weeklist [ format = \bfseries \scshape, sep = \textbar ]
{ Mon -> 1, Tue -> 1, Wed -> 1, Thu -> 1, Fri -> 1 }
@@ -100,7 +102,7 @@
\end{syntax}
强制参数均接收数组,用于设置课程表的左侧的时间列表.
可选参数接受以下键
- \begin{itemize}[leftmargin = 0pt]
+ \begin{keyval}
\item [\key{numformat}] \val{format}
可设置时间列表的序号字体,
(默认值:\cmd[no-index]{\ttfamily} \cmd[no-index]{\bfseries}).
@@ -108,7 +110,7 @@
(默认值:\cmd[no-index]{\ttfamily}).
\item [\key{hidetime}] \val\TFF 用于隐藏时间列表中的时间,只保留序号.
(初始值:\cmd[no-index]{false}).
- \end{itemize}
+ \end{keyval}
\begin{verbatim}
\timelist [ numformat = \bfseries, timeformat = \ttfamily ]
{ 08:30 -> 10:00, 10:30 -> 12:00, 13:00 -> 14:30, 15:00 -> 16:30 }
@@ -123,7 +125,7 @@
需在 \env{litetable} 环境中执行.
两个强制参数分别用于设置课程的开始和结束序号.
可选参数接收下列键
- \begin{itemize}[leftmargin = 0pt]
+ \begin{keyval}
\item [\key{color}] \val{color} 用于设置课程盒子的颜色,
(默认值:\cmd[no-index]{teal}). 键名可省略.
\item [\key{subject}] \val{string} 用于设置课程名称.
@@ -130,12 +132,12 @@
\item [\key{location}] \val{string} 用于设置课程地点.
\item [\key{lecture}] \val{string} 用于设置授课教师.
\item [\key{comment}] \val{string} 用于给课程添加脚注.
- \end{itemize}
+ \end{keyval}
\begin{texnote}
- \begin{itemize}[leftmargin = 0pt]
- \item 若 \meta{start} \cmd[no-index]{=} \meta{end}(课程盒子高度为 $1$),
- 则 \key*{location} \key*{lecture} 将输出在同一行,
- \key*{comment} 将隐藏.
+ \begin{itemize}[leftmargin = 2em]
+ \item 若 \meta{start} \cmd[no-index]{=} \meta{end}(课程盒子的高度为 $1$),
+ 则 \key*{location} 和 \key*{lecture} 将输出在同一行,
+ 并且 \key*{comment} 将隐藏.
\item 即使误将 \meta{start} 与 \meta{end} 写反,
模板也会自动纠正.
\item 若 \key*{location} 和 \key*{lecture} 均未使用,
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex 2025-03-02 21:44:09 UTC (rev 74397)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable-zh-hk.tex 2025-03-02 21:44:22 UTC (rev 74398)
@@ -9,7 +9,7 @@
\AddToHook{env/function/before}{\vspace*{-.65\baselineskip}}
\AddToHook{env/syntax/after}{\par\vspace*{.15\baselineskip}}
\makeatletter
-\def \@key #1{\textcolor{red}{\textbf{\texttt{#1}}} \normalfont \texttt{=}}
+\def \@key #1{\textcolor{red}{\textbf{\texttt{#1}}}~\normalfont \texttt{=}~}
\def \s at key #1{\textcolor{red}{\textbf{\texttt{#1}}}}
\DeclareRobustCommand \key {\@ifstar\s at key\@key}
\def \val #1{\meta{\textup{#1}}}
@@ -16,6 +16,8 @@
\def \TFF {true\textbar \textbf{false}}
\def \TTF {\textbf{true}\textbar false}
\def \HoLogo at ApTeX #1{\HOLOGO at mbox {Ap\kern -.1667em\TeX}}
+\newlist{keyval}{itemize}{10}
+\setlist[keyval]{leftmargin = 0pt, labelsep = 0pt}
\makeatother
\makeindex
@@ -35,7 +37,7 @@
}
}
-\date{Released 2025-03-01\quad \texttt{v3.3A}}
+\date{Released 2025-03-02\quad \texttt{v3.3B}}
\begin{document}
@@ -68,12 +70,12 @@
\end{quote}
強制參數用於設定課程表標題,
可選參數接受以下鍵
-\begin{itemize}[leftmargin = 0pt]
+\begin{keyval}
\item [\key{color}] \val{color} 可設置課程表框架嘅背景色
(默認值:\cmd[no-index]{gray}),鍵名可省略.
\item [\key{sem}] \val{string}
可設置頁面右上角嘅學期信息.
-\end{itemize}
+\end{keyval}
\begin{function}{\weeklist}
\begin{syntax}
@@ -82,12 +84,12 @@
強制參數接收數組,
用於設置課程表頂部嘅工作日列表和列寬.
可選參數接受以下鍵
- \begin{itemize}[leftmargin = 0pt]
+ \begin{keyval}
\item [\key{format}] \val{format commands}
可設置工作日列表格式 (默認值:\cmd[no-index]{\bfseries}).
\item [\key{sep}] \val{string} 可設置工作日列表嘅分隔符
(默認為空).
- \end{itemize}
+ \end{keyval}
\begin{verbatim}
\weeklist [ format = \bfseries \scshape, sep = \textbar ]
{ Mon -> 1, Tue -> 1, Wed -> 1, Thu -> 1, Fri -> 1 }
@@ -100,7 +102,7 @@
\end{syntax}
強制參數均接收數組,用於設置課程表嘅左側嘅時間列表.
可選參數接受以下鍵
- \begin{itemize}[leftmargin = 0pt]
+ \begin{keyval}
\item [\key{numformat}] \val{format}
可設置時間列表嘅序號字體,
(默認值:\cmd[no-index]{\ttfamily} \cmd[no-index]{\bfseries}).
@@ -108,7 +110,7 @@
(默認值:\cmd[no-index]{\ttfamily}).
\item [\key{hidetime}] \val\TFF 用於隱藏時間列表中嘅時間,只保留序號.
(初始值:\cmd[no-index]{false}).
- \end{itemize}
+ \end{keyval}
\begin{verbatim}
\timelist [ numformat = \bfseries, timeformat = \ttfamily ]
{ 08:30 -> 10:00, 10:30 -> 12:00, 13:00 -> 14:30, 15:00 -> 16:30 }
@@ -123,7 +125,7 @@
需在 \env{litetable} 環境中執行.
兩個強制參數分別用於設置課程嘅開始和結束序號.
可選參數接收下列鍵
- \begin{itemize}[leftmargin = 0pt]
+ \begin{keyval}
\item [\key{color}] \val{color} 用於設置課程盒子嘅顏色,
(默認值:\cmd[no-index]{teal}). 鍵名可省略.
\item [\key{subject}] \val{string} 用於設置課程名稱.
@@ -130,12 +132,12 @@
\item [\key{location}] \val{string} 用於設置課程地點.
\item [\key{lecture}] \val{string} 用於設置授課教師.
\item [\key{comment}] \val{string} 用於給課程添加腳注.
- \end{itemize}
+ \end{keyval}
\begin{texnote}
- \begin{itemize}[leftmargin = 0pt]
- \item 若 \meta{start} \cmd[no-index]{=} \meta{end}(課程盒子高度為 $1$),
- 則 \key*{location} \key*{lecture} 將輸出在同一行,
- \key*{comment} 將隱藏.
+ \begin{itemize}[leftmargin = 2em]
+ \item 若 \meta{start} \cmd[no-index]{=} \meta{end}(課程盒子嘅高度為 $1$),
+ 則 \key*{location} 和 \key*{lecture} 將輸出在同一行,
+ 並且 \key*{comment} 將隱藏.
\item 即使誤將 \meta{start} 與 \meta{end} 寫反,
模板也會自動糾正.
\item 若 \key*{location} 和 \key*{lecture} 均未使用,
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/litetable/litetable.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2024.final/Master/texmf-dist/source/latex/litetable/litetable.dtx
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/latex/litetable/litetable.dtx 2025-03-02 21:44:09 UTC (rev 74397)
+++ branches/branch2024.final/Master/texmf-dist/source/latex/litetable/litetable.dtx 2025-03-02 21:44:22 UTC (rev 74398)
@@ -74,7 +74,7 @@
\AddToHook{env/function/before}{\vspace*{-.65\baselineskip}}
\AddToHook{env/syntax/after}{\par\vspace*{.15\baselineskip}}
\makeatletter
-\def \@key #1{\textcolor{red}{\textbf{\texttt{#1}}} \normalfont \texttt{=}}
+\def \@key #1{\textcolor{red}{\textbf{\texttt{#1}}}~\normalfont \texttt{=}~}
\def \s at key #1{\textcolor{red}{\textbf{\texttt{#1}}}}
\DeclareRobustCommand \key {\@ifstar\s at key\@key}
\def \val #1{\meta{\textup{#1}}}
@@ -81,6 +81,8 @@
\def \TFF {true\textbar \textbf{false}}
\def \TTF {\textbf{true}\textbar false}
\def \HoLogo at ApTeX #1{\HOLOGO at mbox {Ap\kern -.1667em\TeX}}
+\newlist{keyval}{itemize}{10}
+\setlist[keyval]{leftmargin = 0pt, labelsep = 0pt}
\makeatother
\makeindex
\begin{document}
@@ -105,7 +107,7 @@
% }
% }
%
-% \date{Released 2025-03-01\quad \texttt{v3.3A}}
+% \date{Released 2025-03-02\quad \texttt{v3.3B}}
%
% \maketitle
%
@@ -138,12 +140,12 @@
% \end{quote}
% The mandatory argument can set the title of the timetable, and the
% optional argument accepts the following keys
-% \begin{itemize}[leftmargin = 0pt]
+% \begin{keyval}
% \item [\key{color}] \val{string} can set the background color
% (Default: \cmd[no-index]{gray}), this key's name could be omitted.
% \item [\key{sem}] \val{string} can set the semester information at the
% northeast corner of the page.
-% \end{itemize}
+% \end{keyval}
%
% \begin{function}{\weeklist}
% \begin{syntax}
@@ -152,12 +154,12 @@
% The mandatory argument accepts an array to set a list of working days and
% the width of each column at the top of the timetable.
% The optional argument accepts the following keys
-% \begin{itemize}[leftmargin = 0pt]
+% \begin{keyval}
% \item [\key{format}] \val{format commands} can set the font for the list
% of working days (Default: \cmd[no-index]{\bfseries}).
% \item [\key{sep}] \val{dim} can set the separator of the list of working
% days (Default is empty).
-% \end{itemize}
+% \end{keyval}
% \begin{verbatim}
% \weeklist [ format = \bfseries \scshape, sep = \textbar ]
% { Mon -> 1, Tue -> 1, Wed -> 1, Thu -> 1, Fri -> 1 }
@@ -170,7 +172,7 @@
% \end{syntax}
% The mandatory argument accepts an array to set the time list on the left
% side of the timetable. The optional argument accepts the following keys
-% \begin{itemize}[leftmargin = 0pt]
+% \begin{keyval}
% \item [\key{numformat}] \val{format commands} can set the font for the
% sequence number of the time list
% (Default: \cmd[no-index]{\ttfamily} \cmd[no-index]{\bfseries}).
@@ -178,7 +180,7 @@
% of the time list. (Default: \cmd[no-index]{\ttfamily}).
% \item [\key{hidetime}] \val{\TFF} hide the time in the time list and only
% retain the sequence number. The initial value is \cmd[no-index]{false}.
-% \end{itemize}
+% \end{keyval}
% \begin{verbatim}
% \timelist [ numformat = \bfseries, timeformat = \ttfamily ]
% { 08:30 -> 10:00, 10:30 -> 12:00, 13:00 -> 14:30, 15:00 -> 16:30 }
@@ -193,7 +195,7 @@
% executed within the \env{litetable} environment.
% The two mandatory arguments can set the start and ends of the course
% respectively, the optional argument accepts the following keys
-% \begin{itemize}[leftmargin = 0pt]
+% \begin{keyval}
% \item [\key{color}] \val{string} can set the color of the course box
% (Default: \cmd[no-index]{teal}), this key's name could be omitted.
% \item [\key{subject}] \val{string} can set the name of the course.
@@ -200,9 +202,9 @@
% \item [\key{location}] \val{string} can set the location of the course.
% \item [\key{lecture}] \val{string} can set the lecture of the course.
% \item [\key{comment}] \val{string} can add footnote to the course.
-% \end{itemize}
+% \end{keyval}
% \begin{texnote}
-% \begin{itemize}[leftmargin = 0pt]
+% \begin{itemize}[leftmargin = 2em]
% \item If \meta{start} \cmd[no-index]{=} \meta{end} (the height of the
% course box is $1$ unit), then \key*{location} and \key*{lecture} will be
% outputted in the same line and \key*{comment} will be hidden.
@@ -308,7 +310,7 @@
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplPackage {litetable} {2025-03-01} {3.3A} {Colorful Timetable}
+\ProvidesExplPackage {litetable} {2025-03-02} {3.3B} {Colorful Timetable}
% \end{macrocode}
%
% \begin{macrocode}
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/litetable/litetable.sty
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/litetable/litetable.sty 2025-03-02 21:44:09 UTC (rev 74397)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/litetable/litetable.sty 2025-03-02 21:44:22 UTC (rev 74398)
@@ -20,7 +20,7 @@
%% The Current Maintainer of this work is Mingyu Xia. *
%% -----------------------------------------------------------------------
\RequirePackage{expl3, xparse}
-\ProvidesExplPackage {litetable} {2025-03-01} {3.3A} {Colorful Timetable}
+\ProvidesExplPackage {litetable} {2025-03-02} {3.3B} {Colorful Timetable}
\RequirePackage{tikz}
\cs_new_protected:Npn \msg__ltbl_new:nn #1#2
{ \msg_new:nnn { litetable } {#1} {#2} }
More information about the tex-live-commits
mailing list.