On 8/7/2016 11:15 AM, Thomas A. Schmitz wrote:
\starttext
\setupTABLE [split=repeat]
\definemarking [Test]
\setupheadertexts [{\getmarking[Test][top]--\getmarking[Test][bottom]}]
\startluacode
samples = {
{ "A", "aesop-de.tex" },
{ "B", "bryson.tex" },
{ "C", "carey.tex" },
{ "D", "cervantes-es.tex" },
{ "E", "darwin.tex" },
{ "F", "davis.tex" },
{ "G", "dawkins.tex" },
{ "H", "douglas.tex" },
{ "I", "hawking.tex" },
}
context.bTABLE()
for _, k in ipairs(samples) do
context.marking( { "Test" }, k[1])
context.bTR()
context.bTD()
context(k[1])
context.eTD()
context.bTD()
context.input( k[2] )
context.eTD()
context.eTR()
end
context.eTABLE()
\stopluacode
\stoptext
I bet you can figure out why this works:
context.bTD()
context.marking( { "Test" }, k[2])
context(k[1])
context.eTD()
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________