我正在桌子上工作。
我的问题是,例如“类型”列中的文本不是垂直对齐的。此外,我在第一个单元格的底部有一个额外的线段。
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{table}[htb]
\begin{center}
\begin{tabular}{|l|p{3cm}|p{5cm}|}
\cline{2-3}
\multicolumn{1}{c|}{} &Type & Criteria \\ \cline{2-3}
\hline
\hline
\multirow{3}{*}{Objective}
& {Shortest path (global, local) }& exits in sight range, signs, experience, \ldots \\ \cline{2-3}
& {Quickest path}& jam in sight range, experience,\ldots \\ \cline{2-3}
&Given path & directives from signs, personal,\ldots \\ \hline
\multirow{3}{*}{Subjective}
&Pleasant path & design, clarity, lighting, experience, emotional state, \\ \cline{2-3}
&Safest path & experience, overview, walking in group\ldots \\ \cline{2-3}
&Known path & experience, overview, (re) identification of signs,\ldots\\ \hline
\ldots &\ldots &\ldots \\ \hline
\end{tabular}
\end{center}
\caption{Examples of path types inside a facility and possible influencing criteria.}
\label{tab:path_types}
\end{table}
\end{document}
答案1
tabular
对于(或) 环境中变化的单/双水平线和相交/分割垂直线array
,使用hhline
包裹。这是您的示例,经过修改\hline\hline
:
\documentclass{article}
\usepackage{multirow}% http://ctan.org/pkg/multirow
\usepackage{hhline}% http://ctan.org/pkg/hhline
\begin{document}
\begin{table}[htb]
\centering
\begin{tabular}{|l|p{3cm}|p{5cm}|}
\cline{2-3}
\multicolumn{1}{c|}{} & Type & Criteria \\
%\hline
%\hline
\hhline{-:=:=}
\multirow{3}{*}{Objective}
& Shortest path (global, local) & exits in sight range, signs, experience, \ldots \\ \cline{2-3}
& Quickest path & jam in sight range, experience, \ldots \\ \cline{2-3}
& Given path & directives from signs, personal, \ldots \\ \hline
\multirow{3}{*}{Subjective}
& Pleasant path & design, clarity, lighting, experience, emotional state, \\ \cline{2-3}
& Safest path & experience, overview, walking in group \ldots \\ \cline{2-3}
& Known path &experience, overview, (re) identification of signs, \ldots\\ \hline
\ldots & \ldots & \ldots \\ \hline
\end{tabular}
\caption{Examples of path types inside a facility and possible influencing criteria.}
\label{tab:path_types}
\end{table}
\end{document}
这hhline
文档包含有关指定参数的更多信息\hhline
。
请注意,即使您认为问题是在标题中提出的,仅限代码的问题也提供不了太多的背景信息。