我需要根据多页表或其他方式制作符号列表,只要能产生相同的结果即可。是的,我读过:表格列表?。但是对于我这样的初学者来说太复杂了。我只需要自己一个一个地输入单元格列,而不是自动的。这是我的要求:
- 我的表格可能会破坏页面,因为我有很多符号。我需要类似的东西,
longtable
但支持两列。 - 这里的两列是指表格先填充左列,再填充右列,分页,从左列开始,到右列等。
- 左右各列的宽度大小相同。
- 重复表头。
这实际上并不是一次尝试,但是这是我使用的 MWE longtable
,如果单元格不够长以显示分页,请重复一些行:
\documentclass[a4paper,12pt,oneside,openany]{book}
\usepackage{longtable}
\usepackage[a4paper, inner=4cm, outer=3cm, top=4cm, bottom=3cm]{geometry}
\begin{document}
\chapter*{\textbf{LIST OF SYMBOLS}}
\begin{longtable}{p{1cm}p{.5cm}p{3cm}}
\multicolumn{1}{c}{\centering \textbf{Symbol}}
& \multicolumn{1}{c}{\centering \textbf{}}
& \multicolumn{1}{c}{\centering \textbf{Meaning}}\\
\endfirsthead
\multicolumn{1}{c}{\centering \textbf{Symbol}}
& \multicolumn{1}{c}{\centering \textbf{}}
& \multicolumn{1}{c}{\centering \textbf{Meaning}}\\
\endhead
$a$ &=& This is letter $a$\\
$b$ &=& This is letter $b$\\
$c$ &=& This is letter $c$\\
$d$ &=& This is letter $d$\\
$e$ &=& This is letter $e$\\
$f$ &=& This is letter $f$\\
$g$ &=& This is letter $g$\\
$h$ &=& This is letter $h$\\
$i$ &=& This is letter $i$\\
$j$ &=& This is letter $j$\\
$k$ &=& This is letter $k$\\
$l$ &=& This is letter $l$\\
$m$ &=& This is letter $m$\\
$n$ &=& This is letter $n$\\
$o$ &=& This is letter $o$\\
$p$ &=& This is letter $p$\\
$q$ &=& This is letter $q$\\
$r$ &=& This is letter $r$\\
$s$ &=& This is letter $s$\\
$t$ &=& This is letter $t$\\
$u$ &=& This is letter $u$\\
$v$ &=& This is letter $v$\\
$w$ &=& This is letter $w$\\
$x$ &=& This is letter $x$\\
$y$ &=& This is letter $y$\\
$z$ &=& This is letter $z$\\
$a$ &=& This is letter $a$\\
$b$ &=& This is letter $b$\\
$c$ &=& This is letter $c$\\
$d$ &=& This is letter $d$\\
$e$ &=& This is letter $e$\\
$f$ &=& This is letter $f$\\
$g$ &=& This is letter $g$\\
$h$ &=& This is letter $h$\\
$i$ &=& This is letter $i$\\
$j$ &=& This is letter $j$\\
$k$ &=& This is letter $k$\\
$l$ &=& This is letter $l$\\
$m$ &=& This is letter $m$\\
$n$ &=& This is letter $n$\\
$o$ &=& This is letter $o$\\
$p$ &=& This is letter $p$\\
$q$ &=& This is letter $q$\\
$r$ &=& This is letter $r$\\
$s$ &=& This is letter $s$\\
$t$ &=& This is letter $t$\\
$u$ &=& This is letter $u$\\
$v$ &=& This is letter $v$\\
$w$ &=& This is letter $w$\\
$x$ &=& This is letter $x$\\
$y$ &=& This is letter $y$\\
$z$ &=& This is letter $z$
\end{longtable}
\end{document}
希望您能帮助我。提前致谢!
答案1
借助此帮助,supertabular
您可以实现在页面内部也可以使用的分页表twocolumn
:
\documentclass[a4paper,12pt,oneside,openany]{book}
\usepackage{supertabular}
\usepackage[a4paper, inner=4cm, outer=3cm, top=4cm, bottom=3cm]{geometry}
\usepackage{lipsum} % just for dummy text. Do not use in actual document.
\begin{document}
\lipsum
\twocolumn
\chapter*{LIST OF SYMBOLS}
\tablehead{
\multicolumn{1}{c}{\textbf{Symbol}}
& \multicolumn{1}{c}{\textbf{}}
& \multicolumn{1}{c}{\textbf{Meaning}}\\
}
\begin{supertabular}{p{1cm}p{.5cm}p{3cm}}
$a$ &=& This is letter $a$\\
$b$ &=& This is letter $b$\\
$c$ &=& This is letter $c$\\
$d$ &=& This is letter $d$\\
$e$ &=& This is letter $e$\\
$f$ &=& This is letter $f$\\
$g$ &=& This is letter $g$\\
$h$ &=& This is letter $h$\\
$i$ &=& This is letter $i$\\
$j$ &=& This is letter $j$\\
$k$ &=& This is letter $k$\\
$l$ &=& This is letter $l$\\
$m$ &=& This is letter $m$\\
$n$ &=& This is letter $n$\\
$o$ &=& This is letter $o$\\
$p$ &=& This is letter $p$\\
$q$ &=& This is letter $q$\\
$r$ &=& This is letter $r$\\
$s$ &=& This is letter $s$\\
$t$ &=& This is letter $t$\\
$u$ &=& This is letter $u$\\
$v$ &=& This is letter $v$\\
$w$ &=& This is letter $w$\\
$x$ &=& This is letter $x$\\
$y$ &=& This is letter $y$\\
$z$ &=& This is letter $z$\\
$a$ &=& This is letter $a$\\
$b$ &=& This is letter $b$\\
$c$ &=& This is letter $c$\\
$d$ &=& This is letter $d$\\
$e$ &=& This is letter $e$\\
$f$ &=& This is letter $f$\\
$g$ &=& This is letter $g$\\
$h$ &=& This is letter $h$\\
$i$ &=& This is letter $i$\\
$j$ &=& This is letter $j$\\
$k$ &=& This is letter $k$\\
$l$ &=& This is letter $l$\\
$m$ &=& This is letter $m$\\
$n$ &=& This is letter $n$\\
$o$ &=& This is letter $o$\\
$p$ &=& This is letter $p$\\
$q$ &=& This is letter $q$\\
$r$ &=& This is letter $r$\\
$s$ &=& This is letter $s$\\
$t$ &=& This is letter $t$\\
$u$ &=& This is letter $u$\\
$v$ &=& This is letter $v$\\
$w$ &=& This is letter $w$\\
$x$ &=& This is letter $x$\\
$y$ &=& This is letter $y$\\
$z$ &=& This is letter $z$\\
$a$ &=& This is letter $a$\\
$b$ &=& This is letter $b$\\
$c$ &=& This is letter $c$\\
$d$ &=& This is letter $d$\\
$e$ &=& This is letter $e$\\
$f$ &=& This is letter $f$\\
$g$ &=& This is letter $g$\\
$h$ &=& This is letter $h$\\
$i$ &=& This is letter $i$\\
$j$ &=& This is letter $j$\\
$k$ &=& This is letter $k$\\
$l$ &=& This is letter $l$\\
$m$ &=& This is letter $m$\\
$n$ &=& This is letter $n$\\
$o$ &=& This is letter $o$\\
$p$ &=& This is letter $p$\\
$q$ &=& This is letter $q$\\
$r$ &=& This is letter $r$\\
$s$ &=& This is letter $s$\\
$t$ &=& This is letter $t$\\
$u$ &=& This is letter $u$\\
$v$ &=& This is letter $v$\\
$w$ &=& This is letter $w$\\
$x$ &=& This is letter $x$\\
$y$ &=& This is letter $y$\\
$z$ &=& This is letter $z$\\
\end{supertabular}
\onecolumn
\lipsum
\end{document}
这里的方法略有不同,表格会自动调整到列宽。我还假设第一列的所有内容都应该处于数学模式,所以我自动添加了它。我还在=
第一列和最后一列之间添加了,所以不需要一遍又一遍地重复。
\documentclass[a4paper,12pt,oneside,openany]{book}
\usepackage{supertabular}
\usepackage{array, calc}
\usepackage[a4paper, inner=4cm, outer=3cm, top=4cm, bottom=3cm]{geometry}
\usepackage{lipsum} % just for dummy text. Do not use in actual document.
\begin{document}
\lipsum
\twocolumn
\chapter*{LIST OF SYMBOLS}
\tablehead{
\multicolumn{1}{c}{\textbf{Symbol}}
& \multicolumn{1}{c}{\textbf{Meaning}}\\
}
\newlength{\mycolwidth}
\setlength{\mycolwidth}{\widthof{\textbf{Symbol}}}
\begin{supertabular}{>{\(}wl{\mycolwidth}<{\)}@{\hspace{\tabcolsep}=\hspace{\tabcolsep}}p{\dimexpr\columnwidth-4\tabcolsep-\mycolwidth-1em}}
a & This is letter $a$ This is letter $a$ This is letter $a$ This is letter $a$ This is letter $a$ \\
b & This is letter $b$\\
c & This is letter $c$\\
d & This is letter $d$\\
\end{supertabular}
\onecolumn
\lipsum
\end{document}