texlive[69678] Master/texmf-dist: litetable (2feb24)

commits+karl at tug.org commits+karl at tug.org
Fri Feb 2 22:42:37 CET 2024


Revision: 69678
          https://tug.org/svn/texlive?view=revision&revision=69678
Author:   karl
Date:     2024-02-02 22:42:36 +0100 (Fri, 02 Feb 2024)
Log Message:
-----------
litetable (2feb24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls

Added 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-demo1.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex

Removed Paths:
-------------
    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-doc-cn.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-cn.tex
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-en.pdf
    trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-en.tex

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

Index: trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.pdf	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.pdf	2024-02-02 21:42:36 UTC (rev 69678)

Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -0,0 +1,228 @@
+%% ******************************************************
+%% * This work may be distributed and/or modified under *
+%% * the conditions of the LaTeX Project Public License *
+%% *     http://www.latex-project.org/lppl.txt          *
+%% * either version 1.3c of this license or any later   *
+%% * version.                                           *
+%% ******************************************************
+\PassOptionsToPackage{quiet}{xeCJK}
+\PassOptionsToPackage{quiet}{fontspec}
+\PassOptionsToPackage{no-math}{fontspec}
+\documentclass[11pt]{article}
+\usepackage{geometry}
+\usepackage{pdfpages}
+\usepackage[level]{datetime}
+\usepackage{unicode-math,xeCJK}
+\usepackage{authblk}
+\usepackage{indentfirst,setspace}
+\usepackage[toc]{multitoc}
+\setstretch{1.25}
+\setmainfont{Libertinus Serif}
+\setsansfont{Libertinus Sans}
+\setCJKmainfont{Chiron Sung HK}
+[
+  BoldFont=Chiron Sung HK Bold,
+  ItalicFont=Kaiti SC
+]
+\makeatletter
+\usepackage{listings,dirtree}
+\lstdefinestyle{TeX}{
+    language      =  [LaTeX]TeX,
+    texcsstyle    =  *\color{H7},
+    numbers       =  none,
+    basicstyle    =  {\scriptsize\color{H6}\tt},
+    mathescape    =  false,
+    breaklines    =  true,
+    columns       =  fixed,
+    keywordstyle  =  \color{H3},
+    commentstyle  =  \color{darkgray},
+    tabsize       =  2,
+    keywords      =  {mail,flyleaf,sticker,logo,notebook,chapter,newnote,newnotesss,newnotessss,emptynote,newhdunote,
+    makeframe,course,more}
+}
+\usepackage{hyperref,xcolor,verbatim}
+
+\definecolor{pkgcolor}{Hsb}{103,.8,.5}
+\definecolor{moducolor}{Hsb}{290,.8,.5}
+\definecolor{cmdcolor}{Hsb}{188,.8,.5}
+\definecolor{filecolor}{Hsb}{207,.6,.7}
+\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
+\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
+\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
+\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
+\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
+\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
+\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
+\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
+
+\def\pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
+\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
+\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
+\def\datechange#1#2{%
+  \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
+  \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
+\makeatother
+
+\title{The \pkg{LiteTable} Template}
+\author[1]{Xia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
+\yyyymmdddate
+\date{\today}
+\affil[1]{\href{mailto:xiamyphys at gmail.com}{\texttt{xiamyphys at gmail.com}}}
+\date{\today\quad Version 2.3a\thanks{%
+  \url{https://github.com/xiamyphys/litetable}}}
+\begin{document}
+\maketitle
+
+\vspace{-2em}
+\begin{abstract}
+\pkg{LiteTable} 模板提供了一个多彩的课程表设计,本文档为\pkg{LiteTable} 模板的说明文档.
+
+\end{abstract}
+
+\tableofcontents\clearpage
+
+\section{Introduction}
+
+\subsection{本模板的目的}
+本模板提供了一个多彩的课程表设计. 
+
+如果你在使用本模板时遇到问题,或者有更好的建议,或者你想参与本模板或本人其他模板的开发,欢迎通过邮件 \href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com} 联络我.
+
+同样,你也可以加入我的\textsf\LaTeX{} 技術交流群 \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} 与我交流,来获取模板的内测版本.
+
+\subsection{所需宏集}
+本模板基于 \pkg{standalone} 文档类开发. 其需要 \pkg{tikz} 宏集去绘制图形,\pkg{kvoptions} 和 \pkg{etoolbox} 宏集用于提供全局模式,\pkg{expl3} 宏基用于支持数组,\pkg{ctex}宏集用于支持中文语言,\pkg{fontawesome5} 宏集提供一系列精美的图标.
+
+我强烈建议您使用终端机去执行以下命令,以将所有宏集更新到最新版本
+\begin{verbatim}
+    tlmgr update --self
+    tlmgr update --all
+\end{verbatim}
+
+如果您所在的地区存在网路封锁(如GFW干扰),你可以选择合适的镜像网站或其他方法\footnote{请遵守当地的网路条例.}. 欲详细了解,请前往 \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my TEX distribution?}
+
+\subsection{载入 \pkg{LiteTable} 和其选项}
+将文件 \verb|litetable.cls| 保存至你的项目根目录,然后创立一个 \verb|.tex| 文件,只需在第一行输入命令 \verb|\documentclass{litetable}| 即可.
+
+本模板提供了三个选项:\mode{date},\mode{style},\mode{direction} 和 \mode{font}. 只需将你要使用的选项模式分别添加在你的 \verb|.tex| 文件中命令 \verb|\documentclass[options]{litetable}| 的方括号中即可.
+
+\newpage
+\section{\pkg{LiteTable} 的全局选项}
+\begin{verbatim}
+  \documentclass[options]{litetable}
+\end{verbatim}
+\subsection{\mode{date} 选项}
+此选项有两个模式,\mode{en} 和 \mode{cn},可分别使工作日以英文或大陆简体显示,默认为英文.
+
+\subsection{\mode{style} 选项}
+此选项有两个模式,\mode{round} 和 \mode{sharp},可分别使课程块圆角或直角显示,默认为直角.
+
+\subsection{\mode{direction} 选项}
+此选项有两个模式,\mode{portrait} 和 \mode{landscape}, 可分别使课程表以纵向或横向显示.
+
+\subsection{\mode{font} 选项}
+此选项有两个模式,\mode{times} 和 \mode{libertinus},可分别使字体为 ``Times New Roman'' 或 ``Libertinus'',默认为 ``Times New Roman''.\footnote{在使用 ``Libertinus'' 模式前请确保电脑中已安装该字体.}
+
+\section{\pkg{LiteTable} 的命令}
+
+\subsection{\cmd{makeframe} 命令}
+\begin{verbatim}
+    \makeframe{Timetable -- Semester 5}
+\end{verbatim}
+
+此命令可建立一个标题为 ``Timetable -- Semester 5'' 的空白课程表.
+
+\subsection{The \cmd{timelist} command}
+\begin{verbatim}
+  \timelist{
+    8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
+    8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55
+  }
+\end{verbatim}
+
+此命令可将时间添加至课程表的左侧,内容的第一行是每节课程开始时间,第二行是每节课程的结束时间,时间之间用逗号(\verb|,|)分隔,第一行与第二行之间用分号(\verb|;|)分隔.
+
+课程表可根据你输入的时间组数自动生成相应的行数. 如上方代码共有12组时间,就会生成12行的课程表.
+
+\subsection{\cmd{course} 命令}
+\begin{verbatim}
+  \course{H5}{3}{5}{AQM}{Building 6·225}{Yuan Li \& Mn Chen}{Week 1 -- 18}
+\end{verbatim}
+
+此命令共有7个变量.
+\begin{itemize}
+  \item 第一个为你想选择的课程块颜色,从 ``H1'' 到 ``H9'' 可选.
+  \item 第二个和第三个为课程的起始节数和结束节数.
+  \item 第四个为课程的名称.
+  \item 第五个为课程的地址.
+  \item 第六个为教师的名字.
+  \item 第七个为课程的起始周和结束周.
+\end{itemize}
+
+\subsection{\cmd{newday} 命令}
+此命令可切换当前日到第二天,此时课程块会右移一格.
+
+\subsection{\cmd{more} 命令}
+\begin{verbatim}
+  \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
+\end{verbatim}
+
+此命令可在课程表末尾添加备注信息.
+
+\subsection{\cmd{sticker} 命令}
+\begin{verbatim}
+  \sticker{favicon}
+\end{verbatim}
+
+在使用此命令后页面的右下方会添加一张贴纸.
+
+\section{版本历史}
+
+课程表的设计源于杭电助手(\href{https://www.hdu.edu.cn}{杭州电子科技大学})学生课表页面(仅本校师生可访问). 页面排版十分精美,于是本人使用\LaTeX{} 复刻出了课程表样式,并制作成模板分享给大家.
+
+\textsf{\bfseries Version 1.0} 于01/09/2023完成开发,并发布在\href{https://www.latexstudio.net/index/details/index/mid/3625.html}{\LaTeX{}工作室} (杭州萧山)和\href{http://xhslink.com/od7Ycw}{小红书}上,赢得了许多人的喜爱.
+
+\textsf{\bfseries Version 2.0a}于01/11/2023完成开发,并发布在\href{https://www.latexstudio.net/index/details/index/mid/3636.html}{\LaTeX{}工作室} (杭州萧山)和\href{http://xhslink.com/od7Ycw}{小红书}上. 此版本使用 \verb|.cls| 文件,使 \verb|main.tex| 文件更简洁. 同时,此版本添加了全局模式,可设置 ``课程块" 显示为圆角或直角. 此版本也支持一个 \verb|.tex| 文件中生成多张课表.
+
+\textsf{\bfseries Version 2.1a} 于05/11/2023完成开发. 支持 libertinus 字体.
+
+\textsf{\bfseries Version 2.2a} 于31/01/2024完成开发. 此版本修复了分辨率超出的bug,更改纸张类型为美国信纸并支持自定义课程起始和结束时间.
+
+\textsf{\bfseries Version 2.3a} 于02/02/2024完成开发. 此版本支持根据所输入的时间组数自动生成相应的行数,并支持课程表以纵向或横向显示.
+
+\setstretch{1}
+\datechange{01/09/2023}{Version 2.0a}
+\begin{itemize}
+    \item 支持课程块显示为圆角或直角.
+    \item 支持一个 \verb|.tex| 文件中生成多张课表.
+\end{itemize}
+
+\datechange{05/11/2023}{Version 2.1a}
+\begin{itemize}
+    \item 支持 libertinus 字体.
+\end{itemize}
+
+\datechange{31/01/2024}{Version 2.2a}
+\begin{itemize}
+    \item 修复了分辨率超出的bug.
+    \item 更改纸张类型为美国信纸.
+    \item 支持自定义课程起始和结束时间.
+    \item 支持在页面右下角添加一个你喜欢的小贴纸.
+    \item 提供简体中文说明文档.
+\end{itemize}
+
+\datechange{2024/02/02}{Version 2.3a}
+\begin{itemize}
+  \item 支持根据所输入的时间组数自动生成相应的行数.
+  \item 课程表可纵向或横向显示.
+\end{itemize}
+
+
+\newpage\setstretch{1.5}
+\appendix
+\section{代码示例}
+\lstinputlisting[style=TeX]{litetable-demo2.tex}
+
+\includepdf[pages=-]{litetable-demo2.pdf}
+\includepdf[pages=-,nup=1x2]{litetable-demo1.pdf}
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-cn.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.pdf
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -1,68 +0,0 @@
-\documentclass[libertinus]{litetable}
-\begin{document}
-
-\timelist{
-8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
-8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55}
-\sticker{favicon}
-
-\begin{tikzpicture}
-    \makeframe{Axia\!\texttt{'}\!s Timetable -- Semester 5}% make title & background
-    % Mon.
-    \course{H1}{1}{2}{Badminton}{Badminton Court}{Yongsheng Yu}{Week 1 -- 18}
-    \course{H7}{3}{5}{Lens Design Expt}{Building 6·South 402}{Hao Ying}{Week 5 -- 15}
-    \newday % Tue.
-    \course{H9}{3}{5}{Marx's Principles}{Building 6·320}{Yang Wang}{Week 1 -- 18}
-    \course{H8}{6}{8}{Photoelectric Det}{Building 6·320}{Xuefeng Huang}{Week 1 -- 18}
-    \newday % Wed.
-    \course{H7}{3}{4}{Laster Tech}{Building 6·301}{Haidan Mao}{Week 1 -- 18}
-    \course{H9}{6}{7}{Empt 3 | Situ 5}{Bldg 6·301 | Situ 6·208}{Mjh | Qxr}{Week 5 -- 14}
-    \course{H5}{8}{9}{Computational Phys}{Building 6·215}{Wenjia Rao}{Week 1 -- 18}
-    \course{H1}{10}{11}{Essay Writing}{Building 6·416}{Yueqin Shi}{Week 1 -- 18}
-    \newday % Thu.
-    \course{H6}{1}{2}{Sensing System}{Building 6·110}{Benxiao Cai}{Week 1 -- 18}
-    \course{H5}{3}{5}{AQM}{Building 6·225}{Yuan Li \& Mengnan Chen}{Week 1 -- 18}
-    \course{H3}{6}{8}{Modern Phys Expt 2}{Building 6·South}{Xiangxiang Chen}{Week 5 -- 16}
-    \course{H8}{10}{12}{OE Info Expt 1}{Building 6·South 302}{Yu Zhou}{Week 5 -- 15}
-    \newday % Fri.
-    \course{H7}{1}{2}{Lens Design}{Building 6·422}{Hao Ying}{Week 1 -- 18}
-    \course{H5}{3}{5}{Optoelectronics}{Building 6·202}{Ruixue Li \& Yuan Li}{Week 1 -- 18}
-    \course{H8}{6}{7}{Innovative Practice 4}{Building 7·216B}{Qinglong Huang}{Week 5 -- 16}
-    \course{H5}{8}{9}{Group Meeting}{Building 6·Middle}{Yuan Li}{Week 1 -- 18}
-    \more{·School Starts: 11 / 09 / 2023 ·Winter Vacation: 26 / 01 / 2024 ·Hangzhou Asian Games: 23 / 09 / 2023 -- 08 / 10 / 2023}
-\end{tikzpicture}
-
-
-
-
-
-
-
-
-\begin{tikzpicture}
-    \makeframe{Axia\!\texttt{'}\!s Timetable -- Semester 6}
-    
-    % Mon.
-    \course{H5}{7}{8}{Introduction to Cond.}{Building 6·225}{Mn Chen}{Week 1 -- 16}
-
-    \newday % Tue.
-    \course{H1}{8}{9}{Group Theory}{Building 6·211}{Li Ge}{Week 1 -- 16}
-    \course{H5}{10}{11}{Mesoscopic Physics}{Building 6·211}{Yuan Li \& Mn Chen}{Week 1 -- 16}
-
-    \newday % Wed.
-    \course{H6}{1}{2}{Engineering Drawing}{Building 7·3012}{Hc Wang}{Week 1 -- 16}
-    \course{H9}{8}{9}{Situation \& Policy 6}{Building 6·302}{Xr Qi}{Double Week 10 -- 16}
-    \course{H9}{10}{11}{Operational Simu.}{Building 4·411 -- 413}{Li Zhang}{Week 1 -- 8}
-
-    \newday % Thu.
-    \course{H4}{1}{2}{Intercultural Comm.}{Building 3·422}{Cl Zuo}{Week 1 -- 16}
-    \course{H2}{3}{4}{Radio Direction}{Athletic Field}{Ys Yu}{Week 1 -- 16}
-    \course{H5}{6}{8}{Solid State Physics}{Building 6·408}{Kw Sun}{Week 1 -- 16}
-
-    \newday % Fri.
-    \course{H8}{1}{2}{OE. Display}{Building 7·3012}{Wt Su}{Week 1 -- 16}
-    \course{H3}{6}{8}{Group Meeting}{Building 6·Middle}{Yuan Li}{Week 1 -- 16}
-
-    \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
-\end{tikzpicture}
-\end{document}
\ No newline at end of file

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

Index: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.pdf	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.pdf	2024-02-02 21:42:36 UTC (rev 69678)

Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -0,0 +1,66 @@
+\documentclass[libertinus,en,sharp,landscape]{litetable}
+
+
+\begin{document}
+
+\timelist{
+    8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
+    8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55
+}
+\sticker{favicon}
+
+\begin{tikzpicture}
+  \makeframe{Axia\!\texttt{'}\!s Timetable -- Semester 5} % make title
+  % Mon.
+  \course{H1}{1}{2}{Badminton}{Badminton Court}{Yongsheng Yu}{Week 1 -- 18}
+  \course{H7}{3}{5}{Lens Design Experiment}{Building 6·South 402}{Hao Ying}{Week 5 -- 15}
+  \newday % Tue.
+  \course{H9}{3}{5}{Marx's Principles}{Building 6·320}{Yang Wang}{Week 1 -- 18}
+  \course{H8}{6}{8}{OE Detection Technology}{Building 6·320}{Xuefeng Huang}{Week 1 -- 18}
+  \newday % Wed.
+  \course{H7}{3}{4}{Laster Principle}{Building 6·301}{Haidan Mao}{Week 1 -- 18}
+  \course{H9}{6}{7}{Empl Guide 3 | Situ Policy 5}{Building 6·301 | Building 6·208}{MJH | QXR}{Week 5 -- 14}
+  \course{H5}{8}{9}{Computational Phys}{Building 6·215}{Wenjia Rao}{Week 1 -- 18}
+  \course{H1}{10}{11}{Essay Writing}{Building 6·416}{Yueqin Shi}{Week 1 -- 18}
+  \newday % Thu.
+  \course{H6}{1}{2}{Sensing System}{Building 6·110}{Benxiao Cai}{Week 1 -- 18}
+  \course{H5}{3}{5}{Quantum Mechanics$^\dagger$}{Building 6·225}{Mengnan Chen \& Yuan Li}{Week 1 -- 18}
+  \course{H3}{6}{8}{Modern Phys Experiment 2}{Building 6·South}{Xiangxiang Chen}{Week 5 -- 16}
+  \course{H8}{10}{12}{OE Info Experiment}{Building 6·South 302}{Yu Zhou}{Week 5 -- 15}
+  \newday % Fri.
+  \course{H7}{1}{2}{Optical Lens Design}{Building 6·422}{Hao Ying}{Week 1 -- 18}
+  \course{H5}{3}{5}{Optoelectronics}{Building 6·202}{Ruixue Li \& Yuan Li}{Week 1 -- 18}
+  \course{H8}{6}{7}{Innovative Practice 4}{Building 7·216B}{Qinglong Huang}{Week 5 -- 16}
+  \course{H5}{8}{9}{Group Meeting}{Building 6·Middle}{Yuan Li}{Week 1 -- 18}
+  \more{·School Starts: 11 / 09 / 2023 ·Winter Vacation: 26 / 01 / 2024 
+        ·Hangzhou Asian Games: 23 / 09 / 2023 -- 08 / 10 / 2023}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+    \makeframe{Axia\!\texttt{'}\!s Timetable -- Semester 6}
+    
+    % Mon.
+    \course{H5}{7}{8}{Introduction to Cond.}{Building 6·225}{Mn Chen}{Week 1 -- 16}
+
+    \newday % Tue.
+    \course{H1}{8}{9}{Group Theory}{Building 6·211}{Li Ge}{Week 1 -- 16}
+    \course{H5}{10}{11}{Mesoscopic Physics}{Building 6·211}{Yuan Li \& Mn Chen}{Week 1 -- 16}
+
+    \newday % Wed.
+    \course{H6}{1}{2}{Engineering Drawing}{Building 7·3012}{Hc Wang}{Week 1 -- 16}
+    \course{H9}{8}{9}{Situation \& Policy 6}{Building 6·302}{Xr Qi}{Double Week 10 -- 16}
+    \course{H9}{10}{11}{Operational Simu.}{Building 4·411 -- 413}{Li Zhang}{Week 1 -- 8}
+
+    \newday % Thu.
+    \course{H4}{1}{2}{Intercultural Comm.}{Building 3·422}{Cl Zuo}{Week 1 -- 16}
+    \course{H2}{3}{4}{Radio Direction}{Athletic Field}{Ys Yu}{Week 1 -- 16}
+    \course{H5}{6}{8}{Solid State Physics}{Building 6·408}{Kw Sun}{Week 1 -- 16}
+
+    \newday % Fri.
+    \course{H8}{1}{2}{OE. Display}{Building 7·3012}{Wt Su}{Week 1 -- 16}
+    \course{H3}{6}{8}{Group Meeting}{Building 6·Middle}{Yuan Li}{Week 1 -- 16}
+
+    \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
+\end{tikzpicture}
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo1.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.pdf	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.pdf	2024-02-02 21:42:36 UTC (rev 69678)

Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -0,0 +1,64 @@
+\documentclass[libertinus,cn,sharp,portiait]{litetable}
+\setCJKfamilyfont{zhhei}{Chiron Hei HK}\renewcommand*\heiti{\CJKfamily{zhhei}}
+
+\begin{document}
+\timelist{
+    8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
+    8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55
+}
+\sticker{favicon}
+
+\begin{tikzpicture}
+    \makeframe{Axia\!\texttt{'}\!s Timetable -- Semester 5} % make title & background
+    % Mon.
+    \course{H1}{1}{2}{羽毛球}{羽毛球场}{Yongsheng Yu}{Week 1 -- 18}
+    \course{H7}{3}{5}{镜头设计实验}{第6教研楼南· 402}{Hao Ying}{Week 5 -- 15}
+    \newday % Tue.
+    \course{H9}{3}{5}{马克思主义原理}{第6教研楼北·320}{Yang Wang}{Week 1 -- 18}
+    \course{H8}{6}{8}{光电检测技术}{第6教研楼北·320}{Xuefeng Huang}{Week 1 -- 18}
+    \newday % Wed.
+    \course{H7}{3}{4}{激光原理}{第6教研楼中·301}{Haidan Mao}{Week 1 -- 18}
+    \course{H9}{6}{7}{就业3 | 形策5}{6教中301 | 6教北208}{MJH | QXR}{Week 5 -- 14}
+    \course{H5}{8}{9}{计算物理}{第6教研楼中·215}{Wenjia Rao}{Week 1 -- 18}
+    \course{H1}{10}{11}{论文写作指导}{第6教研楼北·416}{Yueqin Shi}{Week 1 -- 18}
+    \newday % Thu.
+    \course{H6}{1}{2}{智能传感系统}{第6教研楼北·110}{Benxiao Cai}{Week 1 -- 18}
+    \course{H5}{3}{5}{高等量子力学}{第6教研楼中·225}{Mengnan Chen \& Yuan Li}{Week 1 -- 18}
+    \course{H3}{6}{8}{近代物理实验2}{第6教研楼南}{Xiangxiang Chen}{Week 5 -- 16}
+    \course{H8}{10}{12}{光电信息技术实验}{第6教研楼南·302}{Yu Zhou}{Week 5 -- 15}
+    \newday % Fri.
+    \course{H7}{1}{2}{光学镜头设计}{第6教研楼北·422}{Hao Ying}{Week 1 -- 18}
+    \course{H5}{3}{5}{光电子学}{第6教研楼北·202}{Ruixue Li \& Yuan Li}{Week 1 -- 18}
+    \course{H8}{6}{7}{光电创新实践4}{第7教研楼北·216B}{Qinglong Huang}{Week 5 -- 16}
+    \course{H5}{8}{9}{研究生组会}{第6教研楼中}{Yuan Li}{Week 1 -- 18}
+    \more{·School Starts: 11 / 09 / 2023 ·Winter Vacation: 26 / 01 / 2024 ·Hangzhou Asian Games: 23 / 09 / 2023 -- 08 / 10 / 2023}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+    \makeframe{Axia\!\texttt{'}\!s Timetable -- Semester 6}
+    
+    % Mon.
+    \course{H5}{7}{8}{凝聚态物理导论}{第6教研楼中·225}{Mn Chen}{Week 1 -- 16}
+
+    \newday % Tue.
+    \course{H1}{8}{9}{群论}{第6教研楼中·211}{Li Ge}{Week 1 -- 16}
+    \course{H5}{10}{11}{介观物理}{第6教研楼中·211}{Yuan Li \& Mn Chen}{Week 1 -- 16}
+
+    \newday % Wed.
+    \course{H6}{1}{2}{工程制图}{第7教研楼中·3012}{Hc Wang}{Week 1 -- 16}
+    \course{H9}{8}{9}{形势与政策6}{第6教研楼北·302}{Xr Qi}{Double Week 10 -- 16}
+    \course{H9}{10}{11}{高级创业运营仿真}{第4教研楼·411 -- 413}{Li Zhang}{Week 1 -- 8}
+
+    \newday % Thu.
+    \course{H4}{1}{2}{跨文化交际}{第3教研楼·422}{Cl Zuo}{Week 1 -- 16}
+    \course{H2}{3}{4}{无线电测向}{田径场}{Ys Yu}{Week 1 -- 16}
+    \course{H5}{6}{8}{固体物理}{第6教研楼北·408}{Kw Sun}{Week 1 -- 16}
+
+    \newday % Fri.
+    \course{H8}{1}{2}{光电显示技术}{第7教研楼中·3012}{Wt Su}{Week 1 -- 16}
+    \course{H3}{6}{8}{研究生组会}{第6教研楼中}{Yuan Li}{Week 1 -- 16}
+
+    \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
+\end{tikzpicture}
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-demo2.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-cn.pdf
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-cn.tex	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-cn.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -1,210 +0,0 @@
-%% ******************************************************
-%% * This work may be distributed and/or modified under *
-%% * the conditions of the LaTeX Project Public License *
-%% *     http://www.latex-project.org/lppl.txt          *
-%% * either version 1.3c of this license or any later   *
-%% * version.                                           *
-%% ******************************************************
-\PassOptionsToPackage{quiet}{xeCJK}
-\PassOptionsToPackage{quiet}{fontspec}
-\PassOptionsToPackage{no-math}{fontspec}
-\documentclass[11pt]{article}
-\usepackage{geometry}
-\usepackage{indentfirst,setspace}
-\usepackage[toc]{multitoc}
-\setlength{\parindent}{2em}
-\setstretch{1.25}
-\usepackage{pdfpages}
-\usepackage[level]{datetime}
-\usepackage{unicode-math,xeCJK}
-\usepackage{authblk}
-\setmainfont{Libertinus Serif}
-\setsansfont{Libertinus Sans}
-\setCJKmainfont{SimSong}[BoldFont=Chiron Sung HK, ItalicFont=Kaiti SC]
-\makeatletter
-\usepackage{listings,dirtree}
-\lstdefinestyle{TeX}{
-    language      =  [LaTeX]TeX,
-    texcsstyle    =  *\color{H7},
-    numbers       =  none,
-    basicstyle    =  {\small\color{H6}\tt},
-    mathescape    =  false,
-    breaklines    =  true,
-    columns       =  fixed,
-    keywordstyle  =  \color{H3},
-    commentstyle  =  \color{darkgray},
-    tabsize       =  2,
-    keywords      =  {mail,flyleaf,sticker,logo,notebook,chapter,newnote,newnotesss,newnotessss,emptynote,newhdunote,
-    makeframe,course,more}
-}
-\usepackage{hyperref,xcolor,verbatim}
-
-\definecolor{pkgcolor}{Hsb}{103,.8,.5}
-\definecolor{moducolor}{Hsb}{290,.8,.5}
-\definecolor{cmdcolor}{Hsb}{188,.8,.5}
-\definecolor{filecolor}{Hsb}{207,.6,.7}
-\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
-\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
-\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
-\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
-\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
-\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
-\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
-\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
-
-\renewcommand*\l at subsection{\@dottedtocline{2}{1.5em}{2.1em}}
-\def\pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
-\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
-\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
-\def\datechange#1#2{%
-  \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
-  \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
-\makeatother
-
-\title{The \pkg{LiteTable} Template}
-\author[1]{Xia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
-\yyyymmdddate
-\date{\today}
-\affil[1]{\href{mailto:xiamyphys at gmail.com}{\texttt{xiamyphys at gmail.com}}}
-\date{\today\quad Version 2.2a\thanks{%
-  \url{https://github.com/xiamyphys/litetable}}}
-\begin{document}
-\maketitle
-
-\vspace{-2em}
-\begin{abstract}
-\pkg{LiteTable} 模板提供了一个多彩的课程表设计,本文档为\pkg{LiteTable} 模板的说明文档.
-
-\end{abstract}
-
-\tableofcontents\clearpage
-
-\section{Introduction}
-
-\subsection{本模板的目的}
-本模板提供了一个多彩的课程表设计. 
-
-如果你在使用本模板时遇到问题,或者有更好的建议,或者你想参与本模板或本人其他模板的开发,欢迎通过邮件 \href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com} 联络我.
-
-同样,你也可以加入我的\textsf\LaTeX{} 技術交流群 \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} 与我交流,来获取模板的内测版本.
-
-\subsection{所需宏集}
-本模板基于 \pkg{standalone} 文档类开发. 其需要 \pkg{tikz} 宏集去绘制图形,\pkg{kvoptions} 和 \pkg{etoolbox} 宏集用于提供全局选项,\pkg{expl3} 宏基用于支持数组,\pkg{ctex}宏集用于支持中文语言,\pkg{fontawesome5} 宏集提供一系列精美的图标.
-
-我强烈建议您使用终端机去执行以下命令,以将所有宏集更新到最新版本
-\begin{verbatim}
-    tlmgr update --self
-    tlmgr update --all
-\end{verbatim}
-
-如果您所在的地区存在网路封锁,你可以选择合适的镜像网站或其他方法\footnote{请遵循当地的网路条例.}. 欲详细了解,请前往 \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my TEX distribution?}
-
-\subsection{载入 \pkg{LiteTable} 和其模式}
-将文件 \verb|litetable.cls| 保存至你的项目根目录,然后创立一个 \verb|.tex| 文件,只需在第一行输入命令 \verb|\documentclass{litetable}| 即可.
-
-本模板提供了三个模式:\mode{date},\mode{style} 和 \mode{font}. 只需将你想要使用的模式选项分别添加在你的 \verb|.tex| 文件中命令 \verb|\documentclass[options]{litetable}| 的方括号中即可.
-
-\newpage
-\section{\pkg{LiteTable} 的模式}
-\begin{verbatim}
-  \documentclass[options]{litetable}
-\end{verbatim}
-\subsection{\mode{date} 模式}
-此模式有两个选项,\mode{en} 和 \mode{cn},可分别使工作日以英文或大陆简体显示,默认为英文.
-
-\subsection{\mode{style} 模式}
-此模式有两个选项,\mode{round} 和 \mode{sharp},可分别使课程块圆角或直角显示,默认为直角.
-
-\subsection{\mode{font} 模式}
-此模式有两个选项,\mode{times} 和 \mode{libertinus},可分别使字体为 ``Times New Roman'' 或 ``Libertinus'',默认为 ``Times New Roman''.\footnote{在使用 ``Libertinus'' 选项前请确保电脑中已安装该字体.}
-
-\section{\pkg{LiteTable} 的命令}
-
-\subsection{\cmd{makeframe} 命令}
-\begin{verbatim}
-    \makeframe{Timetable -- Semester 5}
-\end{verbatim}
-
-此命令可建立一个标题为 ``Timetable -- Semester 5'' 的空白课程表.
-
-\subsection{The \cmd{timelist} command}
-\begin{verbatim}
-    \timelist{
-      8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
-      8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55
-    }
-\end{verbatim}
-
-此命令可将时间添加至课程表的左侧,内容的第一行是每节课程开始时间,第二行是每节课程的结束时间,时间之间用逗号(\verb|,|)分隔,第一行与第二行之间用分号(\verb|;|)分隔.
-
-本课程表目前只支持每天12节课. 在后续更新中,将支持自定义每天的课程节数,敬请期待!
-
-\subsection{\cmd{course} 命令}
-\begin{verbatim}
-    \course{H5}{3}{5}{AQM}{Building 6·225}{Yuan Li \& Mengnan Chen}{Week 1 -- 18}
-\end{verbatim}
-
-此命令共有7个变量.
-\begin{itemize}
-  \item 第一个为你想选择的课程块颜色,从 ``H1'' 到 ``H9'' 可选.
-  \item 第二个和第三个为课程的起始节数和结束节数.
-  \item 第四个为课程的名称.
-  \item 第五个为课程的地址.
-  \item 第六个为教师的名字.
-  \item 第七个为课程的起始周和结束周.
-\end{itemize}
-
-\subsection{\cmd{newday} 命令}
-此命令可切换当前日到第二天,此时课程块会右移一格.
-
-\subsection{\cmd{more} 命令}
-\begin{verbatim}
-  \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
-\end{verbatim}
-此命令可在课程表末尾添加备注信息.
-
-\subsection{\cmd{sticker} 命令}
-\begin{verbatim}
-  \sticker{favicon}
-\end{verbatim}
-在使用此命令后页面的右下方会添加一张贴纸.
-
-\newpage
-\section{版本历史}
-
-课程表的设计源于杭电助手(\href{https://www.hdu.edu.cn}{杭州电子科技大学}\footnote{https://en.wikipedia.org/wiki/Hangzhou\_Dianzi\_University})学生课表页面\footnote{仅本校师生可访问.} 页面排版十分精美,于是本人使用\LaTeX{} 复刻出了课程表样式,并制作成模板分享给大家.
-
-\textsf{\bfseries Version 1.0} 于01/09/2023完成开发,并发布在\href{https://www.latexstudio.net/index/details/index/mid/3625.html}{LaTeX 工作室} (杭州萧山)和\href{http://xhslink.com/od7Ycw}{小红书}上,赢得了许多人的喜爱.
-
-\textsf{\bfseries Version 2.0a}于01/11/2023完成开发,并发布在\href{https://www.latexstudio.net/index/details/index/mid/3636.html}{LaTeX 工作室} (杭州萧山)和\href{http://xhslink.com/od7Ycw}{小红书}上. 此版本使用 \verb|.cls| 文件,使 \verb|main.tex| 文件更简洁. 同时,此版本添加了全局选项,可设置 ``课程块" 显示为圆角或直角. 此版本也支持一个 \verb|.tex| 文件中生成多张课表.
-
-\textsf{\bfseries Version 2.1a} 于05/11/2023完成开发. 支持 libertinus 字体.
-
-\textsf{\bfseries Version 2.2a} 于31/01/2024完成开发. 此版本修复了分辨率超出的bug,更改纸张类型为美国信纸并支持自定义课程起始和结束时间.
-
-\datechange{01/09/2023}{Version 2.0a}
-\begin{itemize}
-    \item 支持课程块显示为圆角或直角.
-    \item 支持一个 \verb|.tex| 文件中生成多张课表.
-\end{itemize}
-
-\datechange{05/11/2023}{Version 2.1a}
-\begin{itemize}
-    \item 支持 libertinus 字体.
-\end{itemize}
-
-\datechange{31/01/2024}{Version 2.2a}
-\begin{itemize}
-    \item 修复了分辨率超出的bug.
-    \item 更改纸张类型为美国信纸.
-    \item 支持自定义课程起始和结束时间.
-    \item 支持在页面右下角添加一个你喜欢的小贴纸.
-\end{itemize}
-
-\newpage\setstretch{1}
-\appendix
-\section{代码示例}
-\lstinputlisting[style=TeX]{litetable-demo.tex}
-
-\includepdf[pages=last-1,nup=1x2,angle=90]{litetable-demo.pdf}
-\end{document}
\ No newline at end of file

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

Deleted: trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-en.tex	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-doc-en.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -1,210 +0,0 @@
-%% ******************************************************
-%% * This work may be distributed and/or modified under *
-%% * the conditions of the LaTeX Project Public License *
-%% *     http://www.latex-project.org/lppl.txt          *
-%% * either version 1.3c of this license or any later   *
-%% * version.                                           *
-%% ******************************************************
-\PassOptionsToPackage{quiet}{xeCJK}
-\PassOptionsToPackage{quiet}{fontspec}
-\PassOptionsToPackage{no-math}{fontspec}
-\documentclass[11pt]{article}
-\usepackage{geometry}
-\usepackage{pdfpages}
-\usepackage[level]{datetime}
-\usepackage{unicode-math,xeCJK}
-\usepackage{authblk}
-\setmainfont{Libertinus Serif}
-\setsansfont{Libertinus Sans}
-\setmonofont{NotoSansMono}[
-  Scale=MatchLowercase,
-  Extension=.ttf,
-  UprightFont=*-Light,
-  BoldFont=*-Medium
-]
-\makeatletter
-\usepackage{listings,dirtree}
-\lstdefinestyle{TeX}{
-    language      =  [LaTeX]TeX,
-    texcsstyle    =  *\color{H7},
-    numbers       =  none,
-    basicstyle    =  {\small\color{H6}\tt},
-    mathescape    =  false,
-    breaklines    =  true,
-    columns       =  fixed,
-    keywordstyle  =  \color{H3},
-    commentstyle  =  \color{darkgray},
-    tabsize       =  2,
-    keywords      =  {mail,flyleaf,sticker,logo,notebook,chapter,newnote,newnotesss,newnotessss,emptynote,newhdunote,
-    makeframe,course,more}
-}
-\usepackage{hyperref,xcolor,verbatim}
-
-\definecolor{pkgcolor}{Hsb}{103,.8,.5}
-\definecolor{moducolor}{Hsb}{290,.8,.5}
-\definecolor{cmdcolor}{Hsb}{188,.8,.5}
-\definecolor{filecolor}{Hsb}{207,.6,.7}
-\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
-\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
-\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
-\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
-\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
-\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
-\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
-\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
-
-\renewcommand*\l at subsection{\@dottedtocline{2}{1.5em}{2.1em}}
-\def\pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
-\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
-\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
-\def\datechange#1#2{%
-  \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
-  \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
-\makeatother
-
-\title{The \pkg{LiteTable} Template}
-\author[1]{Xia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
-\yyyymmdddate
-\date{\today}
-\affil[1]{\href{mailto:xiamyphys at gmail.com}{\texttt{xiamyphys at gmail.com}}}
-\date{\today\quad Version 2.2a\thanks{%
-  \url{https://github.com/xiamyphys/litetable}}}
-\begin{document}
-\maketitle
-
-\begin{abstract}
-This is the document for \pkg{LiteTable} template, which provides a beautiful design of class schedule with colorful course blocks.
-
-\end{abstract}
-
-\tableofcontents
-
-\section{Introduction}
-
-\subsection{The purpose of this template}
-This template provides a beautiful design of class schedule with colorful course blocks.
-
-If you meet bugs when using this template, or you have better suggestions or ideas, or you want to participate in the development of the template or other templates by me, welcome to contact via email \href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com}.
-
-Also, you can join my \textsf\LaTeX{} Template Discussion \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} to communicate with me and get the insider preview edition of the template.
-
-\subsection{Packages required}
-This template is based on the template \pkg{standalone}. And it requires \pkg{tikz} package to plot some graphics, \pkg{kvoptions} and \pkg{etoolbox} packages to provide global options, \pkg{expl3} package to support \cmd{timelist} array, \pkg{ctex} package to supports the \textbf{Chinese, Simplified} language and \pkg{fontawesome5} package to provides a set of beautiful icons.
-
-I strongly suggest that you should use cmd to implement the commands to update all the packages to the latest version or switch to portable version instead.
-\begin{verbatim}
-    tlmgr update --self
-    tlmgr update --all
-\end{verbatim}
-
-If you are in some areas with awful Internet environment, you can choose proper mirror source or use other means\footnote{Please comply with local network regulations.}. To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my TEX distribution?}
-
-\subsection{Loading \pkg{LiteTable} and its modes}
-Save the file \verb|litetable.cls| to your project's root directory, and then create a \verb|.tex| file, just input the command \verb|\documentclass{litetable}| on the first line.
-
-The template provides three modes, \mode{date}, \mode{style} and \mode{font}. Just add the options of the modes you want separately in the square bracket of the command \verb|\documentclass[options]{litetable}| in your \verb|.tex| file.
-
-\newpage
-\section{Modes of \pkg{LiteTable}}
-\begin{verbatim}
-  \documentclass[options]{litetable}
-\end{verbatim}
-\subsection{The \mode{date} mode}
-This mode has two options, \mode{en} and \mode{cn}, which can make the weekdays display in English or 大陆简体, and the dafault option is English.
-
-\subsection{The \mode{style} mode}
-This mode has two options, \mode{round} and \mode{sharp}, which can make the course block's corners be round or sharp, and the default option is sharp.
-
-\subsection{The \mode{font} mode}
-This mode has two options, \mode{times} and \mode{libertinus}, which can make the font to be ``Times New Roman'' or ``Libertinus'', and the default option is ``Times New Roman''.\footnote{Please ensure that your computer has been already installed the font ``Libertinus'' when using this option.}
-
-\section{Commands of \pkg{LiteTable}}
-
-\subsection{The \cmd{makeframe} command}
-\begin{verbatim}
-    \makeframe{Timetable -- Semester 5}
-\end{verbatim}
-
-This command can create an empty class schedule with the title ``Timetable -- Semester 5''.
-
-\subsection{The \cmd{timelist} command}
-\begin{verbatim}
-    \timelist{
-      8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
-      8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55
-    }
-\end{verbatim}
-
-This command can add time to the left side of the timetable, and the first line of the content is the start time of the class while the second line of the content is the end time of the class, each time separates with comma (\verb|,|), the first line and the second line separates with semicolon (\verb|;|).
-
-The timetable currently only supports 12 classes per day. In the future updates, customization of the number of courses per day will be supported.
-
-\subsection{The \cmd{course} command}
-\begin{verbatim}
-    \course{H5}{3}{5}{AQM}{Building 6·225}{Yuan Li \& Mengnan Chen}{Week 1 -- 18}
-\end{verbatim}
-
-There are 7 variables in this command.
-\begin{itemize}
-  \item The 1st one is the color of the class that you want, from ``H1'' to ``H5''.
-  \item The 2nd and 3rd ones is the starting number and ending number of the class.
-  \item The 4th one is the name of the class.
-  \item The 5th one is the address of the class.
-  \item The 6th one is the name of the teacher(s).
-  \item The last one is the start week and end week of the class.
-\end{itemize}
-
-\subsection{The \cmd{newday} command}
-This command can switch the current weekday to the next day, then the course will move right one grid.
-
-\subsection{The \cmd{more} command}
-\begin{verbatim}
-  \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
-\end{verbatim}
-This command can add remark at the end of the class schedule.
-
-\subsection{The \cmd{sticker} command}
-\begin{verbatim}
-  \sticker{favicon}
-\end{verbatim}
-There will be a sticker on the southeast of the page after you add,otherwise it won't.
-
-\newpage
-\section{Version History}
-
-The design of this course schedule originated from the student course schedule web page\footnote{Only those studying at or graduated from Hangzhou Dianzi University can have the permission of access.} of the \href{https://www.hduhelp.cn/}{HDUHelp} in \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}\footnote{https://en.wikipedia.org/wiki/Hangzhou\_Dianzi\_University}. The layout is very beautiful and then I used \LaTeX{} to imitate that style and made a class schedule template to share with everyone.
-
-\textsf{\bfseries Version 1.0} was finished on 1 September, 2023 and released on \href{https://www.latexstudio.net/index/details/index/mid/3625.html}{LaTeX Studio} (Xiaoshan, Hangzhou) and \href{http://xhslink.com/od7Ycw}{Xiaohongshu}, where won the favor of many people.
-
-\textsf{\bfseries Version 2.0a} was finished developing on 1 November, 2023 and released on \href{https://www.latexstudio.net/index/details/index/mid/3636.html}{LaTeX Studio} (Xiaoshan, Hangzhou) and \href{http://xhslink.com/od7Ycw}{Xiaohongshu}. This version used \verb|.cls| files to make the \verb|main.tex| file more concise. Also, this version have added a global option to choose whether the corners of the ``course Block" to be round or sharp. And this version support adds multiply class schedules in one \verb|.tex| file.
-
-\textsf{\bfseries Version 2.1a} was finished developing on 5 November, 2023. Supports the libertinus font.
-
-\textsf{\bfseries Version 2.2a} was finished developing on 31 January, 2024. This Version fixed the bug of resolution exceeded, changed paper type to US letter and support custom course start time and end time.
-
-\datechange{01/09/2023}{Version 2.0a}
-\begin{itemize}
-    \item Supports the course block's corners be round or sharp.
-    \item Supports multiply class schedules in one \verb|.tex| file.
-\end{itemize}
-
-\datechange{05/11/2023}{Version 2.1a}
-\begin{itemize}
-    \item Supports the libertinus font.
-\end{itemize}
-
-\datechange{31/01/2024}{Version 2.2a}
-\begin{itemize}
-    \item Fixed the bug of resolution exceeded.
-    \item Changed paper type to US letter.
-    \item Support custom course start time and end time.
-    \item Support add sticker as you like at the southeast of the page.
-\end{itemize}
-
-\newpage
-\appendix
-\section{Document Example}
-\lstinputlisting[style=TeX]{litetable-demo.tex}
-
-\includepdf[pages=last-1,nup=1x2,angle=90]{litetable-demo.pdf}
-\end{document}
\ No newline at end of file

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

Index: trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf	2024-02-02 21:42:36 UTC (rev 69678)

Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex	2024-02-02 21:42:36 UTC (rev 69678)
@@ -0,0 +1,225 @@
+%% ******************************************************
+%% * This work may be distributed and/or modified under *
+%% * the conditions of the LaTeX Project Public License *
+%% *     http://www.latex-project.org/lppl.txt          *
+%% * either version 1.3c of this license or any later   *
+%% * version.                                           *
+%% ******************************************************
+\PassOptionsToPackage{quiet}{xeCJK}
+\PassOptionsToPackage{quiet}{fontspec}
+\PassOptionsToPackage{no-math}{fontspec}
+\documentclass[11pt]{article}
+\usepackage{geometry}
+\usepackage{pdfpages}
+\usepackage[level]{datetime}
+\usepackage{unicode-math,xeCJK}
+\usepackage{authblk}
+\usepackage{indentfirst,setspace}
+% \usepackage[toc]{multitoc}
+% \setstretch{1.25}
+\setmainfont{Libertinus Serif}
+\setsansfont{Libertinus Sans}
+\setCJKmainfont{Chiron Sung HK}
+[
+  BoldFont=Chiron Sung HK Bold,
+  ItalicFont=Kaiti SC
+]
+\makeatletter
+\usepackage{listings,dirtree}
+\lstdefinestyle{TeX}{
+    language      =  [LaTeX]TeX,
+    texcsstyle    =  *\color{H7},
+    numbers       =  none,
+    basicstyle    =  {\footnotesize\color{H6}\tt},
+    mathescape    =  false,
+    breaklines    =  true,
+    columns       =  fixed,
+    keywordstyle  =  \color{H3},
+    commentstyle  =  \color{darkgray},
+    tabsize       =  2,
+    keywords      =  {mail,flyleaf,sticker,logo,notebook,chapter,newnote,newnotesss,newnotessss,emptynote,newhdunote,
+    makeframe,course,more}
+}
+\usepackage{hyperref,xcolor,verbatim}
+
+\definecolor{pkgcolor}{Hsb}{103,.8,.5}
+\definecolor{moducolor}{Hsb}{290,.8,.5}
+\definecolor{cmdcolor}{Hsb}{188,.8,.5}
+\definecolor{filecolor}{Hsb}{207,.6,.7}
+\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
+\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
+\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
+\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
+\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
+\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
+\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
+\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
+
+\def\pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
+\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
+\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
+\def\datechange#1#2{%
+  \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
+  \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
+\makeatother
+
+\title{The \pkg{LiteTable} Template}
+\author[1]{Xia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
+\yyyymmdddate
+\date{\today}
+\affil[1]{\href{mailto:xiamyphys at gmail.com}{\texttt{xiamyphys at gmail.com}}}
+\date{\today\quad Version 2.3a\thanks{%
+  \url{https://github.com/xiamyphys/litetable}}}
+\begin{document}
+\maketitle
+
+\vspace{-2em}
+\begin{abstract}
+This is the document for \pkg{LiteTable} template, which provides a beautiful design of class schedule with colorful course blocks.
+
+\end{abstract}
+
+\tableofcontents\clearpage
+
+\section{Introduction}
+
+\subsection{The purpose of this template}
+This template provides a beautiful design of class schedule with colorful course blocks.
+
+If you meet bugs when using this template, or you have better suggestions or ideas, or you want to participate in the development of the template or other templates by me, welcome to contact via email \href{mailto:xiamyphys at gmail.com}{xiamyphys at gmail.com}.
+
+Also, you can join my \textsf\LaTeX{} Template Discussion \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} to communicate with me and get the insider preview edition of the template.
+
+\subsection{Packages required}
+This template is based on the template \pkg{standalone}. And it requires \pkg{tikz} package to plot some graphics, \pkg{kvoptions} and \pkg{etoolbox} packages to provide global options, \pkg{expl3} package to support \cmd{timelist} array, \pkg{ctex} package to supports the \textbf{Chinese, Simplified} language and \pkg{fontawesome5} package to provides a set of beautiful icons.
+
+I strongly suggest that you should use cmd to implement the commands to update all the packages to the latest version or switch to portable version instead.
+\begin{verbatim}
+    tlmgr update --self
+    tlmgr update --all
+\end{verbatim}
+
+If you are in some areas with awful Internet environment (such as GFWz), you can choose proper mirror source or use other means\footnote{Please comply with local network regulations.}. To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?}
+
+\subsection{Loading \pkg{LiteTable} and its options}
+Save the file \verb|litetable.cls| to your project's root directory, and then create a \verb|.tex| file, just input the command \verb|\documentclass{litetable}| on the first line.
+
+The template provides four options, \mode{date}, \mode{style}, \mode{direction} and \mode{font}. Just add the modes of the options you want separately in the square bracket of the command \verb|\documentclass[options]{litetable}| in your \verb|.tex| file.
+
+\newpage
+\section{Global Options of \pkg{LiteTable}}
+\begin{verbatim}
+  \documentclass[options]{litetable}
+\end{verbatim}
+\subsection{The \mode{date} option}
+This option has two modes, \mode{en} and \mode{cn}, which can make the weekdays display in English or 大陆简体, and the dafault mode is English.
+
+\subsection{The \mode{style} option}
+This option has two modes, \mode{round} and \mode{sharp}, which can make the course block's corners be round or sharp, and the default mode is sharp.
+
+\subsection{The \mode{direction} option}
+This option has two modes, \mode{portrait} and \mode{landscape}, which can make the timetable displayed portrait or horizontally.
+
+\subsection{The \mode{font} option}
+This option has two modes, \mode{times} and \mode{libertinus}, which can make the font to be ``Times New Roman'' or ``Libertinus'', and the default mode is ``Times New Roman''.\footnote{Please ensure that your computer has been already installed the font ``Libertinus'' when using this option.}
+
+\section{Commands of \pkg{LiteTable}}
+
+\subsection{The \cmd{makeframe} command}
+\begin{verbatim}
+    \makeframe{Timetable -- Semester 5}
+\end{verbatim}
+
+This command can create an empty class schedule with the title ``Timetable -- Semester 5''.
+
+\subsection{The \cmd{timelist} command}
+\begin{verbatim}
+    \timelist{
+      8:05,8:55,10:00,10:50,11:40,13:30,14:20,15:15,16:05,18:30,19:20,20:10;
+      8:50,9:40,10:45,11:35,12:25,14:15,15:05,16:00,16:50,19:15,20:05,20:55
+    }
+\end{verbatim}
+
+This command can add time to the left side of the timetable, and the first line of the content is the start time of the class while the second line of the content is the end time of the class, each time separates with comma (\verb|,|), the first line and the second line separates with semicolon (\verb|;|).
+
+The timetable can automatically generate the corresponding number of rows based on the number of time groups you enter. For example, the code above has 12 groups of times, a 12-row timetable will be generated.
+
+\subsection{The \cmd{course} command}
+\begin{verbatim}
+    \course{H5}{3}{5}{AQM}{Building 6·225}{Yuan Li \& Mengnan Chen}{Week 1 -- 18}
+\end{verbatim}
+
+There are 7 variables in this command.
+\begin{itemize}
+  \item The 1st one is the color of the class that you want, from ``H1'' to ``H5''.
+  \item The 2nd and 3rd ones is the starting number and ending number of the class.
+  \item The 4th one is the name of the class.
+  \item The 5th one is the address of the class.
+  \item The 6th one is the name of the teacher(s).
+  \item The last one is the start week and end week of the class.
+\end{itemize}
+
+\subsection{The \cmd{newday} command}
+This command can switch the current weekday to the next day, then the course will move right one grid.
+
+\subsection{The \cmd{more} command}
+\begin{verbatim}
+  \more{·School Start: 04 / 03 / 2024 ·Summer Vacation: 05 / 07 / 2024}
+\end{verbatim}
+This command can add remark at the end of the class schedule.
+
+\subsection{The \cmd{sticker} command}
+\begin{verbatim}
+  \sticker{favicon}
+\end{verbatim}
+There will be a sticker on the southeast of the page after you add,otherwise it won't.
+
+\section{Version History}
+
+The design of this course schedule originated from the student course schedule web page\footnote{Only those studying at or graduated from Hangzhou Dianzi University can have the permission of access.} of the \href{https://www.hduhelp.cn/}{HDUHelp} in \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}\footnote{https://en.wikipedia.org/wiki/Hangzhou\_Dianzi\_University}. The layout is very beautiful and then I used \LaTeX{} to imitate that style and made a class schedule template to share with everyone.
+
+\textsf{\bfseries Version 1.0} was finished on 1 September, 2023 and released on \href{https://www.latexstudio.net/index/details/index/mid/3625.html}{\LaTeX{} Studio} (Xiaoshan, Hangzhou) and \href{http://xhslink.com/od7Ycw}{Xiaohongshu}, where won the favor of many people.
+
+\textsf{\bfseries Version 2.0a} was finished developing on 1 November, 2023 and released on \href{https://www.latexstudio.net/index/details/index/mid/3636.html}{\LaTeX{} Studio} (Xiaoshan, Hangzhou) and \href{http://xhslink.com/od7Ycw}{Xiaohongshu}. This version used \verb|.cls| files to make the \verb|main.tex| file more concise. Also, this version have added a global option to choose whether the corners of the ``course Block" to be round or sharp. And this version support adds multiply class schedules in one \verb|.tex| file.
+
+\textsf{\bfseries Version 2.1a} was finished developing on 5 November, 2023. Supports the libertinus font.
+
+\textsf{\bfseries Version 2.2a} was finished developing on 31 January, 2024. This version fixed the bug of resolution exceeded, changed paper type to US letter and support custom course start time and end time.
+
+\textsf{\bfseries Version 2.3a} was finished developing on 2 February, 2024. This version supports automatically generate the corresponding number of rows based on the number of time groups you enter, and in this version, timetable can be displayed horizontally or portrait as you like.
+
+\setstretch{.5}
+\datechange{2023/09/01}{Version 2.0a}
+\begin{itemize}
+    \item Supports the course block's corners be round or sharp.
+    \item Supports multiply class schedules in one \verb|.tex| file.
+\end{itemize}
+
+\datechange{2023/11/05}{Version 2.1a}
+\begin{itemize}
+    \item Supports the libertinus font.
+\end{itemize}
+
+\datechange{2024/01/31}{Version 2.2a}
+\begin{itemize}
+    \item Fixed the bug of resolution exceeded.
+    \item Changed paper type to US letter.
+    \item Support custom course start time and end time.
+    \item Support add sticker as you like at the southeast of the page.
+    \item Provide simplified Chinese documentation.
+\end{itemize}
+
+\datechange{2024/02/02}{Version 2.3a}
+\begin{itemize}
+  \item Supports automatically generate the corresponding number of rows based on the number of time groups you enter.
+  \item Timetable can be displayed portrait or horizontally as you like.
+\end{itemize}
+
+\newpage\setstretch{1}
+\appendix
+\section{Document Example}
+\lstinputlisting[style=TeX]{litetable-demo1.tex}
+
+\includepdf[pages=-,nup=1x2]{litetable-demo1.pdf}
+\includepdf[pages=-]{litetable-demo2.pdf}
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/litetable/litetable-en.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls	2024-02-02 21:42:21 UTC (rev 69677)
+++ trunk/Master/texmf-dist/tex/latex/litetable/litetable.cls	2024-02-02 21:42:36 UTC (rev 69678)
@@ -13,34 +13,39 @@
 %% ************************************************************************************************************
 \NeedsTeXFormat{LaTeX2e}
 \PassOptionsToPackage{quiet}{xeCJK}
-\PassOptionsToPackage{quiet}{fontspec}
 \PassOptionsToPackage{no-math}{fontspec}
-\ProvidesClass{litetable}[2024/01/31/ v2.2a LiteTable document class]
+\ProvidesClass{litetable}[2024/02/02/ v2.3a LiteTable document class]
 
 % ---------- 全局选项 ---------- %
 \RequirePackage{kvoptions}
 \RequirePackage{etoolbox}
 \SetupKeyvalOptions{family=LITE, prefix=LITE@, setkeys=\kvsetkeys}
-\newcommand{\ekv}[1]{\kvsetkeys{LITE}{#1}}
 
 \DeclareStringOption[sharp]{style}
-\DeclareVoidOption{round}{\ekv{style=round}}
-\DeclareVoidOption{sharp}{\ekv{style=sharp}}
+\DeclareVoidOption{round}{\kvsetkeys{LITE}{style=round}}
+\DeclareVoidOption{sharp}{\kvsetkeys{LITE}{style=sharp}}
 
+\DeclareStringOption[portiait]{direction}
+\DeclareVoidOption{portiait}{\kvsetkeys{LITE}{direction=portiait}}
+\DeclareVoidOption{landscape}{\kvsetkeys{LITE}{direction=landscape}}
+
 \DeclareStringOption[en]{date}
-\DeclareVoidOption{en}{\ekv{date=en}}
-\DeclareVoidOption{cn}{\ekv{date=cn}}
+\DeclareVoidOption{en}{\kvsetkeys{LITE}{date=en}}
+\DeclareVoidOption{cn}{\kvsetkeys{LITE}{date=cn}}
 
 \DeclareStringOption[times]{font}
-\DeclareVoidOption{times}{\ekv{date=times}}
-\DeclareVoidOption{libertinuTs}{\ekv{date=libertinus}}
+\DeclareVoidOption{times}{\kvsetkeys{LITE}{date=times}}
+\DeclareVoidOption{libertinus}{\kvsetkeys{LITE}{date=libertinus}}
 
 \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{standalone}}
 \ProcessKeyvalOptions*\relax
-\LoadClass[tikz,margin=6pt]{standalone}
 
+\LoadClass[tikz]{standalone}
+
 % ---- 文本中的数字 & 字母设置 ---- %
-\RequirePackage{ctex}
+\RequirePackage{xeCJK}
+\setCJKfamilyfont{zhhei}{Heiti SC}
+\newcommand*\heiti{\CJKfamily{zhhei}} 
 \ifdefstring{\LITE at font}{libertinus}{
 \setmainfont{Libertinus Serif}
 \setsansfont{Libertinus Sans}
@@ -55,7 +60,6 @@
     BoldItalicFont = *-bolditalic ,
     Extension = .otf ,
     Scale = 1.0]
-    
   \setsansfont{texgyreheros}[
     UprightFont = *-regular ,
     BoldFont = *-bold ,
@@ -70,35 +74,35 @@
 }{\relax}
 
 % ---------- 色彩组合 ---------- %
-\definecolor{darkgray}{HTML}{727477}% 时间颜色
-\definecolor{darkergray}{HTML}{F1F3F5}% 深色块
-\definecolor{lightergray}{HTML}{FCFDFE}% 浅色块
-\definecolor{blackgray}{HTML}{1A1D21}% 序号颜色
-\definecolor{H1}{HTML}{74A7A2}% 深绿
+\definecolor{darkgray}{HTML}{727477} % 时间颜色
+\definecolor{darkergray}{HTML}{F1F3F5} % 深色块
+\definecolor{lightergray}{HTML}{FCFDFE} % 浅色块
+\definecolor{blackgray}{HTML}{1A1D21} % 序号颜色
+\definecolor{H1}{HTML}{74A7A2} % 深绿
 \definecolor{H1*}{HTML}{E9EEED}
 \definecolor{H1**}{HTML}{009787}
-\definecolor{H2}{HTML}{50C9BD}% 浅绿
+\definecolor{H2}{HTML}{50C9BD} % 浅绿
 \definecolor{H2*}{HTML}{E1F3F2}
 \definecolor{H2**}{HTML}{009D8F}
-\definecolor{H3}{HTML}{86AFFE}% 深蓝
+\definecolor{H3}{HTML}{86AFFE} % 深蓝
 \definecolor{H3*}{HTML}{DBE7FF}
 \definecolor{H3**}{HTML}{1663F5}
-\definecolor{H4}{HTML}{6BC0EB}% 浅蓝
+\definecolor{H4}{HTML}{6BC0EB} % 浅蓝
 \definecolor{H4*}{HTML}{D8EFFA}
 \definecolor{H4**}{HTML}{0072B1}
-\definecolor{H5}{HTML}{D58DFB}% 深紫
+\definecolor{H5}{HTML}{D58DFB} % 深紫
 \definecolor{H5*}{HTML}{F2E3FB}
 \definecolor{H5**}{HTML}{A83FDF}
-\definecolor{H6}{HTML}{FF9393}% 浅紫
+\definecolor{H6}{HTML}{FF9393} % 浅紫
 \definecolor{H6*}{HTML}{FFDEDE}
 \definecolor{H6**}{HTML}{E73030}
-\definecolor{H7}{HTML}{FFA17D}% 深橙
+\definecolor{H7}{HTML}{FFA17D} % 深橙
 \definecolor{H7*}{HTML}{F5E1DA}
 \definecolor{H7**}{HTML}{E2612F}
-\definecolor{H8}{HTML}{F3C06A}% 浅橙
+\definecolor{H8}{HTML}{F3C06A} % 浅橙
 \definecolor{H8*}{HTML}{F3EADB}
 \definecolor{H8**}{HTML}{E09B14}
-\definecolor{H9}{HTML}{D09966}% 棕色
+\definecolor{H9}{HTML}{D09966} % 棕色
 \definecolor{H9*}{HTML}{F2E0D0}
 \definecolor{H9**}{HTML}{C96F1C}
 \pagecolor{lightergray}
@@ -108,10 +112,25 @@
 \definecolor{青碧}{HTML}{478384}
 \definecolor{金色}{HTML}{E6B422}
 
-\def\pagewidth{8.5 in}
-\def\pageheight{-11 in}
 \usetikzlibrary{calc}
-\ifdefstring{\LITE at style}{round}{\def\corners{round corners=6pt}}{\relax}
+\ifdefstring{\LITE at direction}{portiait}{
+  \def\pagewidth{8.5 in}
+  \def\pageheight{-11 in}
+  \def\rotatepage{
+    \def\pagewidth{11 in}
+    \def\pageheight{-8.5 in}
+  }
+}{\relax}
+\ifdefstring{\LITE at direction}{landscape}{
+  \def\pagewidth{11 in}
+  \def\pageheight{-8.5 in}
+  \def\rotatepage{
+    \def\pagewidth{8.5 in}
+    \def\pageheight{-11 in}
+  }
+}{\relax}
+
+\ifdefstring{\LITE at style}{round}{\def\corners{rounded corners}}{\relax}
 \ifdefstring{\LITE at style}{sharp}{\def\corners{}}{\relax}
 
 \ExplSyntaxOn % 二维数组
@@ -118,7 +137,8 @@
 \seq_new:N \l_node_row_seq  
 \seq_new:N \l_node_tmp_seq 
 \cs_set:Npn \timelist #1 {
-  \gdef\@timelist{#1} % 用于判断\@timelist是否存在
+  \gdef\@timelist{#1} % 判断\@timelist是否存在
+  \gdef\@classnum{\int_div_round:nn {\clist_count:n {#1}}{2}} % 计数模块
   \seq_set_split:Nnn \l_node_row_seq {;} {#1}
   \int_step_inline:nn{\seq_count:N \l_node_row_seq}
   {
@@ -159,42 +179,47 @@
 \RequirePackage{fontawesome5}
 \newcounter{number}
 \def\sticker{\gdef\@sticker}
-\newcommand{\makeframe}[1]{
-    \draw [gray!75] (0,0) rectangle (8.5 in,-11 in);
-    \fill [fill=darkergray,\corners] (0,0) rectangle (\pagewidth,1.5*\pageheight/27.5);% 顶部深灰色块
-    \node at (.5*\pagewidth,.75*\pageheight/27.5) {\huge\bfseries\sffamily #1};
-    \foreach \a in {2,4,...,12}
-    \fill [fill=darkergray,yshift=2.5*\pageheight/27.5+2*(\a-2)*\pageheight/27.5,\corners] (0,0) rectangle (\pagewidth,2*\pageheight/27.5);% 中间深灰色块(循环)
-    \fill [fill=darkergray,yshift=2.5*\pageheight/27.5+2*12*\pageheight/27.5,\corners] (0,0) rectangle (\pagewidth,\pageheight/27.5);% 底部深灰色块
-    \foreach \a in {0,1,2,...,12}
-    \draw [densely dashed,gray!75,yshift=2.5*\pageheight/27.5+2*\a*\pageheight/27.5,] (0,0)--(\pagewidth,0);% 分割虚线
+\def\makeframe#1{
+    \draw [gray!75] (0,0) rectangle (\pagewidth,\pageheight);
+    \fill [fill=darkergray,\corners] (0,0) rectangle (\pagewidth,{1.5*\pageheight/(2*\@classnum+3.5)});% 顶部深灰色块
+    \node at (.5*\pagewidth,{.75*\pageheight/(2*\@classnum+3.5)}) {\huge\bfseries\sffamily #1}; % 标题
+    \ifodd\@classnum
+    \foreach \a in {2,4,...,\@classnum,\@classnum+1}
+    \fill [fill=darkergray,yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*(\a-2)*\pageheight/(2*\@classnum+3.5),\corners] (0,0) rectangle (\pagewidth,{2*\pageheight/(2*\@classnum+3.5)}); % 中间深灰色块(循环)
+    \else
+    \foreach \a in {2,4,...,\@classnum}
+    \fill [fill=darkergray,yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*(\a-2)*\pageheight/(2*\@classnum+3.5),\corners] (0,0) rectangle (\pagewidth,{2*\pageheight/(2*\@classnum+3.5)}); % 中间深灰色块(循环)
+    \fill [fill=darkergray,yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*\@classnum*\pageheight/(2*\@classnum+3.5),\corners] (0,0) rectangle (\pagewidth,{\pageheight/(2*\@classnum+3.5)}); % 底部深灰色块
+    \fi
+    \foreach \a in {0,1,2,...,\@classnum}
+    \draw [densely dashed,gray!75,yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*\a*\pageheight/(2*\@classnum+3.5),] (0,0)--(\pagewidth,0); % 分割虚线
     % 时间标注
     \setcounter{number}{0}
-    \foreach \a in {1,2,...,12}
-    \node [yshift=2.5*\pageheight/27.5+2*(\a-.8)*\pageheight/27.5] at (\pagewidth/32,0) {\bfseries\color{blackgray}\texttt{\refstepcounter{number}\thenumber}};
+    \foreach \a in {1,2,...,\@classnum}
+    \node [yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*(\a-.8)*\pageheight/(2*\@classnum+3.5)] at (\pagewidth/32,0) {\bfseries\color{blackgray}\texttt{\refstepcounter{number}\thenumber}};
     \ifcsname @timelist\endcsname % 若 `\@timelist == empty', 跳过该函数 
-      \foreach \x in {1,2,...,12}
+      \foreach \x in {1,2,...,\@classnum}
       {
-        \node[yshift=2.5*\pageheight/27.5+2*(\x-.475)*\pageheight/27.5] at (\pagewidth/32,0) {\color{darkgray}\texttt{\PrintTime[1][\x]}};
-        \node[yshift=2.5*\pageheight/27.5+2*(\x-.2)*\pageheight/27.5] at (\pagewidth/32,0) {\color{darkgray}\texttt{\PrintTime[2][\x]}};
+        \node[yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*(\x-.475)*\pageheight/(2*\@classnum+3.5)] at (\pagewidth/32,0) {\color{darkgray}\texttt{\PrintTime[1][\x]}};
+        \node[yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*(\x-.2)*\pageheight/(2*\@classnum+3.5)] at (\pagewidth/32,0) {\color{darkgray}\texttt{\PrintTime[2][\x]}};
       }\fi
     % 星期标注
     \ifdefstring{\LITE at date}{en}{
-    \node [xshift=2.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{丹色}\faIcon{moon}\;\bfseries\heiti{Monday}};
-    \node [xshift=5.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{紅緋}\faIcon{fire}\;\bfseries\heiti{Tuesday}};
-    \node [xshift=8.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{紺碧}\faIcon{water}\;\bfseries\heiti{Wednesday}};
-    \node [xshift=11.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{青碧}\faIcon{tree}\;\bfseries\heiti{Thursday}};
-    \node [xshift=14.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{金色}\faIcon{sun}\;\bfseries\heiti{Friday}};
+      \node [xshift=2.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{丹色}\faIcon{moon}\;\bfseries\heiti{Monday}};
+      \node [xshift=5.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{紅緋}\faIcon{fire}\;\bfseries\heiti{Tuesday}};
+      \node [xshift=8.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{紺碧}\faIcon{water}\;\bfseries\heiti{Wednesday}};
+      \node [xshift=11.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{青碧}\faIcon{tree}\;\bfseries\heiti{Thursday}};
+      \node [xshift=14.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{金色}\faIcon{sun}\;\bfseries\heiti{Friday}};
     }{\relax}
     \ifdefstring{\LITE at date}{cn}{
-    \node [xshift=2.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{丹色}\faIcon{moon}\;\bfseries\heiti{星期一}};
-    \node [xshift=5.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{紅緋}\faIcon{fire}\;\bfseries\heiti{星期二}};
-    \node [xshift=8.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{紺碧}\faIcon{water}\;\bfseries\heiti{星期三}};
-    \node [xshift=11.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{青碧}\faIcon{tree}\;\bfseries\heiti{星期四}};
-    \node [xshift=14.5*\pagewidth/16] at (0,2*\pageheight/27.5) {\color{金色}\faIcon{sun}\;\bfseries\heiti{星期五}};
+      \node [xshift=2.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{丹色}\faIcon{moon}\;\bfseries\heiti{星期一}};
+      \node [xshift=5.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{紅緋}\faIcon{fire}\;\bfseries\heiti{星期二}};
+      \node [xshift=8.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{紺碧}\faIcon{water}\;\bfseries\heiti{星期三}};
+      \node [xshift=11.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{青碧}\faIcon{tree}\;\bfseries\heiti{星期四}};
+      \node [xshift=14.5*\pagewidth/16] at (0,{2*\pageheight/(2*\@classnum+3.5)}) {\color{金色}\faIcon{sun}\;\bfseries\heiti{星期五}};
     }{\relax}
     \ifcsname @sticker\endcsname
-    \node [opacity=.3,anchor=south east,yshift=1.5*\pageheight/27.5+2*12*\pageheight/27.5,inner sep=0pt,scale=3] at (\pagewidth,\pageheight/27.5) {\includegraphics[width=\dimeval{\pagewidth/16}]{\@sticker}};\fi
+    \node [opacity=.3,anchor=south east,yshift=1.5*\pageheight/(2*\@classnum+3.5)+2*\@classnum*\pageheight/(2*\@classnum+3.5),inner sep=0pt,scale=3] at (\pagewidth,{\pageheight/(2*\@classnum+3.5)}) {\includegraphics[width=\dimeval{\pagewidth/16}]{\@sticker}};\fi
 }
 
 \newcounter{weekday}
@@ -202,14 +227,14 @@
 \AtEndEnvironment{tikzpicture}{\setcounter{weekday}{0}}
 \newcommand{\course}[7]
 {
-  \fill [#1,\corners,yshift=2*(#2-1)*\pageheight/27.5,xshift=3*\theweekday*\pagewidth/16] (\pagewidth/16,2.5*\pageheight/27.5) rectangle ($({4*\pagewidth/16},{(4.5+2*(#3-#2))*\pageheight/27.5})$); % frame
-  \fill [#1*,\corners,yshift=(2*(#2-1)+.5)*\pageheight/27.5,xshift=3*\theweekday*\pagewidth/16] (\pagewidth/16,2.5*\pageheight/27.5) rectangle ($({4*\pagewidth/16},{(4+2*(#3-#2))*\pageheight/27.5})$); % content
-  \node [#1**,yshift=(#2+#3-1.25)*\pageheight/27.5,xshift=3*\theweekday*\pagewidth/16] at (2.5*\pagewidth/16,2.5*\pageheight/27.5) {\heiti\large\bfseries #4}; % course
-  \node [#1**,anchor=south,yshift=(#2+#3-.2)*\pageheight/27.5,xshift=3*\theweekday*\pagewidth/16] at (2.5*\pagewidth/16,2.5*\pageheight/27.5) {\heiti\bfseries\small #5}; % location
-  \node [#1**,anchor=north,yshift=(#2+#3-.2)*\pageheight/27.5,xshift=3*\theweekday*\pagewidth/16] at (2.5*\pagewidth/16,2.5*\pageheight/27.5) {\heiti\bfseries\small #6}; % teacher
-  \node [#1**,anchor=south east,yshift=2*#3*\pageheight/27.5,xshift=3*\theweekday*\pagewidth/16] at (4*\pagewidth/16,2.5*\pageheight/27.5) {\heiti\footnotesize #7}; % weeks
+  \fill [#1,\corners,yshift=2*(#2-1)*\pageheight/(2*\@classnum+3.5),xshift=3*\theweekday*\pagewidth/16] (\pagewidth/16,{2.5*\pageheight/(2*\@classnum+3.5)}) rectangle (4*\pagewidth/16,{(4.5+2*(#3-#2))*\pageheight/(2*\@classnum+3.5)}); % frame
+  \fill [#1*,\corners,yshift=(2*(#2-1)+.5)*\pageheight/(2*\@classnum+3.5),xshift=3*\theweekday*\pagewidth/16] (\pagewidth/16,{2.5*\pageheight/(2*\@classnum+3.5)}) rectangle (4*\pagewidth/16,{(4+2*(#3-#2))*\pageheight/(2*\@classnum+3.5)}); % content
+  \node [#1**,yshift=(#2+#3-1.25)*\pageheight/(2*\@classnum+3.5),xshift=3*\theweekday*\pagewidth/16] at (2.5*\pagewidth/16,{2.5*\pageheight/(2*\@classnum+3.5)}) {\heiti\large\bfseries #4}; % course
+  \node [#1**,anchor=south,yshift=(#2+#3-.2)*\pageheight/(2*\@classnum+3.5),xshift=3*\theweekday*\pagewidth/16] at (2.5*\pagewidth/16,{2.5*\pageheight/(2*\@classnum+3.5)}) {\heiti\bfseries\small #5}; % location
+  \node [#1**,anchor=north,yshift=(#2+#3-.2)*\pageheight/(2*\@classnum+3.5),xshift=3*\theweekday*\pagewidth/16] at (2.5*\pagewidth/16,{2.5*\pageheight/(2*\@classnum+3.5)}) {\heiti\bfseries\small #6}; % teacher
+  \node [#1**,anchor=south east,yshift=2*#3*\pageheight/(2*\@classnum+3.5),xshift=3*\theweekday*\pagewidth/16] at (4*\pagewidth/16,{2.5*\pageheight/(2*\@classnum+3.5)}) {\heiti\footnotesize #7}; % weeks
 }
 
 \def\more#1{
-  \node [xshift=-1em,yshift=2.5*\pageheight/27.5+2*12*\pageheight/27.5,anchor=east] at (\pagewidth,.5*\pageheight/27.5){\small\bfseries\color{darkgray}#1};
+  \node [xshift=-1em,yshift=2.5*\pageheight/(2*\@classnum+3.5)+2*\@classnum*\pageheight/(2*\@classnum+3.5),anchor=east] at (\pagewidth,{.5*\pageheight/(2*\@classnum+3.5)}){\small\bfseries\color{darkgray}#1};
 }
\ No newline at end of file



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