Am 2017-11-07 um 04:59 schrieb Li Yanrui (李延瑞)
Hi,
Using '\ctxloadluafile' can get an error:
``` ..ext/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:50: bad argument #1 to 'gmatch' (string expected, got nil) ```
Same here: lua error > lua error on line 30 in file /Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi: ...xmf/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: bad argument #1 to 'gmatch' (string expected, got nil) stack traceback: [C]: in function 'gmatch' ...xmf/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: in function 'registercode' [ctxlua]:1: in main chunk 20 %C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 %C GNU General Public License for more details. 22 %C 23 %C You should have received a copy of the GNU General Public License 24 %C along with this program. If not, see http://www.gnu.org/licenses/. 25 26 \unprotect 27 28 % Lua functions for the core and also for the frontend modules 29 30 >> \ctxloadluafile{s-cor-00}
It seems to be caused by 'if options ~= ""' in `lua.registercode'. That empyt string should be 'nil'?
Yep, after 'context --make' that lets it work for me. Thank you! Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD