Questions tagged [directlua]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
116 views

Nesting of functions not working in lualatex

Here is the code. It makes use of the file matrix.lua available at the following link. https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua \documentclass{article} \usepackage{luacode} \...
1
vote
1answer
100 views

Evaluating Mathematical Expressions in Lua

Here is the code. \documentclass{article} \begin{document} \directlua{tex.sprint(tostring(math.sin(math.pi)))} \\ \directlua{tex.sprint(tostring(math.tan(math.pi/2)))} \end{document} I am expecting ...
6
votes
2answers
350 views

Code Comment in directlua

How can I add comments to my directlua code? {\catcode`\%=12 \directlua{ function boxed (s) ??? Add a comment ??? if not(boxedflag) then i=string.find(s,'^!!!') if(i==1) then boxedflag=true ...
4
votes
1answer
157 views

Fixing problems in latin translitteration of acute accented cyrillic vowels with \directlua

A good translitteration method from cyrillic to latin characters using XeLaTeX is discussed in Using XeTeX for automatic transliteration of cyrillic letters Actually I'm using LuaLaTeX. the ...
0
votes
0answers
131 views

Issue with xparse and lualatex

I have the following code \documentclass{article} \usepackage{luacode,xparse,amsmath} \begin{luacode*} local matrix = require "matrix" local complex = require "complex" function add(m,n) m=...