Hi all,

I found some hints to CSV in the wiki, but they all refer to tables.

What are the building block to create business cards from a csv file?


My business-card.tex looks like this:

\starttext

{\bf Vorname Name}\\
Function

\blank

Company\\
Street\\
PLZ City\\
Germany\\
Telefon: 12345678\\
n...@example.com\\
www.example.com\\

\stoptext

In pseudo code I think something like this could work:

for i in csv:
    {\bf $Vorname $Name}\\
    $Function

    \blank

    $Company\\
    $Street\\
    etc.
    \page

The variables ($Vorname, $Name etc) could be named according to the
columns in the first row in the csv-file.

Each row starting from the second is creating a page (business card).

TIA
juh


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to