SHARE
TWEET

Code#5

Riinu Nov 4th, 2014 147 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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{document}
  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}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top