SHARE
TWEET

Untitled

a guest Jun 15th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{memoir}
  2.  
  3. usepackage{etoolbox}
  4.  
  5. newcounter{rownumbers}
  6. newtoggle{showrownumber}%
  7.  
  8.  
  9.  
  10. pretotabular{%
  11.     setcounter{rownumbers}{0}%
  12.     toggletrue{showrownumber}%
  13. }
  14.  
  15. newcommandifshowrownumber[1]{%
  16.     iftoggle{showrownumber}{#1}{!}%
  17. }
  18. defnonum{%
  19.     togglefalse{showrownumber}%
  20. }
  21. defrownumberdisplay{%
  22.     ifshowrownumber{makebox[1.5em][r]{%
  23.         stepcounter{rownumbers}arabic{rownumbers}.space%
  24.     }}%
  25. }
  26. defrowfill{%
  27.     ifshowrownumberdotfill%
  28.     toggletrue{showrownumber}%
  29. }
  30.  
  31.  
  32.  
  33. begin{document}
  34.  
  35. toggletrue{showrownumber}%
  36. begin{tabularx}{.9textwidth}{>{rownumberdisplay}X<{rowfill} r r}%
  37. toprule%
  38.     nonum Name & A & B\
  39. midrule%
  40.     nonum emph{Section} \
  41.     (1) Name & 100.0 & 3.5 \
  42.     nonum -- and Name & 10.15 & 56.8 \
  43.     nonum emph{Section} \
  44.     (2) Name & 66.4 & 43.1 \
  45.     (3) Name & 66.4 & 43.1 \
  46.     (4) Name & 66.4 & 43.1 \
  47.     (5) Name & 66.4 & 43.1 \
  48.     (6) Name & 66.4 & 43.1 \
  49.     (7) Name & 66.4 & 43.1 \
  50.     (8) Name & 66.4 & 43.1 \
  51.     (9) Name & 66.4 & 43.1 \
  52. bottomrule%
  53. end{tabularx}%
  54.  
  55. 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