Questions tagged [directlua]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
361 views

Pre-built preamble with LuaLaTeX and microtype

I have been trying to get super-fast compiles with LuaLaTeX by using a pre-built preamble for my documents. However, every time I try to compile, I get this error: No file main.aux. [\directlua]:1: ...
3
votes
0answers
275 views

TeXstudio - Preventing syntax highlighting effects from LaTeX special characters in Lua code

Is there way to make TeXstudio ignore the contents of a \directlua command when performing syntax highlighting? Currently, it ends up causing highlighting like: Which is distracting when scanning the ...
1
vote
0answers
46 views

Incompatibility between LuaLatex font feature and Graphite?

when I use LuaLaTeX to modify my font (for example here kerning) at the same time as Graphite, there seems to be a problem because nothing happens. Everything seems to go well when I'm not using ...
1
vote
0answers
45 views

Define an incremental counter with Lua

I would like to receive a suggestion for this example. Really, it is more a question related to Lua scripting. Minimal working example \documentclass{beamer} \directlua{dofile("timer.lua")} ...
0
votes
0answers
29 views

Issues trying to expand tex macro's fully in directlua

I am trying to create a JSON file from a LaTeX report that will be used for some post-processing. For a number of values from my report I will need an expanded version that basically only includes ...
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=...