乳胶表语法 [英] Latex Table Syntax

查看:48
本文介绍了乳胶表语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  \ begin {center}\ begin {table} [h!]\定心\ begin {tabular} {| l | l | l | l |}\ hline数据集文件的名称&案件数记录数首要的关键 \\\ hline详细互动147,004&2400及以上互动ID \\\ hline详细事件\\\ hline细节变更\\\ hline详细活动\\\ hline\ end {表格}\ caption {荷兰合作银行集团ICT提供的四个数据集的数据集描述.}\茶几}\ end {center} 

该表格不适合该页面.有人可以帮助我在页面上创建它吗?该表有4列和5行.

解决方案

我建议使用

  \ documentclass {article}\ usepackage {booktabs,siunitx}\ begin {document}\ noindent\ begin {tabular} {l r r l}\ toprule数据集文件名 &\ multicolumn {1} {c} {案例}&\ multicolumn {1} {c} {Records}&首要的关键 \\\ midrule详细互动\ num {147004}&\ num {2400}&InteractionID \\详细事件\ num {12345}&\ num {20000}&IncidentID \\细节变更\ num {12}&\ num {412}&变更ID \\详细活动\num{7890} &\ num {1234567}&活动ID \\\ bottomrule\ end {表格}\ end {document} 

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

  \hline
Name of the Dataset File & Number of Cases & Number of Records & Primary Key \\
\hline
Detail Interaction & 147,004 & 2400 & Interaction ID \\
\hline
 Detail Incident &    \\
\hline
Detail Change &  \\
\hline
Detail Activity &    \\
\hline
\end{tabular}
\caption{Dataset description of the four datasets provided by Rabobank Group ICT.}
\end{table}
\end{center}

The table doesnt fit to the page. Can someone help me in making it in a page. The table has 4 columns and 5 rows.

解决方案

I'd suggest writing the table in a more elegant way using booktabs, as there seems to be some superfluous information the headers:

\documentclass{article}

\usepackage{booktabs,siunitx}

\begin{document}

\noindent
\begin{tabular}{ l r r l }
  \toprule
  Dataset Filename & \multicolumn{1}{c}{Cases} & \multicolumn{1}{c}{Records} & Primary Key \\
  \midrule
  Detail Interaction & \num{147004} & \num{2400} & InteractionID \\
  Detail Incident & \num{12345} & \num{20000} & IncidentID \\
  Detail Change & \num{12} & \num{412} & ChangeID \\
  Detail Activity & \num{7890} & \num{1234567} & ActivityID \\
  \bottomrule
\end{tabular}

\end{document}

这篇关于乳胶表语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆