[NTG-context] Creating business cards with CSV

Jan U. Hasecke juh+ntg-context at mailbox.org
Thu Feb 7 14:27:08 CET 2019


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\\
name at 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




More information about the ntg-context mailing list