我制作了一张这样的桌子:
\documentclass[pdfa,sl,draft,english]{letter}
\usepackage[flushleft]{threeparttable}
\begin{document}
\begin{table}
\begin{center}
\begin{threeparttable}
\caption{Table caption}
\begin{tabular}{ | c | c| c | c |}
\hline
a
& \multicolumn{1}{|p{3cm}|}{\centering b \\ (unit) }
& c ${}^{a}$
& d ${}^{b}$ \\ \hline
1 & 1b & 1c & 1d \\
2 & 2b & 2c & 2d \\ \hline
\end{tabular}
\begin{tablenotes}
\small
\item ${}^{a}$ Note for c column
\item ${}^{b}$ Note for d column
\end{tablenotes}
\end{threeparttable}
\end{center}
\end{table}
\end{document}
编译在第一列和第一行上形成一条较粗的右线。你有想法避免这个吗?
答案 0 :(得分:0)
这很有效。这有点像黑客,但基本上你将列设置为你预定义的宽度。看起来好像这样。
\documentclass[pdfa,sl,draft,english]{letter}
\usepackage[flushleft]{threeparttable}
\usepackage{makecell}
\newcolumntype{?}{!{\vrule width 0.1pt}}
\begin{document}
Table With Bold Line
\begin{tabular}{ | c | c | c | c |}
\hline
a
& \multicolumn{1}{|p{3cm}|}{\centering b \\ (unit) }
& c ${}^{a}$
& d ${}^{b}$ \\ \hline
1 & 1b & 1c & 1d \\
2 & 2b & 2c & 2d \\ \hline
\end{tabular}
Table Without Bold Line
\begin{tabular}{ ? c ? c ? c ? c ?}
\hline
a
& \multicolumn{1}{|p{3cm}|}{\centering b \\ (unit) }
& c ${}^{a}$
& d ${}^{b}$ \\ \hline
1 & 1b & 1c & 1d \\
2 & 2b & 2c & 2d \\ \hline
\end{tabular}
\end{document}