效果图如下

代码摘要:

\documentclass{article}

\usepackage{colortbl}
\usepackage{MnSymbol}

\begin{document}
\sffamily

% --- define colors
\definecolor{dark}{rgb}{0.5,0.5,0.5}
\definecolor{light}{rgb}{0.75,0.75,0.75}

% --- define two types of colored columns that contain bullets
\newcolumntype{A}{>{\columncolor{dark}}c}
\newcolumntype{B}{>{\columncolor{light}}c}

% --- symbols in the columns containing bullets
\newcommand\arrow{\small$\filledmedtriangledown$}
\newcommand\yes{$\bullet$}
\newcommand\blackyes{\cellcolor{black}\color{white}\yes}

% --- counters for automatic numbering
\newcounter{tablepart}
\newcounter{tableitem}[tablepart]

% --- commands for text corresponding entries
\newcommand\tablepart[1]{\stepcounter{tablepart}\textbf{Part \arabic{tablepart}. #1}}
\newcommand\tableitem[1]{\stepcounter{tableitem}\makebox[16pt][r]{\arabic{tableitem}} #1}

% --- the table
\tabcolsep=2pt
\begin{tabular}{ABAp{10cm}}
& \multicolumn{3}{>{\columncolor{dark}}l}{\color{white} Property 1} \\
& & \multicolumn{2}{>{\columncolor{light}}l}{Property 2} \\
\arrow & & & \multicolumn{1}{>{\columncolor{dark}}l}{\color{white} Property 3} \\
& \arrow & & \\
& & \arrow & \tablepart{Introduction} \\
\yes & \yes & & \tableitem{Step one} \\
\hline
\yes & \blackyes & \yes & \tableitem{Step two} \\
\hline
\yes & \blackyes & \blackyes & \tableitem{Step three} \\
\hline
& & \\
& & & \tablepart{Conclusion} \\
\yes & \yes & & \tableitem{Step one} \\
\hline
\yes & & \yes & \tableitem{Step two} \\
\hline
\blackyes & & \yes & \tableitem{Step three} \\
\hline
\end{tabular}

\end{document}

http://tex.stackexchange.com/questions/53568/making-a-table-with-special-headings

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部