Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. documentclass[11pt]{article}
  2. usepackage{caption}
  3. usepackage{subcaption}
  4. DeclareCaptionSubType*[arabic]{table}
  5. captionsetup[subtable]{labelformat=simple,labelsep=space}
  6.  
  7. begin{document}
  8.  
  9. begin{table}[ht]
  10. begin{subtable}{.5textwidth}
  11. centering
  12. $begin{array}{ | c | c | c | c | } hline
  13. ast & ast & ast & ast \ hline
  14. ast & ast & ast & ast \ hline
  15. ast & ast & ast & ast \ hline
  16. ast & ast & ast & ast \ hline
  17. end{array}$
  18. subcaption{Subtable 1}
  19. label{lab1}
  20. end{subtable}
  21. begin{subtable}{.5textwidth}
  22. centering
  23. $begin{array}{ | c | c | c | c | } hline
  24. ast & ast & ast & ast \ hline
  25. ast & ast & ast & ast \ hline
  26. ast & ast & ast & ast \ hline
  27. ast & ast & ast & ast \ hline
  28. end{array}$
  29. subcaption{Subtable 1}
  30. label{lab2}
  31. end{subtable}
  32. caption{Sub Tables}
  33. label{lab3}
  34. end{table}
  35.  
  36. end{document}
  37.  
  38. DeclareCaptionSubType*[alph]{table}
  39.  
  40. renewcommand{arraystretch}{2}
  41.  
  42. documentclass[11pt]{article}
  43. usepackage{caption}
  44. usepackage{subcaption}
  45. DeclareCaptionSubType*[alph]{table}
  46. captionsetup[subtable]{labelformat=simple,labelsep=space}
  47. usepackage{array}
  48. usepackage{bigstrut}
  49.  
  50. begin{document}
  51.  
  52.  
  53. begin{table}[ht]
  54. begin{subtable}{.5textwidth}
  55. centering
  56. $begin{array}{ | c | c | c | c | } hline
  57. parbox[c][3cm][b]{3cm}{$ast$} & ast & ast & ast bigstrut\ hline
  58. ast & ast & ast & ast \ hline
  59. ast & ast & ast & ast \ hline
  60. ast & ast & ast & ast \ hline
  61. end{array}$
  62. subcaption{Subtable 1}
  63. label{lab1}
  64. end{subtable}
  65. begin{subtable}{.5textwidth}
  66. centering
  67. renewcommand{arraystretch}{2}
  68. $begin{array}{ | c | c | c | c | } hline
  69. ast & ast & ast & ast \ hline
  70. ast & ast & ast & ast \ hline
  71. ast & ast & ast & ast \ hline
  72. ast & ast & ast & ast \ hline
  73. end{array}$
  74. subcaption{Subtable 1}
  75. label{lab2}
  76. end{subtable}
  77. caption{Sub Tables}
  78. label{lab3}
  79. end{table}
  80.  
  81. end{document}
  82.  
  83. newcommand{mycell}[1]{parbox[c][3cm][c]{3cm}{centering #1}}
  84.  
  85. mycell{$ast$}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement