Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Taco Hoekwater
On 08 Jul 2015, at 11:05, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello ConTeXist. Within the one very complex problem I need to solve the following case. I want using lua code to define a macro with one optional parameter in brackets. Simplest solution I know is this: \startluacode

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Taco Hoekwater
On 08 Jul 2015, at 13:58, Jaroslav Hajtmar hajt...@gyza.cz wrote: Thanx Taco for reply. the minimal example see bellow not crashed, but \A macro is not created. I don't Know in what could still be a problem. Example I am even more minimalize It works for me after changing \directlua {}

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Taco Hoekwater
On 08 Jul 2015, at 13:04, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hi Taco. full deployment is unfortunately not working. Unfortunately I need to cycle create different macros whose names are variable. At this moment I can not deal with this: --- context.doxlsname() --- ?

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Jaroslav Hajtmar
Hi Taco. full deployment is unfortunately not working. Unfortunately I need to cycle create different macros whose names are variable. At this moment I can not deal with this: --- context.doxlsname() --- ? Thanx Jaroslav Hajtmar here is another minimal example: \starttext

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Jaroslav Hajtmar
Thanx Taco for reply. the minimal example see bellow not crashed, but \A macro is not created. I don't Know in what could still be a problem. Example I am even more minimalize Thanx Jaroslav \starttext \directlua{ xlsname='A' interfaces.definecommand ('do'..xlsname, { arguments = {

[NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Jaroslav Hajtmar
Hello ConTeXist. Within the one very complex problem I need to solve the following case. I want using lua code to define a macro with one optional parameter in brackets. I tried it using commands context.setgvalue, or find something on the wiki

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Jaroslav Hajtmar
Thanks Taco, your solution helped me ... Based on initial tests, it seems that it works correctly. I'll know more after thorough testing. Once again, thank you many times. Sincerely Jaroslav Hajtmar Dne 8. 7. 2015 v 12:07 Taco Hoekwater napsal(a): On 08 Jul 2015, at 11:05, Jaroslav Hajtmar

Re: [NTG-context] Bibliography (bug compiling components-001.tex?)

2015-07-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two lines, so I got: % Was: components-001.tex % \endinput % to be adapted % adapted example from list \startpublication[ k=me,

[NTG-context] Expansion in bookmarks

2015-07-08 Thread Christoph Reller
Dear all! I want to define a command that is to be used in a section title. Also I want to use \autoinsertnextspace with this command. In the following MWE, why do \This and \AName not work, while \TEX does work? I appreciate any feedback, Christoph MWE: \setupinteraction[state=start]

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Jaroslav Hajtmar
Thanks Taco very much. At this point, it really works in simple situations, but in the event that this solution will incorporate into the existing system, then I have big problems with expansion (values are not updated in macros). I need more solutions using something like context.setgvalue,

Re: [NTG-context] Bibliography (bug compiling components-001.tex?)

2015-07-08 Thread Lukáš Procházka
Hello, On Wed, 08 Jul 2015 20:53:10 +0200, Hans Hagen pra...@wxs.nl wrote: On 7/8/2015 4:06 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Jaroslav Hajtmar
Hi Hans. Only for explanation of my (maybe) crazy request: I can not at this level TeX macros to create, because it creates automatically after opening the CSV file. Although I tried to start creating something with \ csname \ endcsname etc. but my experiments with this method were never

Re: [NTG-context] Bibliography (bug compiling components-001.tex?)

2015-07-08 Thread Hans Hagen
On 7/8/2015 4:06 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two lines, so I got: % Was: components-001.tex % \endinput % to be adapted

Re: [NTG-context] Using lua to define a macro with one optional parameter in brackets

2015-07-08 Thread Hans Hagen
On 7/8/2015 4:11 PM, Jaroslav Hajtmar wrote: Thanks Taco very much. At this point, it really works in simple situations, but in the event that this solution will incorporate into the existing system, then I have big problems with expansion (values are not updated in macros). I need more

Re: [NTG-context] Expansion in bookmarks

2015-07-08 Thread Hans Hagen
On 7/8/2015 4:18 PM, Christoph Reller wrote: Dear all! I want to define a command that is to be used in a section title. Also I want to use \autoinsertnextspace with this command. In the following MWE, why do \This and \AName not work, while \TEX does work? I appreciate any feedback, Christoph