Преглед изворни кода

Align tables on decimal points

Vecna пре 3 недеља
родитељ
комит
e7fdaaa271

+ 2 - 2
parsing-results/lox-new-table-header.tex

@@ -13,6 +13,6 @@
     \label{tab:results-lox-new}
 
 \adjustbox{max width=\textwidth}{
-    \begin{tabular}{c|c|c|c|c|c|c|C{.125\textwidth}|c}
-        \textbf{Protocol} & \textbf{Request Size} & \textbf{Request Time} & \textbf{$\sigma$} & \textbf{Response Size} & \textbf{Response Time} & \textbf{$\sigma$} & \textbf{Response Handling Time} & \textbf{$\sigma$} \\
+    \begin{tabular}{c|c|S|S|c|S|S|S|S}
+        \shortstack{\textbf{Protocol} \\ \phantom{0} } & \shortstack{\textbf{Request Size} \\ \phantom{0} } & \shortstack{\textbf{Request Time} \\ \phantom{0} } & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } & \shortstack{\textbf{Response Size} \\ \phantom{0} } & \shortstack{\textbf{Response Time} \\ \phantom{0} } & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } & \shortstack{\textbf{Response} \\ \textbf{Handling Time}} & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } \\
         \hline

+ 2 - 2
parsing-results/lox-old-table-header.tex

@@ -14,6 +14,6 @@
     \label{tab:results-lox-old}
 
 \adjustbox{max width=\textwidth}{
-    \begin{tabular}{c|c|c|c|c|c|c|C{.125\textwidth}|c}
-        \textbf{Protocol} & \textbf{Request Size} & \textbf{Request Time} & \textbf{$\sigma$} & \textbf{Response Size} & \textbf{Response Time} & \textbf{$\sigma$} & \textbf{Response Handling Time} & \textbf{$\sigma$} \\
+    \begin{tabular}{c|c|S|S|c|S|S|S|S}
+        \shortstack{\textbf{Protocol} \\ \phantom{0} } & \shortstack{\textbf{Request Size} \\ \phantom{0} } & \shortstack{\textbf{Request Time} \\ \phantom{0} } & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } & \shortstack{\textbf{Response Size} \\ \phantom{0} } & \shortstack{\textbf{Response Time} \\ \phantom{0} } & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } & \shortstack{\textbf{Response} \\ \textbf{Handling Time}} & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } \\
         \hline

+ 1 - 1
parsing-results/table-header.tex

@@ -1,6 +1,6 @@
 \documentclass[sigconf]{acmart}
 \usepackage{adjustbox}
 \usepackage{array}
-\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
+\usepackage{siunitx}
 \begin{document}
 

+ 2 - 2
parsing-results/troll-patrol-table-header.tex

@@ -16,6 +16,6 @@
     \label{tab:results-troll-patrol}
 
 \adjustbox{max width=\textwidth}{
-    \begin{tabular}{c|c|c|c|c|c|c|C{.125\textwidth}|c}
-        \textbf{Protocol} & \textbf{Request Size} & \textbf{Request Time} & \textbf{$\sigma$} & \textbf{Response Size} & \textbf{Response Time} & \textbf{$\sigma$} & \textbf{Response Handling Time} & \textbf{$\sigma$} \\
+    \begin{tabular}{c|c|S|S|c|S|S|S|S}
+        \shortstack{\textbf{Protocol} \\ \phantom{0} } & \shortstack{\textbf{Request Size} \\ \phantom{0} } & \shortstack{\textbf{Request Time} \\ \phantom{0} } & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } & \shortstack{\textbf{Response Size} \\ \phantom{0} } & \shortstack{\textbf{Response Time} \\ \phantom{0} } & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } & \shortstack{\textbf{Response} \\ \textbf{Handling Time}} & \shortstack{\textbf{$\sigma$} \\ \phantom{0} } \\
         \hline