ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Creating business cards with CSV
@ 2019-02-07 13:27 Jan U. Hasecke
  2019-02-08 18:54 ` Pablo Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Jan U. Hasecke @ 2019-02-07 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-11 19:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 13:27 Creating business cards with CSV Jan U. Hasecke
2019-02-08 18:54 ` Pablo Rodriguez
2019-02-10 10:01   ` Jan U. Hasecke
2019-02-11 19:13     ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).