2009/09/14

[TeX] 表格註解

\documentclass{scrartcl}
\usepackage{threeparttable}

\begin{document}

\begin{table}
\caption{Data inflation}
\begin{threeparttable}

\begin{tabular}{llp{20em}}
\hline
Unit\tnote{$\dagger$} & Size & What it means \\ \hline
Bit (b) & 1 or 0 & Short for ``binary digit'', after the binary code (1 or 0) \\
Gigabyte (GB) & $2^{30}$ bytes & From ``giant'' in Greek. \\
Terabyte (TB) & $2^{40}$ bytes & From ``monster'' in Greek. \\
Petabyte (PB) & $2^{50}$ bytes & Google processes around 1PB every hour \\
Exabyte (EB) & $2^{60}$ bytes & \\
Zettabyte (ZB)\tnote{$\ddagger$} & $2^{70}$ bytes & The total amount of information in existence
this year is forecast to be around 1.2ZB \\
Yottabyte (YB)\tnote{$\ddagger$} & $2^{80}$ bytes & Currently too big to imagine \\ \hline
\end{tabular}

\begin{tablenotes}
\item[$\dagger$] The prefixes are set by an intergovernmental group, the International Bureau of Weights and Measures.
\item[$\ddagger$] Yotta and Zetta were added in 1991; terms for larger amounts have yet to be established.
\end{tablenotes}

\end{threeparttable}
\end{table}

\end{document}

如果要為 longtable 加註解的話,必須多使用 threeparttablex 這個 package,例子請看 threeparttablex 的說明文件。

沒有留言: