Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Wolfgang Schuster
Rik Kabel 31. Januar 2018 um 03:10 Listers, I have a problem, and a question on ConTeXt programming efficiency. In the example below, I have a set of variables. When these are reference directly via \getvariable, everything works as expected in simple

Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Rik Kabel
On 2018-01-30 21:10, Rik Kabel wrote: Listers, I have a problem, and a question on ConTeXt programming efficiency. In the example below, I have a set of variables. When these are reference directly via \getvariable, everything works as expected in simple text and in TABLEs. When I \define a

[NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Rik Kabel
Listers, I have a problem, and a question on ConTeXt programming efficiency. In the example below, I have a set of variables. When these are reference directly via \getvariable, everything works as expected in simple text and in TABLEs. When I \define a macro to the \getvariable, that works

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Alan Braslau
Might I add that the use of a command containing spaces in its name is spurious. Try: \definestartstop[spuriusspacea] \startspuriusspacea ... \stopspuriuspsacea, and then come up with a better name! Alan On Tue, 30 Jan 2018 21:24:41 +0100 Wolfgang Schuster wrote: >

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Henri Menke
On Tue, 2018-01-30 at 21:24 +0100, Wolfgang Schuster wrote: > > > Henri Menke 30. Januar 2018 um 21:12 > > On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote: > > > On 1/30/2018 11:34 AM, Henri Menke wrote: > > > > On 01/30/2018 09:17 PM, Hans Hagen wrote: > > > > > On 1/30/2018 2:54 AM, Henri

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Wolfgang Schuster
Henri Menke 30. Januar 2018 um 21:12 On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote: On 1/30/2018 11:34 AM, Henri Menke wrote: On 01/30/2018 09:17 PM, Hans Hagen wrote: On 1/30/2018 2:54 AM, Henri Menke wrote: Dear list, the title says it all. Please add

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Henri Menke
On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote: > On 1/30/2018 11:34 AM, Henri Menke wrote: > > > > On 01/30/2018 09:17 PM, Hans Hagen wrote: > > > > > > On 1/30/2018 2:54 AM, Henri Menke wrote: > > > > > > > > Dear list, > > > > > > > > the title says it all.  Please add \ignorespaces in

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 {},

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Hans Hagen
On 1/30/2018 11:34 AM, Henri Menke wrote: On 01/30/2018 09:17 PM, Hans Hagen wrote: On 1/30/2018 2:54 AM, Henri Menke wrote: Dear list, the title says it all.  Please add \ignorespaces in a place you deem appropriate.  MWE is below. sometimes you will also add \removeuwantedspaces in the

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Henri Menke
On 01/30/2018 09:17 PM, Hans Hagen wrote: > On 1/30/2018 2:54 AM, Henri Menke wrote: >> Dear list, >> >> the title says it all.  Please add \ignorespaces in a place you deem >> appropriate.  MWE is below. > > sometimes you will also add \removeuwantedspaces in the stop I'm confused. Does that

Re: [NTG-context] Spurious space in \definestartstop

2018-01-30 Thread Hans Hagen
On 1/30/2018 2:54 AM, Henri Menke wrote: Dear list, the title says it all.  Please add \ignorespaces in a place you deem appropriate.  MWE is below. sometimes you will also add \removeuwantedspaces in the stop Cheers, Henri --- \definestartstop   [spurious space] \starttext Hello World