Fetching the Data from Row 1 (CSV)
This code requires people.csv.
\documentclass[captions=tableheading]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{datatool} \DTLloaddb{people}{people.csv} \begin{document} \DTLassign{people}{1}{% \Surname=surname,% \Title=title,% \AddressI=address1,% \AddressII=address2,% \Town=town,% \County=county,% \Postcode=postcode% } \begin{tabular}{l} \Title\ \Surname\\ \AddressI\\ \AddressII\\ \Town\\ \County\\ \Postcode \end{tabular} \end{document}
Download sample-assign-row1-csv.tex or sample-assign-row1-csv.pdf.