SHARE
TWEET

Untitled

a guest Jun 18th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{article}
  2.  
  3. usepackage[table]{xcolor}
  4. usepackage{datatool}
  5.  
  6. begin{filecontents*}{data.csv}
  7. word
  8. first
  9. second
  10. third
  11. fourth
  12. end{filecontents*}
  13.  
  14. DTLloaddb{rows}{data.csv}
  15.  
  16. begin{document}
  17.  
  18. begin{tabular}{c}
  19. hline
  20. rowcolor{orange}
  21. DTLforeach*{rows}{position=word}{
  22.     position%
  23.     DTLiflastrow{}{\DTLifoddrow{rowcolor{gray}}{rowcolor{orange}}}%
  24.     }
  25. \ hline
  26.  
  27. end{tabular}
  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