daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest May 17th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[landscape]{article}
  2. pagestyle{plain}
  3. usepackage[hmargin=1cm, vmargin=2cm]{geometry}
  4.  
  5. usepackage{longtable}
  6. usepackage{booktabs}
  7. usepackage{array}
  8. usepackage{threeparttable}
  9. usepackage[referable]{threeparttablex}
  10. usepackage{arydshln}
  11.  
  12. LTpre0ptLTpost0pt
  13. LTleft1emLTright1em
  14. newlengthtabcolwidth
  15. newlengthfirstcoltext
  16. newlengthrowheight
  17. setlength{footskip}{0pt}
  18. setlength{rowheight}{13ex}
  19. newcolumntype{y}[1]{>{raggedrightarraybackslash}p{#1}}
  20.  
  21. begin{document}
  22. centeringlarge
  23. LTcapwidth=textwidth
  24. settowidthfirstcoltext{longest~}
  25. setlengthtabcolwidth{dimexpr.5textwidth-firstcoltext-tabcolsep-10pt}
  26. begin{ThreePartTable}
  27.   % renewcommandTPTminimum{textwidth}
  28.   begin{TableNotes}
  29.     item[a] label{tn:a} foo
  30.     item[b] label{tn:b} bar
  31.     % unskipstrutpar
  32.   end{TableNotes}
  33.   begin{longtable}{%
  34.       @{extracolsep{fill}}ry{tabcolwidth}:y{tabcolwidth}@{}}
  35.       caption{Please fill in this table.}\
  36.       toprule
  37.       multicolumn{1}{r}{~}
  38.       & multicolumn{1}{y{tabcolwidth}}{A}
  39.       & multicolumn{1}{y{tabcolwidth}}{B} \
  40.     midrule
  41.     endhead
  42.     cmidrule{3-3}
  43.     multicolumn{3}{r}{raggedlefttextit{continued ldots}}
  44.     endfoot
  45.     bottomrule
  46.     insertTableNotes\
  47.     endlastfoot
  48.     multicolumn{1}{r:}{foo} & & \[rowheight]cdashline{2-3}
  49.     longesttnotex{tn:a} & & \[rowheight]cline{1-3}
  50.     foo & & \[rowheight]cdashline{2-3}
  51.     bartnotex{tn:b} & & \[rowheight]cdashline{2-3}
  52.     baz & & \[rowheight]
  53.   end{longtable}
  54. end{ThreePartTable}
  55. end{document}
RAW Paste Data
Top