* [NTG-context] Lua <-> TeXShop
@ 2024-10-08 10:35 Thomas Meyer
2024-10-08 10:46 ` [NTG-context] " Hans Hagen
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Thomas Meyer @ 2024-10-08 10:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 188 bytes --]
Hello,
at the risk of this being the wrong address: can I edit and run Lua with
TeXShop?
Does anyone have experience with this?
Or what could be used as an IDE for Lua?
Greetings
Thomas
[-- Attachment #1.2: Type: text/html, Size: 475 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-08 10:35 [NTG-context] Lua <-> TeXShop Thomas Meyer
@ 2024-10-08 10:46 ` Hans Hagen
2024-10-08 17:12 ` Otared Kavian
[not found] ` <4da7b7c0-1f99-48a7-88d7-b687b8b2a393@xs4all.nl>
2 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2024-10-08 10:46 UTC (permalink / raw)
To: Thomas Meyer, mailing list for ConTeXt users
On 10/8/2024 12:35 PM, Thomas Meyer wrote:
> Hello,
>
> at the risk of this being the wrong address: can I edit and run Lua with
> TeXShop?
> Does anyone have experience with this?
> Or what could be used as an IDE for Lua?
depends ... if you can associate a lua suffix:
mtxrun --script <filename>
will run lua with all relevant context libs preloaded.
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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-08 10:35 [NTG-context] Lua <-> TeXShop Thomas Meyer
2024-10-08 10:46 ` [NTG-context] " Hans Hagen
@ 2024-10-08 17:12 ` Otared Kavian
2024-10-09 15:29 ` Thomas Meyer
[not found] ` <4da7b7c0-1f99-48a7-88d7-b687b8b2a393@xs4all.nl>
2 siblings, 1 reply; 11+ messages in thread
From: Otared Kavian @ 2024-10-08 17:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]
Hi,
I use TeXShop and it is possible to save a file with a .lua suffix (under « Save as… » you choose the menu File format where it is called Lua script).
Then I use ConTeXt to run the lua file…
Another possibility is to put your lua file between \startluacode … \stopluacode in a TeX file and then you typeset the TeX file in TeXShop with ConTeXt.
But probably this is not what you want to do.
Best regards: Otared
> On 8 Oct 2024, at 12:35, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>
> Hello,
>
> at the risk of this being the wrong address: can I edit and run Lua with TeXShop?
> Does anyone have experience with this?
> Or what could be used as an IDE for Lua?
>
> Greetings
> Thomas
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95
[-- Attachment #1.2: Type: text/html, Size: 3275 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-08 17:12 ` Otared Kavian
@ 2024-10-09 15:29 ` Thomas Meyer
2024-10-09 16:11 ` Bruce Horrocks
2024-10-09 19:18 ` Hans Hagen
0 siblings, 2 replies; 11+ messages in thread
From: Thomas Meyer @ 2024-10-09 15:29 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2483 bytes --]
Hello Hans and Otared,
thank you for your answers.
Context can run Lua. The output then ends up somewhere in the console
output between the other specifications.
LuaLaTeX can execute Lua. The output is then the only one in the
console. Console output was not what I wanted.
However, I was naive enough to hope that the output would be in TeXShop,
but that only works with pdf I think.
So I am still a little helpless.
Greetings
Thomas
Am 08.10.24 um 19:12 schrieb Otared Kavian:
> Hi,
>
> I use TeXShop and it is possible to save a file with a .lua suffix
> (under « Save as… » you choose the menu File format where it is called
> Lua script).
> Then I use ConTeXt to run the lua file…
> Another possibility is to put your lua file between \startluacode …
> \stopluacode in a TeX file and then you typeset the TeX file in
> TeXShop with ConTeXt.
>
> But probably this is not what you want to do.
>
> Best regards: Otared
>
>> On 8 Oct 2024, at 12:35, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>>
>> Hello,
>>
>> at the risk of this being the wrong address: can I edit and run Lua
>> with TeXShop?
>> Does anyone have experience with this?
>> Or what could be used as an IDE for Lua?
>>
>> Greetings
>> Thomas
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an
>> entry to the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage : https://www.pragma-ade.nl / https://context.aanhet.net
>> (mirror)
>> archive : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net
>> ___________________________________________________________________________________
>
> Otared Kavian
> e-mail: otared@gmail.com <mailto:otared@gmail.com>
> Phone: +33 6 88 26 70 95
>
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror)
> archive :https://github.com/contextgarden/context
> wiki :https://wiki.contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 6536 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-09 15:29 ` Thomas Meyer
@ 2024-10-09 16:11 ` Bruce Horrocks
2024-10-09 16:26 ` Hans Hagen via ntg-context
2024-10-09 19:18 ` Hans Hagen
1 sibling, 1 reply; 11+ messages in thread
From: Bruce Horrocks @ 2024-10-09 16:11 UTC (permalink / raw)
To: ntg-context mailing list
> On 9 Oct 2024, at 16:29, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>
> Hello Hans and Otared,
>
> thank you for your answers.
> Context can run Lua. The output then ends up somewhere in the console output between the other specifications.
> LuaLaTeX can execute Lua. The output is then the only one in the console. Console output was not what I wanted.
> However, I was naive enough to hope that the output would be in TeXShop, but that only works with pdf I think.
> So I am still a little helpless.
If the output went into TeXShop then it would overwrite your Lua program.
If you mean have the output go to a file and have TeXShop open that file then maybe just configure TeXShop with an “engine” that runs Lua and sends the output to a .out or .txt file. If you then open the file in a separate TeXShop window, maybe it picks up changes as they happen and displays them? (I haven’t checked for TeXShop but many programming editors can.)
I don’t think ConTeXt can run Lua without the output going to the console along with all the initialisation messages. However there is a `lua` command line app to run lua porgrams available from www.lua.org which you could install and use instead.
Regards,
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-09 16:11 ` Bruce Horrocks
@ 2024-10-09 16:26 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen via ntg-context @ 2024-10-09 16:26 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 10/9/2024 6:11 PM, Bruce Horrocks wrote:
>
>
>> On 9 Oct 2024, at 16:29, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>>
>> Hello Hans and Otared,
>>
>> thank you for your answers.
>> Context can run Lua. The output then ends up somewhere in the console output between the other specifications.
>> LuaLaTeX can execute Lua. The output is then the only one in the console. Console output was not what I wanted.
>> However, I was naive enough to hope that the output would be in TeXShop, but that only works with pdf I think.
>> So I am still a little helpless.
>
> If the output went into TeXShop then it would overwrite your Lua program.
>
> If you mean have the output go to a file and have TeXShop open that file then maybe just configure TeXShop with an “engine” that runs Lua and sends the output to a .out or .txt file. If you then open the file in a separate TeXShop window, maybe it picks up changes as they happen and displays them? (I haven’t checked for TeXShop but many programming editors can.)
>
> I don’t think ConTeXt can run Lua without the output going to the console along with all the initialisation messages. However there is a `lua` command line app to run lua porgrams available from www.lua.org which you could install and use instead.
If you want the samelua feature sas in context, just
mtxrun --script foo.lua
is the way to go. (To be sure I cheched if i have lua installed at all
and it's some version from 2000; i always use mtxrun because after all
luametatex is also a regular lua interpreter)
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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-09 15:29 ` Thomas Meyer
2024-10-09 16:11 ` Bruce Horrocks
@ 2024-10-09 19:18 ` Hans Hagen
1 sibling, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2024-10-09 19:18 UTC (permalink / raw)
To: ntg-context
On 10/9/2024 5:29 PM, Thomas Meyer wrote:
> Hello Hans and Otared,
>
> thank you for your answers.
> Context can run Lua. The output then ends up somewhere in the console
> output between the other specifications.
> LuaLaTeX can execute Lua. The output is then the only one in the
> console. Console output was not what I wanted.
> However, I was naive enough to hope that the output would be in TeXShop,
> but that only works with pdf I think.
> So I am still a little helpless.
Well, context
context foo.lua
is asking for tex run, not a lua run; what do you expect from
foo.lua :
context.starttext()
context("Hi there")
context.stoptext()
other than a tex document showing that text. How is luatex to know if
you want to typeset or just run tex? So don't take latex as reference.
You don't want to start the whole tex machinery to run a lua file,
running in luaonly mode is what one needs then.
When you have foo.lua :
print("Hi there")
and want it in the console you run:
mtxun --script
and here i get this in the console when i hit the "compile" key
>mtxrun --script "oeps.lua"
Hi There
So you need to figure out in texshop how to relate a run command "mtxrun
--script" to a file with suffix ".lua".
This approach hasn't changes in the about 20 years that we have luatex.
You can ask Dick to add an option like that (specify runner for a lua
file) it it's not already there.
Hans
ps. Of course we can add support for a first line parsing when context
sees a .lua file
-- mtxrun --script %filename%
or just
-- runner=mtxrun
for editors that lack support for suffix specific runners, but let's
first see what texshop can do already.
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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <4da7b7c0-1f99-48a7-88d7-b687b8b2a393@xs4all.nl>]
* [NTG-context] Re: Lua <-> TeXShop
[not found] ` <4da7b7c0-1f99-48a7-88d7-b687b8b2a393@xs4all.nl>
@ 2024-10-10 8:52 ` Thomas Meyer
2024-10-10 12:47 ` Otared Kavian
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Meyer @ 2024-10-10 8:52 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1103 bytes --]
Thank you very much, Hans,
I had already written to Dick Koch before the first replies arrived. He
wrote that I could simply use Lua(La)TeX.
So it works with Lua(La)TeX. A self-created lua.engine works and your
ConTeXt solution with --runner=mtxrun in the first line works as well.
Best regards
Thomas
Am 09.10.24 um 21:20 schrieb Hans Hagen:
> On 10/8/2024 12:35 PM, Thomas Meyer wrote:
>> Hello,
>>
>> at the risk of this being the wrong address: can I edit and run Lua
>> with TeXShop?
>> Does anyone have experience with this?
>> Or what could be used as an IDE for Lua?
>
> you can try this with
>
> -- runner=mtxrun
>
> as first line in your lua file
>
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 2044 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-10 8:52 ` Thomas Meyer
@ 2024-10-10 12:47 ` Otared Kavian
2024-10-10 14:06 ` Thomas Meyer
0 siblings, 1 reply; 11+ messages in thread
From: Otared Kavian @ 2024-10-10 12:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2071 bytes --]
Hi Thomas,
Out of curiosity, could you please what is the content of your lua.engine ? I would like to see whether it is better for me to use your approach suggested dy Richard Koch and Hans…
Best regards: Otared
> On 10 Oct 2024, at 10:52, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>
> Thank you very much, Hans,
>
> I had already written to Dick Koch before the first replies arrived. He wrote that I could simply use Lua(La)TeX.
> So it works with Lua(La)TeX. A self-created lua.engine works and your ConTeXt solution with --runner=mtxrun in the first line works as well.
>
> Best regards
> Thomas
>
>
> Am 09.10.24 um 21:20 schrieb Hans Hagen:
>> On 10/8/2024 12:35 PM, Thomas Meyer wrote:
>>> Hello,
>>>
>>> at the risk of this being the wrong address: can I edit and run Lua with TeXShop?
>>> Does anyone have experience with this?
>>> Or what could be used as an IDE for Lua?
>>
>> you can try this with
>>
>> -- runner=mtxrun
>>
>> as first line in your lua file
>>
>>
>>
>> -----------------------------------------------------------------
>> Hans Hagen | PRAGMA ADE
>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>> tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | www.pragma-pod.nl <http://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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95
[-- Attachment #1.2: Type: text/html, Size: 5005 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-10 12:47 ` Otared Kavian
@ 2024-10-10 14:06 ` Thomas Meyer
2024-10-10 17:43 ` Otared Kavian
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Meyer @ 2024-10-10 14:06 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2975 bytes --]
Hi Otared,
I used what Hans wrote in his answers.
#!/bin/bash
export PATH=$PATH:~/context-osx-64/tex/texmf-osx-64/bin
~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --script "$1"
Greetings
Thomas
Am 10.10.24 um 14:47 schrieb Otared Kavian:
> Hi Thomas,
>
> Out of curiosity, could you please what is the content of your
> lua.engine ? I would like to see whether it is better for me to use
> your approach suggested dy Richard Koch and Hans…
>
> Best regards: Otared
>
>> On 10 Oct 2024, at 10:52, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>>
>> Thank you very much, Hans,
>>
>> I had already written to Dick Koch before the first replies arrived.
>> He wrote that I could simply use Lua(La)TeX.
>> So it works with Lua(La)TeX. A self-created lua.engine works and your
>> ConTeXt solution with --runner=mtxrun in the first line works as well.
>>
>> Best regards
>> Thomas
>>
>>
>> Am 09.10.24 um 21:20 schrieb Hans Hagen:
>>> On 10/8/2024 12:35 PM, Thomas Meyer wrote:
>>>> Hello,
>>>>
>>>> at the risk of this being the wrong address: can I edit and run Lua
>>>> with TeXShop?
>>>> Does anyone have experience with this?
>>>> Or what could be used as an IDE for Lua?
>>>
>>> you can try this with
>>>
>>> -- runner=mtxrun
>>>
>>> as first line in your lua file
>>>
>>>
>>>
>>> -----------------------------------------------------------------
>>> 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 /
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage : https://www.pragma-ade.nl / https://context.aanhet.net
>> (mirror)
>> archive : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net
>> ___________________________________________________________________________________
>
> Otared Kavian
> e-mail: otared@gmail.com <mailto:otared@gmail.com>
> Phone: +33 6 88 26 70 95
>
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror)
> archive :https://github.com/contextgarden/context
> wiki :https://wiki.contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 8340 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* [NTG-context] Re: Lua <-> TeXShop
2024-10-10 14:06 ` Thomas Meyer
@ 2024-10-10 17:43 ` Otared Kavian
0 siblings, 0 replies; 11+ messages in thread
From: Otared Kavian @ 2024-10-10 17:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 4344 bytes --]
Hi Thomas,
Thanks for sharing the lua.engine. It works jsut fine !
Best regards: Otared
> On 10 Oct 2024, at 16:06, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>
> Hi Otared,
>
> I used what Hans wrote in his answers.
>
> #!/bin/bash
> export PATH=$PATH:~/context-osx-64/tex/texmf-osx-64/bin
> ~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --script "$1"
>
>
> Greetings
> Thomas
>
>
>
>
> Am 10.10.24 um 14:47 schrieb Otared Kavian:
>> Hi Thomas,
>>
>> Out of curiosity, could you please what is the content of your lua.engine ? I would like to see whether it is better for me to use your approach suggested dy Richard Koch and Hans…
>>
>> Best regards: Otared
>>
>>> On 10 Oct 2024, at 10:52, Thomas Meyer <thomasgmeyer@t-online.de <mailto:thomasgmeyer@t-online.de>> wrote:
>>>
>>> Thank you very much, Hans,
>>>
>>> I had already written to Dick Koch before the first replies arrived. He wrote that I could simply use Lua(La)TeX.
>>> So it works with Lua(La)TeX. A self-created lua.engine works and your ConTeXt solution with --runner=mtxrun in the first line works as well.
>>>
>>> Best regards
>>> Thomas
>>>
>>>
>>> Am 09.10.24 um 21:20 schrieb Hans Hagen:
>>>> On 10/8/2024 12:35 PM, Thomas Meyer wrote:
>>>>> Hello,
>>>>>
>>>>> at the risk of this being the wrong address: can I edit and run Lua with TeXShop?
>>>>> Does anyone have experience with this?
>>>>> Or what could be used as an IDE for Lua?
>>>>
>>>> you can try this with
>>>>
>>>> -- runner=mtxrun
>>>>
>>>> as first line in your lua file
>>>>
>>>>
>>>>
>>>> -----------------------------------------------------------------
>>>> Hans Hagen | PRAGMA ADE
>>>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>>> tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
>>> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / https://context.aanhet.net <https://context.aanhet.net/> (mirror)
>>> archive : https://github.com/contextgarden/context <https://github.com/contextgarden/context>
>>> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
>>> ___________________________________________________________________________________
>>
>> Otared Kavian
>> e-mail: otared@gmail.com <mailto:otared@gmail.com>
>> Phone: +33 6 88 26 70 95
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>>
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
>> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / https://context.aanhet.net <https://context.aanhet.net/> (mirror)
>> archive : https://github.com/contextgarden/context <https://github.com/contextgarden/context>
>> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95
[-- Attachment #1.2: Type: text/html, Size: 10585 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-10-10 17:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-08 10:35 [NTG-context] Lua <-> TeXShop Thomas Meyer
2024-10-08 10:46 ` [NTG-context] " Hans Hagen
2024-10-08 17:12 ` Otared Kavian
2024-10-09 15:29 ` Thomas Meyer
2024-10-09 16:11 ` Bruce Horrocks
2024-10-09 16:26 ` Hans Hagen via ntg-context
2024-10-09 19:18 ` Hans Hagen
[not found] ` <4da7b7c0-1f99-48a7-88d7-b687b8b2a393@xs4all.nl>
2024-10-10 8:52 ` Thomas Meyer
2024-10-10 12:47 ` Otared Kavian
2024-10-10 14:06 ` Thomas Meyer
2024-10-10 17:43 ` Otared Kavian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).