[NTG-context] \setvariables and database module

Otared Kavian otared at gmail.com
Tue Jan 30 18:56:06 CET 2018

> On 30 Jan 2018, at 17:37, Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:
>> […]
>> Is there a way to make the \defineseparatedlist command to be more tolerant for the filename? 
> No but you can remove the space with Lua.
> \externalfigure[\cldcontext{string.collapsespaces("\getvariable{talk}{picture}")}]

Thanks again! That does it.

However, it seems strange that the \externalfigure command does not accept a space in front of the file name nor after the file extension, while \input is very tolerant in that respect. Compare

\input   knuth.tex   
\input knuth.tex

which are all accepted, while when there is a space after the extension,

	\externalfigure[hacker.jpg ]

or a space before the filename 

	\externalfigure[ hacker.jpg]

then ConTeXt does not recognize the file…
Maybe Hans has a reason to explain this behavior, but it is not clear to me.

Best regards: OK

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180130/2558745f/attachment.html>

More information about the ntg-context mailing list