我按照tex的描述制作了下表:
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{a4paper,total={170mm,257mm},left=20mm,top=20mm}
\usepackage{makeidx}
\usepackage{xltxtra}
\usepackage{libertine}
%------------------------------------------------------------------------------------- Table Settings
\usepackage{multirow}
\usepackage{makecell}%To keep spacing of text in tables
\usepackage{colortbl,xcolor}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%------------------------------------------------------------------------------------- Color
\begin{document}
\begin{table}[ht!]
\centering
\def\arraystretch{1.5}
\label{TOR:FREEDOM:COMPARE}
\begin{tabular}{c|L{7cm}|L{7cm}|}
\hline
\rowcolor{red} \multicolumn{1}{c}{} & \multicolumn{1}{c|}{\textcolor{white}{\large{\textbf{TOR}}}} & \multicolumn{1}{c}{\textcolor{white}{\large{\textbf{Freedom}}}}\\
\hline
%-----Category---|-------- TOR ----- | ----- Freedom -------
\multirow{2}{*}{\rotatebox[origin=c]{90}{Privacy}}& + Anonymization& + Pseudo-anonymization\\
& + Unlinkability & \\
\hline
\multirow{5}{*}{\rotatebox[origin=c]{90}{Operational}}&+ Hidden Services & + Mailing System \\
&+ Decentralized System & - Partially Centralized\\
&+ Use AES & - Use 3DES\\
&+ Open Protocol & - Closed Product\\
&- TCP Only & + TCP and UDP Support\\
\hline
\multirow{7}{*}{\rotatebox[origin=c]{90}{Ux}}& + Easily Installable Local Socks Proxy & - Kernel Module\\
& + Apps already supporing TOR build-in (TOR Browser)&\\
& - Use as low latency as possible but practically latency still noticable. (on personal use)&\\
& - May cause some law problems to exit node owners because of also used for illegal activities.\cite{TOR:LEGAL:RUSSIA} &\\
\hline
\end{tabular}
\caption{Comparison Table between Freedom and TOR}
\end{table}
\end{document}
但我想将其显示为:
我可以就如何做到这一点获得一些帮助吗?
答案1
像这样?我擅自删除了第一行的垂直线,因为我认为这样看起来更美观,并且简化了代码,以及列表中带有尾号的各种连字符。可视化水平线的一个简单解决方案是使用\hhline
(`\clines 不可见):
\documentclass[a4paper]{report}
\usepackage{geometry}
\geometry{a4paper, total={170mm,257mm}, left=20mm, top=20mm}
\usepackage{makeidx}
\usepackage{xltxtra}
\usepackage{libertine}
%------------------------------------------------------------------------------------- Table Settings
\usepackage{multirow}
\usepackage{makecell}%To keep spacing of text in tables
\usepackage{hhline}
\usepackage[table]{xcolor}
\usepackage{rotating}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%------------------------------------------------------------------------------------- Color
\begin{document}
\begin{table}[ht!]
\centering
\def\arraystretch{1.5}
\label{TOR:FREEDOM:COMPARE}
\begin{tabular}{c|L{7cm}|L{7cm}|}
\hhline{~|--}
\rowcolor{red}[\dimexpr\tabcolsep + 0.4pt][\tabcolsep]\multicolumn{1}{c@{}}{\cellcolor{white}} & \multicolumn{1}{c}{\color{white}\large\bfseries TOR} & \multicolumn{1}{c}{\color{white}\large\bfseries Freedom}\\
\hhline{~|--}
%-----Category---|-------- TOR ----- | ----- Freedom -------
\multirow{2}{*}{\rotatebox[origin=c]{90}{Privacy}}& + Anonymization& + Pseudo-anonymization\\
& + Unlinkability & \\
\hhline{~--}
\multirow{5}{*}{\rotatebox[origin=c]{90}{Operational}}& idden Services & + Mailing System \\
&+ Decentralized System & – Partially Centralized\\
&+ Use AES & – Use 3DES\\
&+ Open Protocol & – Closed Product\\
& – TCP Only & + TCP and UDP Support\\
\hhline{~|--}
\multirow{7}{*}{\rotatebox[origin=c]{90}{Ux}}& + Easily Installable Local Socks Proxy & – Kernel Module\\
& + Apps already supporing TOR build-in (TOR Browser)&\\
& – Use as low latency as possible but practically latency still noticable. (on personal use)&\\
& – May cause some law problems to exit node owners because of also used for illegal activities.\cite{TOR:LEGAL:RUSSIA} &\\
\hhline{~|--}
\end{tabular}
\caption{Comparison Table between Freedom and TOR}
\end{table}
\end{document}