【问题解决】 用 array 和 tabu 宏包来实现如下: 选自:http://tex.stackexchange.com/questions/41758/how-can-i-reproduce-this-table-with-thick-lines\documentclass[a4paper,png]{standalone}
\usepackage{array}
\makeatletter
\newcommand{\thickhline}{%
\noalign {\ifnum 0=`}\fi \hrule height 1pt
\futurelet \reserved@a \@xhline
}
\newcolumntype{"}{@{\hskip\tabcolsep\vrule width 1pt\hskip\tabcolsep}}
\makeatother
\begin{document}
\begin{tabular}{c"c|c|c|c|c}
$*$ & $a$ & $b$ & $c$ & $d$ & $e$ \\\thickhline
$a$ & $a$ & $b$ & $c$ & $b$ & $d$ \\\hline
$b$ & $b$ & $c$ & $a$ & $e$ & $c$ \\\hline
$c$ & $c$ & $a$ & $b$ & $b$ & $a$ \\\hline
$d$ & $b$ & $e$ & $b$ & $e$ & $d$ \\\hline
$e$ & $d$ & $b$ & $a$ & $d$ & $c$
\end{tabular}
\end{document}\documentclass[a4paper,12pt]{article}
\usepackage{tabu}
\begin{document}
\begin{tabu}{c|[2pt]c|c|c|c|c}
$*$ & $a$ & $b$ & $c$ & $d$ & $e$ \\\tabucline[2pt]{-}
$a$ & $a$ & $b$ & $c$ & $b$ & $d$ \\\hline
$b$ & $b$ & $c$ & $a$ & $e$ & $c$ \\\hline
$c$ & $c$ & $a$ & $b$ & $b$ & $a$ \\\hline
$d$ & $b$ & $e$ & $b$ & $e$ & $d$ \\\hline
$e$ & $d$ & $b$ & $a$ & $d$ & $c$
\end{tabu}
\end{document}
发表评论 取消回复