latex怎样生成table字样和caption换行的表格
1个回答
展开全部
\documentclass[10pt,landscape]{article}
\usepackage[left=1cm,right=1cm,top=1cm,bottom=1cm]{geometry}
\usepackage{caption}
\makeatletter % "@" is now a normal letter for TeX
\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1: #2}%
{\bfseries #1:} #2\par
\vskip\belowcaptionskip}
\makeatother
\begin{document}
\begin{table}
\caption{\newline The results of running algorithm parallel using MapReduce.}
\begin{tabular}{llllllp{4.84cm}}
\hline
Node Prop & CPU(GHz) & RAM(GB) & No. of nodes & No. of map functions & Threshold computing time(s) & \multicolumn{1}{p{4.84cm}}{\centering Memory cell generation time(s)} \\
\hline
Serial & 250GHz & 1GB & 1 & - & 131 & \multicolumn{1}{p{4.84cm}}{\centering 168} \\
Test case 2 & & & & & & \multicolumn{1}{p{4.84cm}}{\centering} \\
Test case 3 & & & & & & \multicolumn{1}{p{4.84cm}}{\centering} \\
Test case 4 & & & & & & \multicolumn{1}{p{4.84cm}}{\centering} \\
Test case 5 & & & & & & \multicolumn{1}{p{4.84cm}}{\centering} \\
\hline
\end{tabular}\\
\end{table}
\end{document}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询