Last active
May 19, 2018 15:42
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \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