Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage[table]{xcolor}
- usepackage{datatool}
- begin{filecontents*}{data.csv}
- word
- first
- second
- third
- fourth
- end{filecontents*}
- DTLloaddb{rows}{data.csv}
- begin{document}
- begin{tabular}{c}
- hline
- rowcolor{orange}
- DTLforeach*{rows}{position=word}{
- position%
- DTLiflastrow{}{\DTLifoddrow{rowcolor{gray}}{rowcolor{orange}}}%
- }
- \ hline
- end{tabular}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement