ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lua code and table
Date: Fri, 19 Feb 2021 12:42:58 +0100	[thread overview]
Message-ID: <CACyK-eoYtk_skM68YeQ5i4q7wJ0P2Rpd76+eSjc1=J6SnDSV3A@mail.gmail.com> (raw)
In-Reply-To: <CACyK-eqf_63nWv-AJGuLGQoWFk3DFCX6zznNqdgyMvb52_K=wg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2053 bytes --]

Hi Hans, Thanks again for the ideas to improve my code. However, I am new
to Lua and my level is far from sufficient to understand everything. Why in
no table do the crosses appear in the cells; which was my original idea. Thank
you. Fabrice

Le jeu. 18 févr. 2021 à 16:28, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
a écrit :

> Hello Jano,
> Thanks.
> Fabrice
>
> Le jeu. 18 févr. 2021 à 16:27, Jano Kula <jano.kula@gmail.com> a écrit :
>
>> Hello Fabrice,
>>
>>
>>
>> On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur <
>> fabrice1.couvreur@gmail.com> wrote:
>>
>>> Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning
>>> thanks to you
>>> Hans, I compiled your code and I get an error message :
>>>
>>> lua error       > lua error on line 50 in file ./table_1.tex:
>>>
>>> token call, syntax: [ctxlua]:11: unexpected symbol near '='
>>>
>>> 13     \startluacode
>>> 14          function document.MyTable(specification)
>>> 15
>>> 16              local pattern    = specification.pattern
>>> 17              local action     = specification.action
>>> 18              local conversion = specification.conversion or
>>> "Characters"
>>> 19
>>> 20              local n = #pattern
>>> 21
>>> 22          --  context.startxtable { align = "middle,lohi", width =
>>> "0.8cm",
>>> 23 >>  offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" }
>>>
>>
>> Just comment out line 23, too, or join 22 + 23 to one line.
>>
>> Jano
>>
>>
>>
>> ___________________________________________________________________________________
>> 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
>>
>> ___________________________________________________________________________________
>>
>

[-- Attachment #1.2: Type: text/html, Size: 5117 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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:[~2021-02-19 11:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-17 17:40 Fabrice Couvreur
2021-02-17 21:13 ` Tomas Hala
2021-02-17 21:26 ` Wolfgang Schuster
2021-02-17 22:52   ` Hans Hagen
2021-02-17 23:22 ` Bruce Horrocks
2021-02-18  9:06   ` Hans Hagen
2021-02-18 15:14     ` Fabrice Couvreur
2021-02-18 15:26       ` Jano Kula
2021-02-18 15:28         ` Fabrice Couvreur
2021-02-19 11:42           ` Fabrice Couvreur [this message]
2021-02-19 12:06             ` Hans Hagen
2021-02-19 13:12               ` Jano Kula
2021-02-19 13:26                 ` Hans Hagen
2021-02-20 17:21                   ` Fabrice Couvreur

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='CACyK-eoYtk_skM68YeQ5i4q7wJ0P2Rpd76+eSjc1=J6SnDSV3A@mail.gmail.com' \
    --to=fabrice1.couvreur@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).