Questions tagged [directlua]

The tag has no usage guidance.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
238 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
245 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
216 views

Create external file (like a Makefile) whit real tabs using LaTeX and Lua code

I'm trying to generate a external Makefile (and others) file using latex and the filecontents or fancyvrb package. As the \t (tabs) characters in input file are converted to space in output file (see ...
0
votes
0answers
21 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
94 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=...