Changes

Jump to navigation Jump to search
289 bytes added ,  13:35, 17 February 2014
How to include lua code from a file
context("Unless we print them, then we must \\#\\$\\& print the escape characters, too.")
\stopluacode
</texcode>
 
== Putting Lua code in an external file ==
 
You can put your lua code in an external file (with the <code>.lua</code> extension) and include it with the <code>require</code> command:
 
<texcode>
\startluacode
-- include the file my-lua-lib.lua
require("my-lua-lib")
\endluacode
</texcode>
4

edits

Navigation menu