Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
If you or anyone else is going to play around with generating mazes, definitely take a look at http://www.mazesforprogrammers.com/ and the live demos here: https://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap A nice overview of the relationship with spanning tress (by the

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
On Sat, 2 May 2020, Hans Hagen wrote: On 5/1/2020 11:38 PM, Aditya Mahajan wrote: On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Hans Hagen
On 5/1/2020 11:38 PM, Aditya Mahajan wrote: On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Hans Hagen
On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file named maze.lua: function

[NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-04-30 Thread Jairo A. del Rio
I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file named maze.lua: function make_maze_tex(w, h, m) w = w or 16 h = h or 8 local map =