Re: [NTG-context] Maximum width of a caption

2015-01-04 Thread Hans Hagen
On 1/3/2015 11:11 AM, Mojca Miklavec wrote: Hi, Is there any way to set the maximum width of a caption? I would like to make sure that no figure caption exceeds, say, 75% of text width. Here's an example of bad behaviour in the second figure: \starttext \reservefigure

Re: [NTG-context] plot data from file: cld

2015-01-04 Thread Hans Hagen
On 1/4/2015 6:04 AM, Akira Kakuto wrote: Dear John, How to make this a polygon? An example: \starttext \startluacode local metafun = context.metafun metafun.start() io.input(DATA) local i, j local x, y, s, t1, t2 i = 1 x={} y={} s=draw while true do x[i], y[i] = io.read(*n, *n) if not

Re: [NTG-context] plot data from file: cld

2015-01-04 Thread John Kitzmiller
On Jan 4, 2015, at 6:00 AM, ntg-context-requ...@ntg.nl wrote: Dear John, How to make this a polygon? An example: Many thanks to you Akira. Reading the file into lua tables is good sense, and thank you for the string manipulations to pass to metafun(). From your teaching I changed this