ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Use of context in lua
Date: Wed, 15 Aug 2018 18:45:22 +1200	[thread overview]
Message-ID: <2290fdb4-9542-e827-c1dc-c793ce090c52@gmail.com> (raw)
In-Reply-To: <b014af46-62a1-1e21-c8e1-698df06badfd@mailbox.org>



On 15/08/18 17:46, Jan U. Hasecke wrote:
> On 14.08.2018 16:58, Pablo Rodriguez wrote:
>> I rewrote your sample as (xtables are the only tables I know in ConTeXt):
>>
>>      \starttext
>>      \startlua
>>      context.startxtable()
>>          context.startxrow()
>>           context.startxcell()
>>            context("Note 1")
>>           context.stopxcell()
>>           context.startxcell()
>>            context("Note 2")
>>           context.stopxcell()
>>          context.stopxrow()
>>          context.startxrow()
>>           context.startxcell()
>>            context("Note 3")
>>           context.stopxcell()
>>           context.startxcell()
>>            context("Note 4")
>>           context.stopxcell()
>>          context.stopxrow()
>>      context.stopxtable()
>>      \stoplua
>>      \stoptext
> 
> Seeing this example I wonder if there is already an example taking a
> csv-file and creating a table based on its content. I guess building
> blocks are readfile, loops and setting the stop sign (; oder ,).

It already exists:
- Database module
   http://wiki.contextgarden.net/M-database
- handlecsv module
 
https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=55907888/action=view/id=86

> 
> As I know a bit of Python, at least, I might be able to search for the
> building blocks in the doku. ;-)
> 
> 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
> ___________________________________________________________________________________
> 
___________________________________________________________________________________
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	other threads:[~2018-08-15  6:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13 15:19 date calculated with currentdate plus n days Jan U. Hasecke
2018-08-13 15:57 ` Pablo Rodriguez
2018-08-13 17:37   ` Jan U. Hasecke
2018-08-13 23:46     ` Henri Menke
2018-08-14  5:29       ` Pablo Rodriguez
2018-08-14  7:24         ` Henri Menke
2018-08-14 14:58           ` Pablo Rodriguez
2018-08-15  5:46             ` Use of context in lua (was: date calculated with currentdate plus n days) Jan U. Hasecke
2018-08-15  6:45               ` Henri Menke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2290fdb4-9542-e827-c1dc-c793ce090c52@gmail.com \
    --to=henrimenke@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).