how i can use \usepackage{csvsimple}

Added by red sea over 10 years ago

please how i can use \usepackage{csvsimple} ?

i have ph.csv and 3 head in csv file:
n - name - num

and add :


    \noindent{\bf AutoMultipleChoice  \hfill TEST}


      Pre-filled test.

    \hfill \namefield{\fbox{    

          \Large\bf \name{} \surname{}






and add this code in the after beign{docum}:

\csvreader[head to column names]{students.csv}{}{\subject}

but i don't got any thing!

Replies (1)

RE: how i can use \usepackage{csvsimple} - Added by Alexis Bienvenüe over 10 years ago

The "head to column names" option tells csvreader to make command names from the CSV headers. For the example you used, the column names were id, name and surname, but not for your CSV file! So you have to adapt the example using for example \name{} instead of "\name{} \surname{}" and \num instead of \id.