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

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

2018-01-31 Thread Otared Kavian
> 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

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

2018-01-31 Thread Wolfgang Schuster
Otared Kavian 31. Januar 2018 um 17:58 Yes it does the job! 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

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

2018-01-31 Thread Otared Kavian
> On 31 Jan 2018, at 17:40, Wolfgang Schuster > wrote: > >> […] >> > Add “strip=yes” to remove spaces around the cells. > > \defineseparatedlist > [seplisttalk] > [separator={;}, >command=\maketalk, >strip=yes] > Yes it does the job! Thanks again,

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

2018-01-31 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 16:53 Hi again Wolfgang, I think I understood what is going wrong with my example after your hint: I have to remove all spaces around the separator and remove also the braces around each entry. That is the following works fine:

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

2018-01-30 Thread Otared Kavian
> On 30 Jan 2018, at 19:05, Wolfgang Schuster > wrote: >> […] > Spaces after a control sequence are gobbled and multiple spaces are skipped. > > Braces around the filename are allowed because this function was added with > the extensions to the TeX binary (which

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

2018-01-30 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 18:56 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

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

2018-01-30 Thread Otared Kavian
> On 30 Jan 2018, at 17:37, Wolfgang Schuster > 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. > >

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

2018-01-30 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 16:53 Hi again Wolfgang, I think I understood what is going wrong with my example after your hint: I have to remove all spaces around the separator and remove also the braces around each entry. That is the following works fine:

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

2018-01-30 Thread Otared Kavian
Hi again Wolfgang, I think I understood what is going wrong with my example after your hint: I have to remove all spaces around the separator and remove also the braces around each entry. That is the following works fine: \startseplisttalk Hacker;Up to date hacking;hacker.jpg Hacker;Up to date

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

2018-01-30 Thread Otared Kavian
> On 30 Jan 2018, at 15:54, Wolfgang Schuster > wrote: >> […] > > Use the command key which grabs the content of each column as argument (i.e. > your commands needs as many arguments as your table has columns): > > \defineseparatedlist > [seplisttalk] >

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

2018-01-30 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 15:44 Hi all, I need to create a document using a database and the \setvariables command (which I understood thanks to Wolfgang Schuster). Everything works fine except that using the approach below I need to change the entries in

[NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
Hi all, I need to create a document using a database and the \setvariables command (which I understood thanks to Wolfgang Schuster). Everything works fine except that using the approach below I need to change the entries in the database by enclosing each entry between a pair of braces {},