<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[svgnames]{l3doc}
\usepackage{pdfpages, twemojis}
\usepackage[osf, mono = false]{libertine}
\usepackage[fontset = fandol, linespread = 1.2, autoindent = 0pt]{ctex}
\AddToHook{env/function/before}{\vspace*{-.5\baselineskip}}
\ExplSyntaxOn \makeatletter
\DeclareDocumentCommand \key { s m }
  {
    \IfBooleanTF {#1} { \textcolor{red}{\ttfamily \bfseries #2} }
      {
        \ttfamily
        \seq_set_from_clist:Nn \l_tmpa_seq {#2}
        \seq_set_map:NNn \l_tmpb_seq \l_tmpa_seq
          { \exp_not:n { \textcolor{red}{\bfseries ##1} } }
        \seq_use:Nn \l_tmpb_seq { ,~ } \:=\:
      }
  }
\DeclareCommandCopy \val \meta
\def \TFF {true\textup{\textbar\underline{\textbf{false}}}}
\def \TTF {\textup{\underline{\textbf{true}}\textbar}false}
\def \HoLogo@ApLaTeX #1{
  \HOLOGO@mbox {A\kern -.05em p\kern -.05em \hologo{LaTeX}}}
\makeatother \ExplSyntaxOff
\newlist{keyval}{itemize}{10}
\setlist[keyval]{leftmargin = 0pt, labelsep = 0pt}
\makeindex
\title{^^A
  \bfseries \cls{litetable} å®åŒ… --- å¤šå½©çš„èª²ç¨‹è¡¨\thanks{^^A
    \url{https://github.com/myhsia/litetable},
    \url{https://ctan.org/pkg/litetable}^^A
  }^^A
}
\author{^^A
  å¤æ˜Žå®‡ \texttt{&lt;^^A
    \href{mailto:xiamingyu@westlake.edu.cn}{xiamingyu@westlake.edu.cn}&gt;^^A
  }\thanks{^^A
    \href{https://github.com/ljguo1020}{éƒ­æŽè»}^^A
    é–‹ç™¼äº†è§£æž \meta{left} \texttt{-&gt;} \meta{right} åž‹æ•¸æ“šçµæ§‹çš„æŽ¥å£.^^A
  }^^A
}
\date{Released 2025-09-23\quad \texttt{v3.8A}}

\begin{document}

\maketitle

\begin{documentation}

\section{ä»‹ç´¹}

\pkg{litetable} å®åŒ…æä¾›äº†ä¸€å€‹å¤šå½©çš„èª²ç¨‹è¡¨è¨­è¨ˆï¼Œ
åŸºæ–¼ Ti\textit k\/Z
ç”± \pkg{expl3} é–‹ç™¼.
æ”¯æ´ \hologo{pdfLaTeX}ï¼Œ\hologo{XeLaTeX}ï¼Œ\hologo{ApLaTeX} åŒ
\hologo{LuaLaTeX} ç­‰å¤šç¨®ç·¨è­¯æ–¹å¼. é»žæ“Šè·³è½‰
\href{http://mirrors.ctan.org/macros/latex/contrib/litetable/litetable.pdf}{[\textsf{English}]}
\href{http://mirrors.ctan.org/macros/latex/contrib/litetable/litetable-zh-cn.pdf}{[\textsf{ç®€ä½“ä¸­æ–‡}]} æ‰‹å†Œ.

\section{ç”¨æˆ·æŽ¥å£}

è¦åŠ&nbsp;è¼‰æ­¤å®åŒ…ï¼Œåªéœ€å¯«ä¸‹
\begin{quote}
  |\usepackage{litetable}|
\end{quote}

\DescribeEnv{litetable}
ç’°å¢ƒ \env{litetable} å¯ç”Ÿæˆç©ºç™½èª²ç¨‹è¡¨ï¼Œ
éœ€åœ¨å‘½ä»¤ \cs{timelist} åŒ \cs{weeklist} å¾ŒåŸ·è¡Œ
\begin{quote}
  |\begin{litetable}|
    \oarg{keys} \marg{title} \oarg{keys}| ... |%
  |\end{litetable}|
\end{quote}
å¼ºåˆ¶åƒæ•¸ç”¨æ–¼è¨­å®šèª²ç¨‹è¡¨æ¨™é¡Œï¼Œ
å¯é¸åƒæ•¸æŽ¥å—ä»¥ä¸‹éµ
\begin{keyval}
  \item [\key{scale}] \textcolor{gray}{\val{float} å¯è¨­å®šèª²ç¨‹è¡¨çš„ç¸®æ”¾æ¯”ä¾‹ï¼ˆé»˜èªå€¼: |1.0|ï¼‰.}
  \item [\key{color}] \val{color} å¯è¨­å®šèª²ç¨‹è¡¨æ¡†æž¶çš„èƒŒæ™¯è‰²
  ï¼ˆé»˜èªå€¼ï¼š|gray|ï¼‰ï¼Œéµåå¯çœç•¥.
  \item [\key{sem}] \val{string}
  å¯è¨­å®šé&nbsp;é¢å³ä¸Šè§’çš„å­¸æœŸä¿¡æ¯.
  \item [\key{hline}] \val{string} å¯è¨­å®šæ°´å¹³çº¿çš„æ¨£å¼
  ï¼ˆé»˜èªå€¼ï¼š|solid|ï¼‰.
\end{keyval}

\begin{function}{\weeklist}
  \begin{syntax}
    \cs{weeklist} \oarg{keys} \marg{list} \oarg{keys}
  \end{syntax}
  å¼ºåˆ¶åƒæ•¸æŽ¥æ”¶æ•¸çµ„ï¼Œ
  ç”¨æ–¼è¨­å®šèª²ç¨‹è¡¨é&nbsp;‚éƒ¨çš„å·¥ä½œæ—¥åˆ—è¡¨åŒåˆ—å¯¬.
  å¯é¸åƒæ•¸æŽ¥å—ä»¥ä¸‹éµ
  \begin{keyval}
    \item [\key{format}] \val{format commands}
    å¯è¨­ç½®å·¥ä½œæ—¥åˆ—è¡¨æ&nbsp;¼å¼ï¼ˆé»˜èªå€¼ï¼š|\bfseries|ï¼‰.
    \item [\key{sep}] \val{string}
    å¯è¨­å®šå·¥ä½œæ—¥åˆ—è¡¨çš„åˆ†éš”ç¬¦.
  \end{keyval}
  \begin{verbatim}
    \weeklist [ format = \bfseries \scshape, sep = \textbar ]
      { Mon -&gt; 1.05, Tue -&gt; 1.05, Wed -&gt; 1.1, Thu -&gt; 1.1, Fri -&gt; .9 }
  \end{verbatim}
\end{function}

\begin{function}{\timelist}
  \begin{syntax}
    \cs{timelist} \oarg{keys} \marg{list} \oarg{keys}
  \end{syntax}
  å¼ºåˆ¶åƒæ•¸å‡æŽ¥æ”¶æ•¸çµ„ï¼Œç”¨æ–¼è¨­ç½®èª²ç¨‹è¡¨çš„å·¦å´çš„æ™‚é–“åˆ—è¡¨.
  å¯é¸åƒæ•¸æŽ¥å—ä»¥ä¸‹éµ
  \begin{keyval}
    \item [\key{numformat}] \val{format}
    å¯è¨­å®šæ™‚é–“åˆ—è¡¨çš„åºè™Ÿå­—é«”
    ï¼ˆé»˜èªå€¼ï¼š|\ttfamily \bfseries|ï¼‰.
    \item [\key{timeformat}] \val{format} å¯è¨­å®šæ™‚é–“åˆ—è¡¨çš„æ™‚é–“å­—é«”
    ï¼ˆé»˜èªå€¼ï¼š|\ttfamily|ï¼‰.
    \item [\key{hidetime}] \val\TFF ç”¨æ–¼éš±è—æ™‚é–“åˆ—è¡¨ä¸­çš„æ™‚é–“ï¼Œåªä¿ç•™åºè™Ÿ
    ï¼ˆåˆå§‹å€¼ï¼š|false|ï¼‰.
  \end{keyval}
  \begin{verbatim}
    \timelist [ numformat = \bfseries, timeformat = \ttfamily ]
      { 08:30 -&gt; 10:00, 10:30 -&gt; 12:00, 13:00 -&gt; 14:30, 15:00 -&gt; 16:30 }
  \end{verbatim}
\end{function}

\begin{function}{\course}
  \begin{syntax}
    \cs{course} \oarg{keys} \marg{start} \oarg{keys} \marg{end} \oarg{keys}
  \end{syntax}
  ç”¨æ–¼åœ¨ç•¶å‰å·¥ä½œæ—¥æ·»åŠ&nbsp;èª²ç¨‹ç›’å­ï¼Œ
  éœ€åœ¨ \env{litetable} ç’°å¢ƒä¸­åŸ·è¡Œ.
  å…©å€‹å¼ºåˆ¶åƒæ•¸åˆ†åˆ«ç”¨æ–¼è¨­ç½®èª²ç¨‹çš„é–‹å§‹åŒçµæŸåºè™Ÿ.
  å¯é¸åƒæ•¸æŽ¥æ”¶ä¸‹åˆ—éµ
  \begin{keyval}
    \item [\key{color}] \val{color} ç”¨æ–¼è¨­ç½®èª²ç¨‹ç›’å­çš„é¢œè‰²
    ï¼ˆé»˜èªå€¼ï¼š|teal|ï¼‰. éµåå¯çœç•¥.
    \item [\key{subject}] \val{string} ç”¨æ–¼è¨­ç½®èª²ç¨‹åç¨±.
    \item [\key{location}] \val{string} ç”¨æ–¼è¨­ç½®èª²ç¨‹åœ°é»ž.
    \item [\key{lecture}] \val{string} ç”¨æ–¼è¨­ç½®æŽˆèª²æ•™å¸«.
    \item [\key{comment}] \val{string} ç”¨æ–¼çµ¦èª²ç¨‹æ·»åŠ&nbsp;è„šæ³¨.
  \end{keyval}
  \begin{texnote}
    \begin{itemize}[leftmargin = 2em]
      \item è‹¥ \meta{start} |=| \meta{end}ï¼ˆèª²ç¨‹ç›’å­çš„é«˜åº¦ä¸º $1$ï¼‰ï¼Œ
      è‹¥ \key*{location} å’Œ \key*{lecture} æœƒè¼¸å‡ºåœ¨åŒä¸€è¡Œï¼Œ
      è€Œä¸” \key*{comment} å°‡éš±è—.
      \item å³ä½¿èª¤å°‡ \meta{start} åŒ \meta{end} å¯«åï¼Œ
      æ¨¡æ¿ä¹Ÿæœƒè‡ªå‹•ç³¾æ­£.
      \item è‹¥ \key*{location} åŒ \key*{lecture} å‡æœªä½¿ç”¨ï¼Œ
      å‰‡ \key*{subject} å°‡è¼¸å‡ºåœ¨èª²ç¨‹ç›’å­çš„
      ç«–ç›´æ–¹å‘ä¸­å¿ƒ.
      \item è¶…å‡ºèª²ç¨‹è¡¨ç¯„åœçš„èª²ç¨‹ç›’å­å°‡å””é¡¯ç¤ºï¼Œ
      å¹¶æœƒè¿”å›žè­¦å‘Š.
      è¼¸å…¥ç”¨ä¾‹è¦‹ Appendix \ref{mwe}.
    \end{itemize}
  \end{texnote}
\end{function}

\begin{function}{\newday}
  \begin{syntax}
    \cs{newday} \oarg{integral value}
  \end{syntax}
  ä½¿å…¶å¾Œé¢æ·»åŠ&nbsp;çš„èª²ç¨‹ç›’å­å¾Œç§» \meta{intergal value} å€‹å·¥ä½œæ—¥.
  å¯é¸åƒæ•¸çš„é»˜èªå€¼ä¸º |1|.
\end{function}

\begin{function}{\more}
  \begin{syntax}
    \cs{more} \marg{comment}
  \end{syntax}
  åœ¨èª²ç¨‹è¡¨çš„å³ä¸‹è§’æ·»åŠ&nbsp;å‚™æ³¨.
\end{function}

\clearpage \linespread{1.25}

\section{å·¥ä½œç¯„ä¾‹} \label{mwe}

\verbatiminput{litetable-demo.tex}

\includepdf{litetable-demo.pdf}

\end{documentation}

\appendix \pagenumbering{Roman}

\includepdf[pages = 5-15, link]{./litetable.pdf}

\IndexPrologue{%
  \part*{ç´¢å¼•}
  \markboth{ç´¢å¼•}{ç´¢å¼•}
  \addcontentsline{toc}{part}{ç´¢å¼•}
  æ„å¤§åˆ©é«”çš„æ•¸å­—è¡¨ç¤ºæè¿°å°æ‡‰ç´¢å¼•é&nbsp;…çš„é&nbsp;ç¢¼ï¼›
  å¸¶ä¸‹åŠƒç¶«çš„æ•¸å­—è¡¨ç¤ºå®šç¾©å°æ‡‰ç´¢å¼•é&nbsp;…çš„ä»£ç¢¼è¡Œè™Ÿï¼›
  ç¾…é¦¬å­—é«”çš„æ•¸å­—è¡¨ç¤ºä½¿ç”¨å°æ‡‰ç´¢å¼•é&nbsp;…çš„ä»£ç¢¼è¡Œè™Ÿ.
}

\PrintIndex

\end{document}
</pre></body></html>