[NTG-context] image file resolver in Lua?

2018-02-01 Thread Henning Hraban Ramm
Ahoi,

I’m using a Lua function to calculate image sizes, cropping etc.
This snippet:

local filename = figures.current().status.fullname
local pic = img.scan{filename = filename}

... works most of the time, but sometimes the "current" image is the previous 
one, might be because I’m using layers and postponing.
So I’d like to use just the same filename as I give to \externalfigure, i.e. 
without path and extension.
How can I address the same file path resolver in my Lua function?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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
___

Re: [NTG-context] \setvariables and database module

2018-02-01 Thread luigi scarso
On Wed, Jan 31, 2018 at 10:20 PM, Otared Kavian  wrote:
>
>
>> On 31 Jan 2018, at 18:11, Wolfgang Schuster  
>> wrote:
>>
>>> […]
>>> Thanks again, but I wonder where did you find this trick?… in i-context.pdf 
>>> there is no entry for \defineseparatedlist…
>>
>> setup-en.pdf (and i-context.pdf) contains only commands from the core. There 
>> are lists for many modules (e.g. i-database.xml contains the options for the 
>> database module) but no PDF which shows them.
>
> Indeed looking for the file i-database.xml I discovered that in
> context-minimal/tex/texmf-context/tex/context/interface/mkiv/
> there are lots of file such as i-ABC.xml, which can be typeset in order to 
> obtain a pdf.
> A great piece of information… thanks!
In the same folder:
i-context.pdf
i-readme.pdf



-- 
luigi
___
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
___