Re: [NTG-context] \placeinital special case

2014-01-24 Thread Hans Hagen
On 1/24/2014 10:11 AM, Alan Braslau wrote: Hello, I came across a special case where \placeinital would need some tuning. (It was found in Eglinton, G. and Calvin, M. (1966) "Chemical Fossils", Scientific American 216, 32-43.) In the following minimal example, the period following the capital W

Re: [NTG-context] Tabulator in database file not passed to Lua

2014-01-24 Thread Hans Hagen
On 1/25/2014 1:32 AM, Joshua Krämer wrote: Am Thu, 23 Jan 2014 23:17:24 +0100 schrieb Hans Hagen : \startluacode local f = io.open("test.dat") for line in f:lines() do local t = string.split(line,";") -- or "\t" for tabs context("% /t",t) -- context(table.concat

Re: [NTG-context] Tabulator in database file not passed to Lua

2014-01-24 Thread Joshua Krämer
Am Thu, 23 Jan 2014 23:17:24 +0100 schrieb Hans Hagen : > \startluacode > > local f = io.open("test.dat") > > for line in f:lines() do > local t = string.split(line,";") -- or "\t" for tabs > context("% /t",t) -- context(table.concat(t," / ") > context.par() >

Re: [NTG-context] runtime problem with metafun() code

2014-01-24 Thread Hans Hagen
On 1/24/2014 7:41 PM, Peter Rolf wrote: Am 24.01.2014 14:45, schrieb Hans Hagen: On 1/24/2014 1:35 PM, Peter Rolf wrote: Hi, I try to create a Metapost path in lua and it works so far for the attached example. But a call of that function from another lua function sadly fails (no path visible a

Re: [NTG-context] setupalign and flushbottom

2014-01-24 Thread Aditya Mahajan
Oops, I am wrong. \setupalign[height] seems to help indeed, so thanks for your answer. However it would be nice to wikify this. Then please do it! Aditya ___ If your question is of interest to others as well, please

Re: [NTG-context] runtime problem with metafun() code

2014-01-24 Thread Peter Rolf
Am 24.01.2014 14:45, schrieb Hans Hagen: > On 1/24/2014 1:35 PM, Peter Rolf wrote: >> Hi, >> >> I try to create a Metapost path in lua and it works so far for the >> attached example. But a call of that function from another lua function >> sadly fails (no path visible after call). The code seems t

Re: [NTG-context] setupalign and flushbottom

2014-01-24 Thread Alexey Kryukov
On Fri, 24 Jan 2014 21:45:32 +0400 Alexey Kryukov wrote: > On Fri, 24 Jan 2014 18:41:45 +0100 > Wolfgang Schuster wrote: > > > Use \setupalign[height]. > > I tested this before writing my first post, and the result was still > different from one I get with \alignbottom . Oops, I am wrong. \setu

Re: [NTG-context] setupalign and flushbottom

2014-01-24 Thread Alexey Kryukov
On Fri, 24 Jan 2014 18:41:45 +0100 Wolfgang Schuster wrote: > Use \setupalign[height]. I tested this before writing my first post, and the result was still different from one I get with \alignbottom . -- Regards, Alexey Kryukov Moscow State University Faculty of History __

Re: [NTG-context] setupalign and flushbottom

2014-01-24 Thread Wolfgang Schuster
2014/1/24 Alexey Kryukov > Dear list, > > according to the wiki and the ConTeXt manual, the ConTeXt equivalent > for the LaTeX \flushbottom command is \setupalign[line]. However in my > tests this setting doesn't have the desired effect. For example: > > \setuplayout[height=720pt] > \setuphead[su

[NTG-context] \placeinitial after a heading

2014-01-24 Thread Alexey Kryukov
Hi, If I attempt to insert a drop cap after a heading while the paragraph indentation is enabled, I get the following effect: all lines the drop cap spans except the first one (e. g. second and third in case of n=3) get an additional indent, equal to the \parindent. For example: \setupinitial[fon

[NTG-context] setupalign and flushbottom

2014-01-24 Thread Alexey Kryukov
Dear list, according to the wiki and the ConTeXt manual, the ConTeXt equivalent for the LaTeX \flushbottom command is \setupalign[line]. However in my tests this setting doesn't have the desired effect. For example: \setuplayout[height=720pt] \setuphead[subject][before={\vskip4pt plus 1fil},after

Re: [NTG-context] runtime problem with metafun() code

2014-01-24 Thread Hans Hagen
On 1/24/2014 1:35 PM, Peter Rolf wrote: Hi, I try to create a Metapost path in lua and it works so far for the attached example. But a call of that function from another lua function sadly fails (no path visible after call). The code seems to be executed later (the output from 'show pid;' appear

Re: [NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Hans Hagen
On 1/24/2014 2:05 PM, Otared Kavian wrote: Yes that’s correct! Thanks Hans for the quick fix (I tried a dozen different fonts, and they are all fine). the problem is that we have a fallback for fonts that lack it and that had some side effects (the engine has some vague heuristics around thes

Re: [NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Otared Kavian
Yes that’s correct! Thanks Hans for the quick fix (I tried a dozen different fonts, and they are all fine). Best regards: OK On 24 janv. 2014, at 13:09, Jannik Voges wrote: > The minimal example works fine with the latest beta (ConTeXt ver: 2014.01.24 > 10:20 MKIV beta fmt: 2014.1.24). > >

[NTG-context] runtime problem with metafun() code

2014-01-24 Thread Peter Rolf
Hi, I try to create a Metapost path in lua and it works so far for the attached example. But a call of that function from another lua function sadly fails (no path visible after call). The code seems to be executed later (the output from 'show pid;' appears somewhere later in the log). How can I

Re: [NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Jannik Voges
The minimal example works fine with the latest beta (ConTeXt ver: 2014.01.24 10:20 MKIV beta fmt: 2014.1.24). Am 23.01.2014 um 21:52 schrieb Otared Kavian : > Hi Hans, > > It seems that with the latest beta mkiv, version > > ConTeXt ver: 2014.01.23 01:55 MKIV beta fmt: 2014.1.23 >

[NTG-context] [OT] pdf2htmlEX

2014-01-24 Thread Xan
Hi, Just some information: if you want to pass from pdf to html5, there is an amazing project I discovered: https://github.com/coolwanglu/pdf2htmlEX The "bad" things is that it does not preserve structures: each line is a structure in html5 generated document. Cheers, Xan.

[NTG-context] \placeinital special case

2014-01-24 Thread Alan Braslau
Hello, I came across a special case where \placeinital would need some tuning. (It was found in Eglinton, G. and Calvin, M. (1966) "Chemical Fossils", Scientific American 216, 32-43.) In the following minimal example, the period following the capital W should be dropped as well, being kept associ

[NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Otared Kavian
Hi Hans, It seems that with the latest beta mkiv, version ConTeXt ver: 2014.01.23 01:55 MKIV beta fmt: 2014.1.23 \widetilde and \widehat in mathmode are misplaced (and this is so in any of the fonts I tried). Please compare the result of the following in mkii (where everything is c