SHOW:
|
|
- or go back to the newest paste.
1 | \documentclass{article} | |
2 | \usepackage{booktabs} | |
3 | \usepackage{multirow} | |
4 | ||
5 | \usepackage{array} | |
6 | \newcolumntype{O}[1]{>{\raggedright\arraybackslash}m{#1}} | |
7 | \newcolumntype{P}[1]{>{\centering\arraybackslash}m{#1}} | |
8 | \newcolumntype{Q}[1]{>{\raggedleft\arraybackslash}m{#1}} | |
9 | \newcolumntype{S}{>{\centering\arraybackslash}m{2cm}} | |
10 | ||
11 | - | \begin{tabular}{@{}lcp{2cm}cp{2cm}@{}} |
11 | + | |
12 | ||
13 | \begin{table}[h] | |
14 | \centering | |
15 | \caption{My caption} | |
16 | \label{my-label} | |
17 | ||
18 | \begin{tabular}{@{}lcScP{2cm}@{}} | |
19 | \toprule | |
20 | & Column & Column & Column & Column \\ \midrule | |
21 | Row & 1 & 2 & 3 & $k=a+b+c+d+e+f+g$ \\ | |
22 | Row & 5 & \multicolumn{2}{c}{\multirow{2}{*}{Because why not}} & 8 \\ | |
23 | Row & 9 & \multicolumn{2}{c}{} & 12 \\ | |
24 | Row & 13 & $k=a+b+c+d+e$ & 15 & 16 \\ \bottomrule | |
25 | \end{tabular} | |
26 | ||
27 | \end{table} | |
28 | ||
29 | \end{document} |