Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. documentclass{report}
  2.  
  3. usepackage{booktabs}
  4. usepackage{longtable}
  5. newcommand*{thead}[1]{multicolumn{1}{c}{bfseries #1}}
  6.  
  7. begin{document}
  8.  
  9. begin{center}
  10. begin{longtable}{rcrrcc}
  11. toprule
  12. thead{ID} & thead{Database name} & thead{shortstack{Size\(MB)}} & thead{shortstack{No. of\records}} & thead{shortstack{Time stamp\1st record}} & thead{shortstack{Time stamp\last record}} \
  13. midrule
  14. %input{tab-metadata} Really long table
  15. 1 & dummie & 2.1 & 33 & dummie & dummie \
  16. 2 & dummie & 4.3 & 67 & dummie & dummie \
  17. bottomrule
  18. end{longtable}
  19. end{center}
  20.  
  21. end{document}
  22.  
  23. documentclass{report}
  24.  
  25. usepackage{booktabs}
  26. usepackage{longtable}
  27. newcommand*{thead}[1]{%
  28. multicolumn{1}{c}{bfseriesbegin{tabular}{@{}c@{}}#1end{tabular}}}
  29.  
  30. begin{document}
  31.  
  32. setlengthtabcolsep{5pt}
  33. begin{longtable}{@{}rcrrcc@{}}
  34. toprule
  35. thead{ID} &
  36. thead{Database name} &
  37. thead{Size\(MB)} &
  38. thead{No. of\records} &
  39. thead{Time stamp\1st record} &
  40. thead{Time stamp\last record} \
  41. midrule
  42. %input{tab-metadata} Really long table
  43. 1 & dummie & 2.1 & 33 & dummie & dummie \
  44. 2 & dummie & 4.3 & 67 & dummie & dummie \
  45. bottomrule
  46. end{longtable}
  47.  
  48.  
  49. end{document}
  50.  
  51. documentclass{report}
  52.  
  53. usepackage{booktabs}
  54. usepackage{longtable}
  55. usepackage{makecell}
  56. renewcommandtheadfont{bfseries}
  57.  
  58. usepackage{cellspace}
  59. setlengthcellspacetoplimit{4pt}
  60. setlengthcellspacebottomlimit{4pt}
  61.  
  62. begin{document}
  63.  
  64. begin{center}
  65. begin{longtable}{Srcrrcc}
  66. toprule
  67. thead{ID} & thead{Database name} & thead{shortstack{Size & & & \(MB)}} & thead{shortstack{No. of\records}} & thead{shortstack{Time stamp\1st record}} & thead{shortstack{Time stamp\last record}} \
  68. midrule
  69. %input{tab-metadata} Really long table
  70. 1 & dummie & 2.1 & 33 & dummie & dummie \
  71. 2 & dummie & 4.3 & 67 & dummie & dummie \
  72. bottomrule
  73. end{longtable}
  74. end{center}
  75.  
  76. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement