From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Table, xtable and lua
Date: Sun, 11 Nov 2018 10:50:27 +0100 [thread overview]
Message-ID: <CACyK-eqYywjtOpJovCOt7skVtDN29yXOHk5MBcyL4cH57bP0Ww@mail.gmail.com> (raw)
In-Reply-To: <60fbdfe2-ee6b-1ed3-e197-01d05aad84ad@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2353 bytes --]
Hi Wolfgang and Henri,
Thank you so much.
What is the document that allows me to find more information about context
and lua ?
Fabrice
Le dim. 11 nov. 2018 à 09:57, Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> a écrit :
>
>
> Henri Menke schrieb am 11.11.18 um 01:25:
> >
> > On 11/11/18 12:33 PM, Fabrice Couvreur wrote:
> >> Hi,
> >> I can not complete the first line of the table with the letters of the
> >> alphabet.
> >> Thank you.
> >> Fabrice
> >>
> >> \starttext
> >> \startlinecorrection[blank]
> >> \startmidaligned
> >> \startluacode
> >> context.startxtable({"align=middle, width=1.25cm"})
> >> context.startxrow()
> >> context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
> >> letter = {'A','B','C','D','E','F','G','H','I','J'}
> >> for letter = 1,10 do
> >> context.startxcell() context(print(letter))
> context.stopxcell()
> >> end
> > letters = {'A','B','C','D','E','F','G','H','I','J'}
> > for _,letter in ipairs(letters) do
> > context.startxcell() context(letter) context.stopxcell()
> > end
>
> A few more alternatives (take a look at the number converter):
>
> \setupbodyfont[dejavu]
>
> \starttext
>
> \startluacode
>
> local letters = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" }
>
> for _, letter in ipairs(letters) do
> context(letter)
> end
>
> context.par()
>
> for _, letter in next, letters do
> context(letter)
> end
>
> context.par()
>
> for i=1,10 do
> context(letters[i])
> end
>
> context.par()
>
> for i=1,10 do
> context(converters.convert("A",i))
> end
>
> context.par()
>
> for i=1,10 do
> context(converters.convert("A",i,"ru"))
> end
>
> \stopluacode
>
> \stoptext
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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: 4150 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________
next prev parent reply other threads:[~2018-11-11 9:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-10 23:33 Fabrice Couvreur
2018-11-11 0:24 ` Henri Menke
2018-11-11 0:25 ` Henri Menke
2018-11-11 8:57 ` Wolfgang Schuster
2018-11-11 9:50 ` Fabrice Couvreur [this message]
2018-11-11 10:27 ` Wolfgang Schuster
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-eqYywjtOpJovCOt7skVtDN29yXOHk5MBcyL4cH57bP0Ww@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).