Re: [NTG-context] Parsing \...luacode within a \def
On 6/14/2018 9:20 PM, Tomas Hala wrote: Hi Lukáš, I am not sure but I guess that the problem is related with the behaviour of the input processor which erases characters at the end of line (CR, LF) and replace them by a space. Then, the whole content between \start/stopluacode is at only one line. If you the second way of comment marks, the letter "u" will be shown at the output. Tomáš \def\U{% \startluacode --[[ blahblah ]]-- context("u") \stopluacode } indeed, \startluacode inside a macro body acts like any such catcode regime changing operation .. \def\foo{% f%oo } Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Parsing \...luacode within a \def
Hi Lukáš, I am not sure but I guess that the problem is related with the behaviour of the input processor which erases characters at the end of line (CR, LF) and replace them by a space. Then, the whole content between \start/stopluacode is at only one line. If you the second way of comment marks, the letter "u" will be shown at the output. Tomáš \def\U{% \startluacode --[[ blahblah ]]-- context("u") \stopluacode } Thu, Jun 14, 2018 ve 08:48:40PM +0200 Procházka Lukáš Ing. napsal(a): # Hello, # # I encountered a phenomena that I cannot understand. Let's have the following code: # # # \def\T{% # \startluacode # context("t") # \stopluacode # } # # \def\U{% # \startluacode # -- # # context("u") # \stopluacode # } # # \starttext # A # \startluacode # -- # # context("b") # \stopluacode # \T # \U # \stoptext # # # This gives "Abt" - but there is no "u". # # It seems that the (first) comment mark "--" within a \startluacode within \def (here: \def\U) causes all code till \stopluacode is being ignored. # # But why? # # Maybe I'm missing something very basic... # # Best regards, # # Lukas # # # -- # Ing. Lukáš Procházka | mailto:l...@pontex.cz # Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn # Bezová 1658 # 147 14 Praha 4 # # Mob.: +420 702 033 396 # # ___ # 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 # ___ Tomáš Hála Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 http://akela.mendelu.cz/~thala ___ 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 ___
[NTG-context] Parsing \...luacode within a \def
Hello, I encountered a phenomena that I cannot understand. Let's have the following code: \def\T{% \startluacode context("t") \stopluacode } \def\U{% \startluacode -- context("u") \stopluacode } \starttext A \startluacode -- context("b") \stopluacode \T \U \stoptext This gives "Abt" - but there is no "u". It seems that the (first) comment mark "--" within a \startluacode within \def (here: \def\U) causes all code till \stopluacode is being ignored. But why? Maybe I'm missing something very basic... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 t3.mkiv Description: Binary data t3.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] Parsing \...luacode within a \def
Hello, I encountered a phenomena that I cannot understand. Let's have the following code: \def\T{% \startluacode context("t") \stopluacode } \def\U{% \startluacode -- context("u") \stopluacode } \starttext A \startluacode -- context("b") \stopluacode \T \U \stoptext This gives "Abt" - but there is no "u". It seems that the (first) comment mark "--" within a \startluacode within \def (here: \def\U) causes all code till \stopluacode is being ignored. But why? Maybe I'm missing something very basic... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 ___ 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] Invoice Forms
Am 2018-06-14 um 16:17 schrieb Floris van Manen : > almost… > what is \fieevis ? > > > \670>:letter:layer:location:fiee ... 5em \fieevis > \setuptabulate [bodyfont=s... > l.4 } > Sorry, missed that. It’s a macro that contains my company name, just delete it. Best, Hraban ___ 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] Invoice Forms
almost… what is \fieevis ? \670>:letter:layer:location:fiee ... 5em \fieevis \setuptabulate [bodyfont=s... l.4 } > On 14 Jun 2018, at 16:00, Henning Hraban Ramm wrote: > > Am 2018-06-14 um 12:48 schrieb Henning Hraban Ramm : > >> Am 2018-06-13 um 19:50 schrieb jdh : >> >>> Is there a source of context document forms for invoices, (and other >>> documents), that have been contributed for open modifications and use? If >>> not it would be very beneficial to people to have such a depository. Please >>> let me know. >> >> Dear unknown, >> there’s nothing out there, AFAIK. >> >> But I’m writing my invoices with ConTeXt, using a mixture of Shell, Python, >> Lua and ConTeXt, also mixed German/English: >> * A bunch of Shell scripts call the main Python script with the right >> parameters. >> * Python script/library manages customers and catalogue and fills a >> ConTeXt/Lua invoice template >> * Python or Shell script calls ConTeXt, invoice calculations in Lua >> >> I can provide you with the ConTeXt & Lua part, the Python stuff contains too >> much private information. >> There’s no documentation and I don’t claim the code to be good. >> >> > > Sorry, didn’t check what I attached. Here are the missing tex files. > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > https://www.dreiviertelhaus.de > 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 > ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] Invoice Forms
Am 2018-06-14 um 12:48 schrieb Henning Hraban Ramm : > Am 2018-06-13 um 19:50 schrieb jdh : > >> Is there a source of context document forms for invoices, (and other >> documents), that have been contributed for open modifications and use? If >> not it would be very beneficial to people to have such a depository. Please >> let me know. > > Dear unknown, > there’s nothing out there, AFAIK. > > But I’m writing my invoices with ConTeXt, using a mixture of Shell, Python, > Lua and ConTeXt, also mixed German/English: > * A bunch of Shell scripts call the main Python script with the right > parameters. > * Python script/library manages customers and catalogue and fills a > ConTeXt/Lua invoice template > * Python or Shell script calls ConTeXt, invoice calculations in Lua > > I can provide you with the ConTeXt & Lua part, the Python stuff contains too > much private information. > There’s no documentation and I don’t claim the code to be good. > > Sorry, didn’t check what I attached. Here are the missing tex files. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD environment.tex Description: Binary data rechnung_tpl.tex Description: Binary data ___ 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] Invoice Forms
On Wed, Jun 13 2018, jdh wrote: > Is there a source of context document forms for invoices, (and other > documents), that have been contributed for open modifications and use? If not > it would be very beneficial to people to have such a depository. Please let me > know. These pages can help perhaps: - https://mailman.ntg.nl/pipermail/ntg-context/2008/031680.html - https://mailman.ntg.nl/pipermail/ntg-context/2009/037920.html - https://mailman.ntg.nl/pipermail/ntg-context/2014/076641.html -- Peter ___ 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] Invoice Forms
Am 2018-06-13 um 19:50 schrieb jdh : > Is there a source of context document forms for invoices, (and other > documents), that have been contributed for open modifications and use? If > not it would be very beneficial to people to have such a depository. Please > let me know. Dear unknown, there’s nothing out there, AFAIK. But I’m writing my invoices with ConTeXt, using a mixture of Shell, Python, Lua and ConTeXt, also mixed German/English: * A bunch of Shell scripts call the main Python script with the right parameters. * Python script/library manages customers and catalogue and fills a ConTeXt/Lua invoice template * Python or Shell script calls ConTeXt, invoice calculations in Lua I can provide you with the ConTeXt & Lua part, the Python stuff contains too much private information. There’s no documentation and I don’t claim the code to be good. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD classy.lua Description: Binary data invoicelib.lua Description: Binary data classy.lua Description: Binary data invoicelib.lua Description: Binary data ___ 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] TeXLive and ConTeXt
Perhaps it is useful that I mention that this is a MkIV problem on my iMac with TeXLive (2018 version). Using MkII, also with XeTeX, everything ran right out of the box. For MkIV, I had to run a program to let LuaTeX find all the fonts, and then it worked. Robert ___ 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 ___
[NTG-context] Invoice Forms
Is there a source of context document forms for invoices, (and other documents), that have been contributed for open modifications and use? If not it would be very beneficial to people to have such a depository. Please let me know. Regards ___ 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 ___