Guest User

siunitx shit

a guest
Jun 3rd, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.75 KB | None | 0 0
  1. % arara: pdflatex
  2.  
  3. \documentclass{article}
  4.  
  5. \usepackage{array}
  6. \usepackage{tabularx}
  7. \usepackage{caption}
  8. \usepackage{changepage}
  9. \usepackage{graphicx}
  10. \usepackage[export]{adjustbox}
  11. \usepackage[a4paper,top=0.05cm,bottom=0.05cm,left=0.1cm,right=0.1cm,marginparwidth=0.1cm, landscape, total ={210mm,297mm}]{geometry}
  12. \usepackage{rotating}
  13. \usepackage{caption}
  14. \usepackage{array}
  15. \usepackage{booktabs}
  16. \usepackage{pdflscape}
  17. \usepackage{multirow}
  18. \usepackage[separate-uncertainty=true]{siunitx}
  19.  
  20. \newcommand{\ts}[1]{\textsubscript{#1}}
  21.  
  22. \begin{document}
  23. \begin{table}
  24. \caption{Test}
  25. \centering
  26. \begin{tabular}{
  27.  lc*{6}{S[table-format=-2.2(2)]}
  28. }
  29. \toprule
  30. \multicolumn{1}{c}{Species} & Season & {Wet} & {Dry} & {Wet} & {Dry} & {Wet} & {Dry} \\
  31. \midrule
  32. \textit{Genus A}   & N &       &       &       &       &       & 81.82\pm0.36\ts{(4)} \\
  33. \textit{Species A} & C &       &       &       &       &       & -19.73\pm0.29\ts{(4)} \\
  34. \textit{Genus B}   & N &  5.14\pm1.21\ts{(16)} &  13.1 \pm1.2\ts{(18)} &3.7\pm0.85\ts{(16)} &12.55\pm0.84\ts{(16)} & 12.32\pm0.64\ts{(15)} & 12.27\pm0.47\ts{(16)} \\
  35. \textit{Species B} & C & -18.38\pm0.64\ts{(16)} & -17.25\pm0.44\ts{(18)} &-6.66\pm0.39\ts{(16)} &-16.67\pm0.59\ts{(16)} & -16.77\pm0.3\ts{(15)} & -15.98\pm0.37\ts{(16)} \\
  36. \end{tabular}
  37. \end{table}
  38.  
  39.  
  40. \begin{table}
  41. \centering
  42. \begin{tabular}{ l *{2}{S[table-format=2.1(1)]} S[table-format=+2.1(1)] }
  43.     \hline
  44.     {$U_\textrm{RMS},\,\si{\kilo\volt}$} &
  45.     {$N_{[+]}$} &
  46.     {$N_{[-]}$} &
  47.     {$D,\,\% $}
  48.     \\
  49.     \hline\hline
  50.     \multicolumn{4}{l}
  51.     {\scriptsize all detected}
  52.     \\
  53.     1.4 &
  54.     7.0\pm1.6 &
  55.     9.5\pm2.2 &
  56.     -7.4\pm12.9
  57.     \\
  58.     1.6 &
  59.     8.5\pm1.7 &
  60.     13.4\pm2.3 &
  61.     -1.1\pm11.5
  62.     \\
  63.     1.8 &
  64.     12.2\pm2.2 &
  65.     15.5\pm2.7 &
  66.     +2.7\pm11.7
  67.     \\
  68.     2.0 &
  69.     15.5\pm2.3 &
  70.     18.8\pm2.7 &
  71.     +5.4\pm9.1
  72.     \\
  73.     2.2 &
  74.     19.7\pm2.7 &
  75.     19.0\pm2.8 &
  76.     +30.5\pm10.0
  77.     \\
  78.     2.4 &
  79.     24.0\pm2.8 &
  80.     20.0\pm2.8 &
  81.     +31.2\pm8.8
  82.     \\
  83.     \hline
  84.     \multicolumn{4}{l}
  85.     {$\scriptstyle r \geq 50\%$}
  86.     \\
  87.     1.4 &
  88.     6.9\pm1.6 &
  89.     9.1\pm2.1 &
  90.     -4.9\pm13.0
  91.     \\
  92.     1.6 &
  93.     8.4\pm1.7 &
  94.     12.5\pm2.2 &
  95.     +1.4\pm11.7
  96.     \\
  97.     1.8 &
  98.     11.9\pm2.1 &
  99.     14.6\pm2.7 &
  100.     +5.0\pm11.9
  101.     \\
  102.     2.0 &
  103.     15.2\pm2.2 &
  104.     18.0\pm2.6 &
  105.     +6.8\pm9.3
  106.     \\
  107.     2.2 &
  108.     18.5\pm2.6 &
  109.     15.9\pm2.6 &
  110.     +33.4\pm10.3
  111.     \\
  112.     2.4 &
  113.     23.1\pm2.8 &
  114.     18.0\pm2.7 &
  115.     +33.4\pm9.0
  116.     \\
  117.     \hline
  118.     \multicolumn{4}{l}
  119.     {$\scriptstyle r \geq 75\%$}
  120.     \\
  121.     1.4 &
  122.     5.4\pm1.6 &
  123.     6.6\pm1.9 &
  124.     +3.9\pm16.6
  125.     \\
  126.     1.6 &
  127.     7.3\pm1.6 &
  128.     8.0\pm2.0 &
  129.     +14.7\pm14.1
  130.     \\
  131.     1.8 &
  132.     10.3\pm2.0 &
  133.     10.2\pm2.3 &
  134.     +18.0\pm13.8
  135.     \\
  136.     2.0 &
  137.     14.1\pm2.1 &
  138.     13.8\pm2.4 &
  139.     +15.9\pm10.6
  140.     \\
  141.     2.2 &
  142.     15.8\pm2.4 &
  143.     10.6\pm2.1 &
  144.     +44.2\pm11.4
  145.     \\
  146.     2.4 &
  147.     20.1\pm2.7 &
  148.     13.3\pm2.3 &
  149.     +41.9\pm9.5
  150.     \\
  151.     \hline
  152. \end{tabular}
  153. \end{table}
  154.  
  155. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment