I would like to color the entirety of the row "Trail 1" and "Trail 3", other than those words themselves (ie just the numbers, but the coloring runs from the \midrule to the next). This would also remove the tiny white spaces in between, which I am not sure how to remove. How would I do so?
Also, is it possible to add a legend to this to signify colors? I know that Pgfplots does this, but I do not know how to incorporate it due to the difference between tikzpicture and tabular (correct me if I am wrong, I am new to this community).
Here is the runnable code:
\documentclass[11pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[sexy]{evan} \usepackage{booktabs} \usepackage{siunitx} \usepackage[table]{xcolor} \newcommand{\mycc}{\cellcolor{lightgray}} \begin{document} \begin{center} \begin{tabular}{SSSSSSS} \toprule {$m$} & {$2$m} & {$4$m} & {$6$m} & {$8$m} & {$10$m} & {$12$m} \\ \midrule \text{Trail 1} & \mycc 1.48 & \mycc 2.76 & \mycc 4.02 & \mycc 5.22 & \mycc 6.43 & \mycc 7.76 \\ \midrule \text{Trail 2} & 1.53 & 3.21 & 4.76 & 6.32 & 7.81 & 9.47 \\ \midrule \text{Trail 3} & \mycc 1.53 & \mycc 2.94 & \mycc 4.53 & \mycc 5.96 & \mycc 7.36 & \mycc 8.83 \\ \midrule \text{Trail 4} & 1.80 & 3.46 & 4.94 & 6.49 & 8.20 & 9.85 \\ \bottomrule \end{tabular} \end{center} \end{document} I am not sure what to do, so any help who be greatly appreciated! Also, I am not sure why the data values are not aligned, so if that could be fixed as well, that would be great!
EDIT: Here are some of the sources for where the code comes from:







ssymbols (seconds?) come in?