Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jimratliff/67c0b925957a11976aaeaf950d8345a3 to your computer and use it in GitHub Desktop.

Select an option

Save jimratliff/67c0b925957a11976aaeaf950d8345a3 to your computer and use it in GitHub Desktop.
Insert table of key symbols for model, with alternate rows shaded. Requires that color "tableShade" has been defined, e.g., "\definecolor{tableShade}{gray}{0.9}". #latex #snippet
\begin{table}[!htb] % p option positions table on its own page.
\label{table:summary_key_symbols}
\caption{Summary of key symbols in model}
\centering
\rowcolors{2}{tableShade}{white} % start alternating shades from 2nd row (not counting header)
\begin{tabular}[t]{>{\centering}m{0.2\linewidth} >{\raggedright\arraybackslash}m{0.7\linewidth}}
\toprule
Symbol & Meaning \\
\midrule
$x$ & Description. \\
$x$ & Description. \\
\midrule
$x$ & Description. \\
$x$ & Description. \\
\bottomrule
\end{tabular}
\end{table}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment