我正在为即将到来的期末考试制作一张方程式表,其中包括大量的术语表。
但是由于我是在双列环境中进行此操作的,所以理想情况下,一旦表格到达页面末尾,我就会将其拆分到两列之间。就像这样。
我当前的代码如下所示:
\begin{multicols}{2}
\begin{table}[H]
\centering
\begin{tabular}{|c c|l|}
\hline
\textbf{Symbol} & & \textbf{Description} \\
\hline
$A$ & & Amps (C/s) \\
...
$\tau_p$ & & hole minority-carrier lifetime \\
\hline
\end{tabular}
\caption{List of Symbols}
\end{table}
\end{multicols}
有没有办法做到这一点?
答案1
我不会使用类似表格的环境来处理手头的材料。相反,鉴于您所拥有的内容看起来非常像成对项目的列表,我会使用环境。类似列表的环境(例如、和description
)的 (许多!) 有用功能之一是将材料拆分到列甚至页面之间是一件完全正常的事情,不需要做任何特殊努力。itemize
enumerate
description
我肯定会使用包\si
提供的宏siunitx
来排版科学单位。
\documentclass{article}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably
\usepackage{multicol,siunitx,amssymb,enumitem,ragged2e}
\sisetup{per-mode=symbol,inter-unit-product={\cdot}}
\newlength\mylen
\settowidth\mylen{$\si{\joule}_{N\mid\mathit{drift}}$} % widest symbol
\begin{document}
\subsection*{Symbols and Descriptions} % choose an appropriate header
\begin{multicols}{2} % use 'multicols*' if column-balancing is not desired
\RaggedRight
\begin{description}[labelwidth=\mylen,nosep]
\item[\si{\ampere}] Amps (\si{\coulomb\per\second})
\item[$D_N$] electron diffusion coefficient (\si{\centi\meter\squared\per\second})
\item[$\mathcal{E}$] Electric field
\item[$\dots$]
\item[\si{\joule}] Joule (\si[per-mode=reciprocal]{\kilo\gram\meter\squared\per\second\squared})
\item[\si{\joule}] Joule (\si{\ampere\per\centi\meter\squared})
\item[$\si{\joule}_{N\mid\mathit{diff}}$] electron diffusion current density
\item[$\si{\joule}_{N\mid\mathit{drift}}$] electron drift current density
\item[$\si{\joule}_{P\mid\mathit{diff}}$] hole diffusion current density
\item[$\si{\joule}_{P\mid\mathit{drift}}$] hole drift current density
\item[$\dots$]
\item[\si{\volt}] Voltage (\si[per-mode=reciprocal]{\kilo\gram\meter\squared\per\second\cubed\per\ampere})
\item[$\dots$]
\item[$N_v$] effective density of valence band states
\item[$\dots$]
\item[$\tau_n$] electron minority-carrier lifetime
\item[$\tau_p$] hole minority-carrier lifetime
\end{description}
\end{multicols}
\end{document}
答案2
您可以使用supertabular
和,\twocolumn
如以下示例所示。(根据您的文档类别以及是否应将整个文档排版为两列,您可能也会对该twocolumn
选项感兴趣。)
\documentclass[11pt,a4paper]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{supertabular}
\begin{document}
\twocolumn
\tablehead{ \textbf{Symbol} & \textbf{Description} \\ \hline}
\bottomcaption{a caption}
\begin{supertabular}{|c l|}
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
$A$ & Amps (C/s) \\
$\tau_p$ & hole minority-carrier lifetime \\
\hline
\end{supertabular}
\end{document}
根据描述列内容的宽度,您可能还需要考虑使用p
允许自动换行的类型列。