<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\chapter{è¡¨æ&nbsp;¼}
\label{sec:tables}

\section{ç®€å•è¡¨æ&nbsp;¼}
\verb|tabular|~çŽ¯å¢ƒæä¾›äº†æœ€ç®€å•çš„è¡¨æ&nbsp;¼åŠŸèƒ½ã€‚å®ƒç”¨~\verb|\hline|~å‘½ä»¤ä»£è¡¨æ¨ªçº¿ï¼Œ\verb+|+~ä»£è¡¨ç«–çº¿ï¼Œç”¨~\verb|&amp;|~æ¥åˆ†æ&nbsp;ã€‚æ¯ä¸ªæ&nbsp;ä½çš„å¯¹é½æ–¹å¼å¯ä»¥ç”¨~lã€cã€rï¼ˆå·¦ä¸­å³ï¼‰æ¥æŽ§åˆ¶ã€‚
\begin{code}
\begin{tabular}{|l|c|r|}
    \hline 
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \hline 
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    \hline 
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    \hline 
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \hline 
\end{tabular}
\end{code}

\begin{tabular}{|l|c|r|}
    \hline 
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \hline 
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    \hline 
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    \hline 
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \hline 
\end{tabular}
\ \\

å’Œé’ˆå¯¹æ’å›¾çš„~\verb|figure|~çŽ¯å¢ƒç±»ä¼¼ï¼Œ\LaTeX~è¿˜æœ‰å¦ä¸€ä¸ªé’ˆå¯¹è¡¨æ&nbsp;¼çš„æµ®åŠ¨çŽ¯å¢ƒ~\verb|table|ã€‚æˆ‘ä»¬å¯ä»¥ç”¨å®ƒç»™ä¸Šé¢çš„ç¤ºä¾‹ç©¿ä»¶é©¬ç”²ï¼Œé¡ºä¾¿æŠŠè¡¨æ&nbsp;¼ç®€åŒ–ä¸ºç§‘æŠ€æ–‡çŒ®ä¸­å¸¸ç”¨çš„ä¸‰çº¿è¡¨ã€‚

\begin{code}
\begin{table}[htbp]
\caption{æµ®åŠ¨çŽ¯å¢ƒä¸­çš„ä¸‰çº¿è¡¨}
\label{tab:threesome}
\centering
\begin{tabular}{lll}
    \hline 
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \hline 
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \hline 
\end{tabular}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{æµ®åŠ¨çŽ¯å¢ƒä¸­çš„ä¸‰çº¿è¡¨}
\label{tab:threesome}
\centering
\begin{tabular}{lll}
    \hline 
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \hline 
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \hline 
\end{tabular}
\end{table}

å®Œç¾Žä¸»ä¹‰è€…å¯èƒ½è§‰å¾—ä¸Šé¢ç¤ºä¾‹ä¸­çš„ä¸‰æ¡çº¿ä¸€æ&nbsp;·ç²—ä¸å¤Ÿç¾Žè§‚ï¼Œè¿™æ—¶å¯ä»¥ä½¿ç”¨~\verb|booktabs|~å®åŒ…\citep{Fear_2005}çš„å‡&nbsp;ä¸ªå‘½ä»¤ã€‚

\begin{code}
\begin{table}[htbp]
\caption{æµ®åŠ¨çŽ¯å¢ƒä¸­çš„ä¸‰çº¿è¡¨}
\centering
\begin{tabular}{lll}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
\end{code}

\begin{code}
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{\texttt{booktabs}~å®åŒ…çš„æ•ˆæžœ}
\centering
\begin{tabular}{lll}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}

\section{è¡¨æ&nbsp;¼å®½åº¦}
æœ‰æ—¶æˆ‘ä»¬éœ€è¦æŽ§åˆ¶æŸæ&nbsp;ä½å®½åº¦ï¼Œå¯ä»¥å°†å…¶å¯¹é½æ–¹å¼å‚æ•°ä»Ž~\verb|lã€cã€r|~æ”¹ä¸º~\verb|p{å®½åº¦}|~ã€‚
\begin{code}
\begin{table}[htbp]
\caption{æŽ§åˆ¶æ&nbsp;ä½å®½åº¦}
\centering
\begin{tabular}{p{100pt}p{100pt}p{100pt}}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{æŽ§åˆ¶æ&nbsp;ä½å®½åº¦}
\centering
\begin{tabular}{p{100pt}p{100pt}p{100pt}}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}

è‹¥æƒ³æŽ§åˆ¶æ•´ä¸ªè¡¨æ&nbsp;¼çš„å®½åº¦å¯ä»¥ä½¿ç”¨~\verb|tabularx|~å®åŒ…ï¼Œ\verb|X|~å‚æ•°è¡¨ç¤ºæŸæ&nbsp;å¯ä»¥æŠ˜è¡Œã€‚

\begin{code}
\begin{table}[htbp]
\caption{æŽ§åˆ¶è¡¨æ&nbsp;¼å®½åº¦}
\centering
\begin{tabularx}{350pt}{lXlX}
    \toprule
    æŽç™½ &amp; å¹³æž—æ¼&nbsp;æ¼&nbsp;çƒŸå¦‚ç»‡ï¼Œå¯’å±±ä¸€å¸¦ä¼¤å¿ƒç¢§ã€‚æšè‰²å…¥é«˜æ¥¼ï¼Œæœ‰äººæ¥¼ä¸Šæ„ã€‚çŽ‰æ¢¯ç©ºä¼«ç«‹ï¼Œå®¿é¸Ÿå½’é£žæ€¥ã€‚ä½•å¤„æ˜¯å½’ç¨‹ï¼Œé•¿äº­æ›´çŸ­äº­ã€‚&amp; 
    æ³°æˆˆå°” &amp; å¤å¤©çš„é£žé¸Ÿï¼Œé£žåˆ°æˆ‘çš„çª—å‰å”±æ­Œï¼Œåˆé£žåŽ»äº†ã€‚ç§‹å¤©çš„é»„å¶ï¼Œå®ƒä»¬æ²¡æœ‰ä»€ä¹ˆå¯å”±ï¼Œåªå¹æ¯ä¸€å£°ï¼Œé£žè½åœ¨é‚£é‡Œã€‚\\
    \bottomrule
\end{tabularx}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{æŽ§åˆ¶è¡¨æ&nbsp;¼å®½åº¦}
\centering
\begin{tabularx}{350pt}{lXlX}
    \toprule
    æŽç™½ &amp; å¹³æž—æ¼&nbsp;æ¼&nbsp;çƒŸå¦‚ç»‡ï¼Œå¯’å±±ä¸€å¸¦ä¼¤å¿ƒç¢§ã€‚æšè‰²å…¥é«˜æ¥¼ï¼Œæœ‰äººæ¥¼ä¸Šæ„ã€‚çŽ‰é˜¶ç©ºä¼«ç«‹ï¼Œå®¿é¸Ÿå½’é£žæ€¥ã€‚ä½•å¤„æ˜¯å½’ç¨‹ï¼Œé•¿äº­æ›´çŸ­äº­ã€‚&amp; 
    æ³°æˆˆå°” &amp; å¤å¤©çš„é£žé¸Ÿï¼Œé£žåˆ°æˆ‘çš„çª—å‰å”±æ­Œï¼Œåˆé£žåŽ»äº†ã€‚ç§‹å¤©çš„é»„å¶ï¼Œå®ƒä»¬æ²¡æœ‰ä»€ä¹ˆå¯å”±ï¼Œåªå¹æ¯ä¸€å£°ï¼Œé£žè½åœ¨é‚£é‡Œã€‚\\
    \bottomrule
\end{tabularx}
\end{table}

\section{è·¨è¡Œã€è·¨åˆ—è¡¨æ&nbsp;¼}
æœ‰æ—¶æŸæ&nbsp;éœ€è¦æ¨ªè·¨å‡&nbsp;åˆ—ï¼Œæˆ‘ä»¬å¯ä»¥ä½¿ç”¨~\verb|\multicolumn|~å‘½ä»¤ã€‚å®ƒçš„å‰ä¸¤ä¸ªå‚æ•°æŒ‡å®šæ¨ªè·¨åˆ—æ•°å’Œå¯¹é½æ–¹å¼ã€‚\verb|booktabs|~å®åŒ…çš„~\verb|\cmidrule|~å‘½ä»¤ç”¨äºŽæ¨ªè·¨å‡&nbsp;åˆ—çš„æ¨ªçº¿ã€‚
\begin{code}
\begin{table}[htbp]
\caption{è·¨æ&nbsp;è¡¨æ&nbsp;¼}
\centering
\begin{tabular}{lll}
    \toprule
    &amp; \multicolumn{2}{c}{å¸¸ç”¨å·¥å…·} \\
    \cmidrule{2-3}
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{è·¨æ&nbsp;è¡¨æ&nbsp;¼}
\centering
\begin{tabular}{lll}
    \toprule
    &amp; \multicolumn{2}{c}{å¸¸ç”¨å·¥å…·} \\
    \cmidrule{2-3}
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}

è·¨è¡Œè¡¨æ&nbsp;¼éœ€è¦ä½¿ç”¨~\verb|multirow|~å®åŒ…ï¼Œ\verb|\multirow|~å‘½ä»¤çš„å‰ä¸¤ä¸ªå‚æ•°æ˜¯ç«–è·¨çš„è¡Œæ•°å’Œå®½åº¦ã€‚
\begin{code}
\usepackage{multirow}
...
\begin{table}[htbp]
\caption{è·¨è¡Œè¡¨æ&nbsp;¼}
\centering
\begin{tabular}{lllc}
\end{code}
\begin{code}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ &amp; ç”¨æˆ·ä½“éªŒ\\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter &amp; 
    \multirow{3}{*}{\centering çˆ½} \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{è·¨è¡Œè¡¨æ&nbsp;¼}
\centering
\begin{tabular}{lllc}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ &amp; ç”¨æˆ·ä½“éªŒ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter &amp; 
    \multirow{3}{*}{\centering çˆ½} \\
    Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}

\section{å½©è‰²è¡¨æ&nbsp;¼}
å½©è‰²è¡¨æ&nbsp;¼éœ€è¦ä½¿ç”¨~\verb|colortbl|~å®åŒ…\citep{Carlisle_2001}æä¾›çš„ä¸€äº›å‘½ä»¤ï¼š\verb|\columncolor|ã€~\verb|\rowcolor|ã€\verb|\cellcolor|~ç­‰ã€‚
\begin{code}
\usepackage{colortbl}
...
\begin{table}[htbp]
\caption{å½©è‰²è¡¨æ&nbsp;¼}
\centering
\begin{tabular}{lll}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
\end{code}
\begin{code}
    \rowcolor[gray]{.8} Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}
\end{code}

\begin{table}[htbp]
\caption{å½©è‰²è¡¨æ&nbsp;¼}
\centering
\begin{tabular}{lll}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; å‘è¡Œç‰ˆ &amp; ç¼–è¾‘å™¨ \\
    \midrule
    Windows &amp; MikTeX &amp; TeXnicCenter \\
    \rowcolor[gray]{.8} Unix/Linux &amp; TeX Live &amp; Emacs \\
    Mac OS &amp; MacTeX &amp; TeXShop \\
    \bottomrule
\end{tabular}
\end{table}

\section{é•¿è¡¨æ&nbsp;¼}
æœ‰æ—¶è¡¨æ&nbsp;¼å¤ªé•¿è¦è·¨é¡µï¼Œå¯ä»¥ä½¿ç”¨~\verb|longtable|~å®åŒ…\citep{Carlisle_2004}ã€‚\verb|\endfirsthead|ã€~\verb|\endhead|~å‘½ä»¤ç”¨æ¥å®šä¹‰é¦–é¡µè¡¨å¤´å’Œé€šç”¨è¡¨å¤´ï¼Œ\verb|\endfoot|ã€\verb|\endlastfoot|~å‘½ä»¤ç”¨æ¥å®šä¹‰é€šç”¨è¡¨å°¾å’Œæœ«é¡µè¡¨å°¾ã€‚
\begin{code}
\usepackage{longtable}
...
\begin{longtable}{ll}
\caption{é•¿è¡¨æ&nbsp;¼} \\
    \toprule
    ä½œè€… &amp; ä½œå“ \\
    \midrule
    \endfirsthead
    \midrule
    ä½œè€… &amp; ä½œå“ \\
    \midrule
    \endhead
    \midrule
    \multicolumn{2}{r}{æŽ¥ä¸‹é¡µ\dots} \\
\end{code}
\begin{code}
    \endfoot
    \bottomrule
    \endlastfoot
    ç™½å±…æ˜“ &amp; æ±‰çš‡é‡è‰²æ€å€¾å›½ï¼Œ\\
    &amp; å¾¡å®‡å¤šå¹´æ±‚ä¸å¾—ã€‚\\
    &amp; æ¨å®¶æœ‰å¥³åˆé•¿æˆï¼Œ\\ 
    &amp; å…»åœ¨æ·±é—ºäººæœªè¯†ã€‚\\
    &amp; å¤©ç”Ÿä¸½è´¨éš¾è‡ªå¼ƒï¼Œ\\ 
    &amp; ä¸€æœé€‰åœ¨å›çŽ‹ä¾§ã€‚\\
    &amp; å›žçœ¸ä¸€ç¬‘ç™¾åªšç”Ÿï¼Œ\\ 
    &amp; å…­å®«ç²‰é»›æ—&nbsp;é¢œè‰²ã€‚\\
    &amp; æ˜¥å¯’èµæµ´åŽæ¸…æ±&nbsp;ï¼Œ\\ 
    &amp; æ¸©æ³‰æ°´æ»‘æ´—å‡è„‚ã€‚\\
    &amp; ä¾å„¿æ‰¶èµ·å¨‡æ—&nbsp;åŠ›ï¼Œ\\ 
    &amp; å§‹æ˜¯æ–°æ‰¿æ©æ³½æ—¶ã€‚\\
    &amp; äº‘é¬“èŠ±é¢œé‡‘æ­¥æ‘‡ï¼Œ\\ 
    &amp; èŠ™è“‰å¸æš–åº¦æ˜¥å®µã€‚\\
    &amp; æ˜¥å®µè‹¦çŸ­æ—¥é«˜èµ·ï¼Œ\\ 
    &amp; ä»Žæ­¤å›çŽ‹ä¸æ—©æœã€‚\\
\end{longtable}
\end{code}

\begin{longtable}{ll}
\caption{é•¿è¡¨æ&nbsp;¼} \\
    \toprule
    ä½œè€… &amp; ä½œå“ \\
    \midrule
    \endfirsthead
    \midrule
    ä½œè€… &amp; ä½œå“ \\
    \midrule
    \endhead
    \midrule
    \multicolumn{2}{r}{æŽ¥ä¸‹é¡µ\dots} \\
    \endfoot
    \bottomrule
    \endlastfoot
    ç™½å±…æ˜“ &amp; æ±‰çš‡é‡è‰²æ€å€¾å›½ï¼Œ\\
    &amp; å¾¡å®‡å¤šå¹´æ±‚ä¸å¾—ã€‚\\
    &amp; æ¨å®¶æœ‰å¥³åˆé•¿æˆï¼Œ\\
    &amp; å…»åœ¨æ·±é—ºäººæœªè¯†ã€‚\\
    &amp; å¤©ç”Ÿä¸½è´¨éš¾è‡ªå¼ƒï¼Œ\\
    &amp; ä¸€æœé€‰åœ¨å›çŽ‹ä¾§ã€‚\\
    &amp; å›žçœ¸ä¸€ç¬‘ç™¾åªšç”Ÿï¼Œ\\
    &amp; å…­å®«ç²‰é»›æ—&nbsp;é¢œè‰²ã€‚\\
    &amp; æ˜¥å¯’èµæµ´åŽæ¸…æ±&nbsp;ï¼Œ\\
    &amp; æ¸©æ³‰æ°´æ»‘æ´—å‡è„‚ã€‚\\
    &amp; ä¾å„¿æ‰¶èµ·å¨‡æ—&nbsp;åŠ›ï¼Œ\\
    &amp; å§‹æ˜¯æ–°æ‰¿æ©æ³½æ—¶ã€‚\\
    &amp; äº‘é¬“èŠ±é¢œé‡‘æ­¥æ‘‡ï¼Œ\\
    &amp; èŠ™è“‰å¸æš–åº¦æ˜¥å®µã€‚\\
    &amp; æ˜¥å®µè‹¦çŸ­æ—¥é«˜èµ·ï¼Œ\\
    &amp; ä»Žæ­¤å›çŽ‹ä¸æ—©æœã€‚\\
\end{longtable}

\bibliographystyle{unsrtnat}
\bibliography{reading}
\newpage
</pre></body></html>