Questions tagged [luatex]
LuaTeX is a Unicode-capable extension of TeX which integrates the scripting language Lua. Use this tag if your question is about LuaTeX or LuaLaTeX specific problems and is not related to standard (La)TeX. For ConTeXt related questions use {context-mkiv}.
4,748 questions
7
votes
1
answer
112
views
Unicode math + LuaLatex issue with fractions in exponents
I am having a bug with Unicode math, where fractions in exponents do not behave well if there are multiple fonts loaded. Here is a MWE demonstration (LuaLatex 2025, replicated locally and on Overleaf):...
5
votes
1
answer
73
views
White space is missing in Chinese typesetting if hyperref package is loaded
[cfr: The original question concerned cleveref together with hyperref. Further analysis shows the problem can be reproduced without cleveref.]
When I use cleveref and hyperref packages together, the ...
1
vote
2
answers
85
views
Match Math Font to Text Font
Using XeLaTeX, one can easily set the math font to match the main text using the mathspec package. For example, using the open font Carlito on Overleaf, the code
\documentclass{article}
\usepackage{...
1
vote
1
answer
26
views
Bibliography issues while creating an ADA-compliant pdf with LuaLaTeX
I am trying to convert a set of notes created with pdflatex to ones that are compliant with the new ADA regulations. I have everything working except for the bibliography, which comes with an error: &...
4
votes
2
answers
150
views
Writing a file with Lua on Overleaf
The following code works as expected if I run it in LuaLaTeX on my machine, creating a file containing the text "Hello, World!".
\documentclass{article}
\begin{document}
\directlua{
...
1
vote
0
answers
56
views
Ligatures disappear with package spelling under LuaLaTeX
The package spelling extracts the text from a standard LaTeX file under LuaTeX, but on this MWE:
\documentclass{report}
\usepackage{spelling}
\begin{document}
We differentiate using the definition of ...
4
votes
1
answer
62
views
How can I map TFM data for a type1 font in LuaLaTeX (probably using luaotfload.patch_font_unsafe) when the font encoding has unused slots?
This code is derived from code by Max Chernoff, but the mangling is entirely my responsibility.
Aim: to add tounicode mappings to the characters in uzdr.pfb (URW's clone of Zapf Dingbats) when ...
3
votes
1
answer
335
views
Install Casio font series FX-CG 50
I wanted to understand how to assign names to fonts GraphicSeriesFontSet from CASIO website https://edu.casio.com/education/fontset/dl/GraphicSeriesFontSet.zip in order to use them without installing ...
1
vote
1
answer
42
views
how to create sectioned/combined invoices?
I'm writing up a financing proposal for which I'd like to list the expenses by category, providing each invoice block with its own subtotal, and then a separate line at the end giving a combined total ...
3
votes
2
answers
220
views
How to recursively import .tex files in LaTeX with correct hierarchical ordering?
I'm working on large LaTeX projects with structured directories containing numbered files:
project/
├── 01-introduction.tex
├── 02-background.tex
├── 03-methodology/
│ ├── 01-experimental.tex
│ ├──...
6
votes
2
answers
235
views
Is it possible simplify this lualatex code?
The following code is used to retrieve and round a variable defined via \directlua. Is it possible to remove the luaround function and replace
{\IfValueTF{#1} {luaround(#2, #1)} {#2}}
with something ...
2
votes
1
answer
132
views
Is it a good idea to create a Lua "class" with C++ style constructor and (function) pointers in LuaLaTeX?
Background
Consider the following: One has several LuaLaTeX packages, which provide similar, but case specific functionality. Consequently, they have slightly different internal logic and require ...
2
votes
1
answer
88
views
Can't get the page dimensions right
I need to typeset a book and for some reason I can not get the dimensions right. I have to use lualatex because of a package that's loaded earlier, and I'm using memoir. It should be simple but it ...
0
votes
0
answers
112
views
What is the meaning of lualatex returning 139 sporadically [closed]
In the last time i face return value 139 with lualatex quite frequently.
The log looks as if the process died without any warning. ...
seems to have to do with fonts...
It seems to occur only in ...
4
votes
1
answer
79
views
Inconsistent line thickness of \frac and \overline in PDF [closed]
My problem
Some of the lines in the PDF of my LaTeX document are different thicknesses. This applies to lines generated using the commands frac, \overline and underline (I'm not sure about the latter)....