Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. documentclass[letterpaper,12pt]{article}
  2.  
  3. % things needed to include figures
  4. usepackage{subfigure, graphicx}
  5. % float must be included for the [H] to actually work
  6. usepackage{float}
  7. % formulas
  8. usepackage{amsmath}
  9. % Added to adjust captions
  10. usepackage[singlelinecheck=false]{caption}
  11. % added to adjust margins at the suggestion of Dr. Matt
  12. usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
  13. usepackage{fullpage}
  14.  
  15. begin{document}
  16. % 2 column side by side table
  17. begin{table}[H]
  18. subtable[Half-life for $^{108}$Ag] {%
  19.  
  20. % -----------------------------------------------------%
  21. begin{tabular}{c@{hskip 1cm} c}
  22. hlinenoalign{smallskip}
  23. Accepted $T_{1/2}$ & Experimental $T_{1/2}$\
  24. (s) & (s)\
  25. hlinenoalign{smallskip}
  26. 142.92 & 158 $pm$ 7\
  27. hlinenoalign{smallskip}
  28. end{tabular}
  29. label{lefttable}
  30. % -----------------------------------------------------%
  31.  
  32. }
  33. subtable[Half-life for $^{110}$Ag] {%
  34.  
  35. % -----------------------------------------------------%
  36. begin{tabular}{c@{hskip 1cm} c}
  37. hlinenoalign{smallskip}
  38. Accepted $T_{1/2}$ & Experimental $T_{1/2}$\
  39. (s) & (s)\
  40. hlinenoalign{smallskip}
  41. 24.6 & 21 $pm$ 2\
  42. hlinenoalign{smallskip}
  43. end{tabular}
  44. label{righttable}
  45. % -----------------------------------------------------%
  46.  
  47. }
  48. caption{2 Column tables side by side}
  49. label{sidebysidetable}
  50. end{table}
  51. end{document}
  52.  
  53. usepackage{caption}
  54. captionsetup[table]{justification=raggedright}
  55. captionsetup[subtable]{justification=raggedright}
  56.  
  57. usepackage{subcaption}
  58.  
  59. begin{table}[H]
  60. begin{subtable}[b]{0.48textwidth}
  61. % -----------------------------------------------------%
  62. caption{Half-life for $^{108}$Ag} label{lefttable}
  63. begin{tabular}{c@{hskip 1cm} c}
  64. hlinenoalign{smallskip}
  65. Accepted $T_{1/2}$ & Experimental $T_{1/2}$\
  66. (s) & (s)\
  67. hlinenoalign{smallskip}
  68. 142.92 & 158 $pm$ 7\
  69. hlinenoalign{smallskip}
  70. end{tabular}
  71. % -----------------------------------------------------%
  72. end{subtable}
  73. begin{subtable}[b]{0.48textwidth}
  74. % -----------------------------------------------------%
  75. caption{Half-life for $^{110}$Ag} label{righttable}
  76. begin{tabular}{c@{hskip 1cm} c}
  77. hlinenoalign{smallskip}
  78. Accepted $T_{1/2}$ & Experimental $T_{1/2}$\
  79. (s) & (s)\
  80. hlinenoalign{smallskip}
  81. 24.6 & 21 $pm$ 2\
  82. hlinenoalign{smallskip}
  83. end{tabular}
  84. % -----------------------------------------------------%
  85. end{subtable}
  86. caption{2 Column tables side by side}
  87. label{sidebysidetable}
  88. end{table}
  89.  
  90. caption{This table. hspace*{fill}}
  91.  
  92. documentclass[letterpaper,12pt]{article}
  93. usepackage{caption, subcaption}
  94. usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
  95.  
  96. begin{document}
  97.  
  98. begin{table}[H]
  99. begin{subtable}[b]{0.48textwidth}
  100. caption{Half-life for $^{108}$Ag hspace*{fill}} %NOTE
  101. begin{tabular}{c@{hskip 1cm} c}
  102. hlinenoalign{smallskip}
  103. Accepted $T_{1/2}$ & Experimental $T_{1/2}$\
  104. (s) & (s)\
  105. hlinenoalign{smallskip}
  106. 142.92 & 158 $pm$ 7\
  107. hlinenoalign{smallskip}
  108. end{tabular}
  109. end{subtable}
  110. begin{subtable}[b]{0.48textwidth}
  111. caption{Half-life for $^{110}$Ag hspace*{fill}} %NOTE
  112. begin{tabular}{c@{hskip 1cm} c}
  113. hlinenoalign{smallskip}
  114. Accepted $T_{1/2}$ & Experimental $T_{1/2}$\
  115. (s) & (s)\
  116. hlinenoalign{smallskip}
  117. 24.6 & 21 $pm$ 2\
  118. hlinenoalign{smallskip}
  119. end{tabular}
  120. end{subtable}
  121. caption{2 Column tables side by side}
  122. end{table}
  123.  
  124. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement