From 48d2558c3ffad7abe989102c448a8f65f37e1faa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Nov 2010 23:39:23 +0000 Subject: new latex package luacode (8nov10) git-svn-id: svn://tug.org/texlive/trunk@20372 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/lualatex/luacode/News | 2 + Master/texmf-dist/doc/lualatex/luacode/README | 43 +++++++++++++++++++++ Master/texmf-dist/doc/lualatex/luacode/luacode.pdf | Bin 0 -> 361377 bytes 3 files changed, 45 insertions(+) create mode 100644 Master/texmf-dist/doc/lualatex/luacode/News create mode 100644 Master/texmf-dist/doc/lualatex/luacode/README create mode 100644 Master/texmf-dist/doc/lualatex/luacode/luacode.pdf (limited to 'Master/texmf-dist/doc/lualatex/luacode') diff --git a/Master/texmf-dist/doc/lualatex/luacode/News b/Master/texmf-dist/doc/lualatex/luacode/News new file mode 100644 index 00000000000..f5e2e65989d --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/luacode/News @@ -0,0 +1,2 @@ +2010/11/08 v1.0 + * initial version diff --git a/Master/texmf-dist/doc/lualatex/luacode/README b/Master/texmf-dist/doc/lualatex/luacode/README new file mode 100644 index 00000000000..6b5ad9e94cf --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/luacode/README @@ -0,0 +1,43 @@ + The luacode package for LuaLaTeX + + +Executing Lua code from within TeX with \directlua can sometimes be +tricky: there is no easy way to use the percent character, counting +backslashes may be hard, and Lua comments don't work the way you expect. +This package provides the \luaexec command and the luacode(*) +environments to help with these problems. + +For an introduction to the most important gotchas of \directlua, see +lualatex-doc.pdf. Before you start using the tools in this package, let me +insist that the most robust way to manage a non-trivial piece of Lua code is +to use an external file and source it from Lua, as explained in the cited +document. + + +Installation +------------ + +Here are the recommended installation methods (preferred first). + +1. If you are using TeX Live 2008 or later, use 'tlmgr install luacode'. +If your are using MiKTeX, use the MiKTeX Package Manager. +Alternatively, try you Linux distribution's package management system. + +2. a. Grab luacode.tds.zip on the CTAN. + b. Unzip it at the root of one or your TDS trees. + c. You may need to update some filename database after this, see your TeX + distribution's manual for details. (Hint: with TeX Live, run 'mktexlsr'; + with MikTeX, look for "Refresh FNDB" in the MikTeX menu.) + +3. a. Grab the sources from CTAN or github. + b. Run 'make install TEXMFROOT=/path/to/texmf'. + (Warning: 'make install' without giving a TEXMFROOT will + put files in './texmf', which is probably not what you want.) + c. See 2c. + + +Licence +------- + +This package is distributed under the terms of the LPPL v1.3c or later. +See the source file luacode.dtx for details. diff --git a/Master/texmf-dist/doc/lualatex/luacode/luacode.pdf b/Master/texmf-dist/doc/lualatex/luacode/luacode.pdf new file mode 100644 index 00000000000..dd6c072b383 Binary files /dev/null and b/Master/texmf-dist/doc/lualatex/luacode/luacode.pdf differ -- cgit v1.2.3