将表格单元格中的行上下移动

将表格单元格中的行上下移动

是否可以将单元格中的线上下移动,使其看起来与第一个和第二个单元格中的线相似?

在此处输入图片描述

乳胶代码:

\documentclass[paper=a4, fontsize=11pt]{scrartcl}   % 
\usepackage[ngerman, english]{babel}
\usepackage{subcaption}
\renewcommand{\baselinestretch}{1.5}
\usepackage{pbox}

\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{ |l|l|} 

\hline
status & indication  \\
\hline
201 & The route and direction were successful  updated.  \\
\hline
230 & The route and direction are being detected.  \\
\hline
202 & \pbox{30cm}{Deletion of the route, direction and other related data from the bus \\ and algorithm tables in case they were detected by the algorithm.}  \\
\hline
203 & \pbox{30cm}{Deletion of the route, direction and other related data from the bus \\and algorithm tables in case they were detected by the WiFi AP.}  \\
\hline
\hline
\end{tabular}
 \caption{The indication of the status values.}
\end{table}

\end{document}

答案1

我非常肯定pbox(这里)不想要,即使想要,也不是30cm

使用p列类型(有效使用\parbox!)

在我看来,数字应该右对齐,但这只是个人观点。

\documentclass[paper=a4, fontsize=11pt]{scrartcl}   % 
\usepackage[ngerman, english]{babel}
\usepackage{subcaption}
\renewcommand{\baselinestretch}{1.5}

\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{ |l|p{10cm}|} 

\hline
status & indication  \\
\hline
201 & The route and direction were successful  updated.  \\
\hline
230 & The route and direction are being detected.  \\
\hline
202 & Deletion of the route, direction and other related data from the bus and algorithm tables in case they were detected by the algorithm.  \\
\hline
203 & Deletion of the route, direction and other related data from the bus and algorithm tables in case they were detected by the WiFi AP.  \\
\hline
\hline
\end{tabular}
 \caption{The indication of the status values.}
\end{table}

\end{document}

在此处输入图片描述

相关内容