Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. begin{table}[h]
  2. centering
  3. begin{tabular}{ | p{1.2cm} | p{1.6cm} | p{1.6cm} | p{1.6cm} | p{1.6cm} |}
  4. hline
  5. multirow{2}{*}{Scenario} & multicolumn{2}{|c|}{Urban} & multicolumn{2}{|c|}{Highway} \
  6. & Without RSU & With RSU & Without RSU & With RSU \ hline
  7. PDR & e-HBCWC & HBCWC & e-HBCWC & \ hline
  8. End-to-End Delay & e-HBCWC & DCF & HBCWC & \ hline
  9. Overall & e-HBCWC & e-HBCWC & e-HBCWC & \ hline
  10. end{tabular}
  11. end{table}
  12.  
  13. documentclass{article}
  14. usepackage{booktabs}
  15. begin{document}
  16. begin{table}[htp]
  17. centering
  18. addtolength{tabcolsep}{-2pt} % adjust to fit
  19. begin{tabular}{lllll}
  20. toprule
  21. & multicolumn{2}{c}{Urban} & multicolumn{2}{c}{Highway} \
  22. cmidrule(lr){2-3}cmidrule(lr){4-5}
  23. Scenario & Without RSU & With RSU & Without RSU & With RSU \
  24. midrule
  25. PDR & e-HBCWC & HBCWC & e-HBCWC & \
  26. End-to-End Delay & e-HBCWC & DCF & HBCWC & \
  27. Overall & e-HBCWC & e-HBCWC & e-HBCWC & \
  28. bottomrule
  29. end{tabular}
  30. end{table}
  31. end{document}
  32.  
  33. documentclass{article}
  34. usepackage{multirow}
  35. newlength{without}
  36. newcommand{adjustsize}[1]{makebox[without]{#1}}
  37. begin{document}
  38.  
  39. begin{table}[!htb]
  40. settowidth{without}{Without RSU}
  41. addtolength{tabcolsep}{-2pt} % adjust to fit
  42. begin{tabular}{ | *{5}{l|} }
  43. hline
  44. multirow{2}{*}{Scenario} & multicolumn{2}{c|}{Urban} & multicolumn{2}{c|}{Highway} \
  45. & Without RSU & adjustsize{With RSU} & Without RSU & adjustsize{With RSU} \ hline
  46. PDR & e-HBCWC & HBCWC & e-HBCWC & \ hline
  47. begin{tabular}{@{}l@{}}End-to-End\ Delayend{tabular}
  48. & e-HBCWC & DCF & HBCWC & \ hline
  49. Overall & e-HBCWC & e-HBCWC & e-HBCWC & \ hline
  50. end{tabular}
  51. end{table}
  52.  
  53. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement