-
Notifications
You must be signed in to change notification settings - Fork 45
Tables
egraff edited this page Aug 2, 2015
·
3 revisions
Examples of booktabs/tabularx
\documentclass{book}
\usepackage{booktabs}
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\begin{document}
\begin{table}[htbp]
\caption[Summary of performance of Share Algorithm with different configurations.]{%
Summary of AB workload trace generation. Config A corresponds to weighing latency
and wasted power 2:1. Config B weighs the two equally, while C has a weighting ratio
of 1:2. Percentages are calulated using means, and are relative to using no PM.}
\label{table:someLabel}
\centering
\begin{tabularx}{\textwidth}{c *{6}{Y}}
\toprule
\multicolumn{1}{c}{} & \multicolumn{3}{c}{Power Savings} & \multicolumn{3}{c}{Added Completion Time}\tabularnewline
\cmidrule(lr){2-4} \cmidrule(lr){5-7}
\multicolumn{1}{c}{Workload} & A & B & C & A & B & C \tabularnewline
\midrule
Normal & $16.6\%$ & $15.6\%$ & $15.9\%$ & $2.0\%$ & $5.1\%$ & $4.2\%$ \tabularnewline
\bottomrule
\end{tabularx}
\end{table}
\end{document}
Example taken from Jan-Ove's thesis.