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}.

Filter by
Sorted by
Tagged with
1
vote
0answers
13 views

How to remove seemingly random ID from generated PDF's xref table [duplicate]

I am trying to have fully reproducible builds of PDF documents with TeX, i.e. building the document is to generate the exact same PDF file each time. This is my input: \documentclass[a4paper]{article} ...
1
vote
1answer
28 views

Can I enable FFI by default without shell-escape?

The FFI library included in luatex could be dangerous so it is disabled by default (at least in TeXLive). In order to access the library, one has to invoke luatex with the --shell-escape option. Is ...
2
votes
1answer
36 views

luatex cannot find dynamic shared library with FFI

After a while, I'd like to play again with the FFI library with the help of an answer and a tutorial written by Henri Menke. I run an archlinux up-to-date system with a TeXLive 2021 vanilla installed ...
0
votes
1answer
11 views

Glossary entries are not hyperlinked, but the index entries are

I have two adjacent directives near the end of my scrbook document: \printglossary[title={Glossary of Symbols}] \printindex After compiling with lualatex, the index entries are hyperlinked: upon ...
0
votes
0answers
18 views

How to change math-font for pgfplot environments to sans, if necessary with luaotfload fallback?

I would like to change my fonts and especially my math fonts only for my graphs to my sans font Segoe UI. Unfortunately, it doesn't work. I tried already the following sugestions: Change math font ...
1
vote
1answer
62 views

Math parts with OpenDyslexic font

Invoking lualatex, I managed to make all plain text displayed with the Open Dyslexic font (latest release 0.910.12-rc2 installed) by following the steps described here. After reading this thread, I ...
3
votes
1answer
78 views

Simple regular expression matching using LaTeX

I would like to do some simple pattern matching in LaTeX, where a character in the pattern (e.g., shell like as in *, or regex like as in .*, I´ll use the latter) replaces zero or more characters in ...
0
votes
1answer
48 views

How to use -lualatex command with Latexmk (in Texmaker) [closed]

This is LuaHBTeX, Version 1.14.0 (MiKTeX 21.10) (format=lualatex 2021.11.24) 24 NOV 2021 19:11 (restricted system commands enabled). My system is Windows 10 and I do not work from the command line ...
0
votes
1answer
23 views

vhistory in report resulting in compiling error

I'm trying to add a history in a report file of mine. No matter how I try to implement the vhistory package into the file it runs several compiling errors, usually starting with a Error Line 6 ! ...
0
votes
1answer
65 views

Get y value of linear regression plot at xmax

I'm creating a dynamic LaTeX (LuaLaTeX) script, which is creating a plot out of a given CSV file. Settings like xmin, xmax etc. depend on that CSV file. That CSV file contains the storage utilization ...
3
votes
2answers
101 views

LuaTeX strings and xspace

I am using lua code to automate recording todos that come up during meetings I take minutes of. For this I use \luastringN from the luacode package currently. However, I would like to have all the '...
1
vote
1answer
43 views

How to increase the setting dest_names_size using lualatex on TL 2021?

Summary of problem: I get error TeX capacity exceeded, sorry [number of destination names (dest_names_size)=1 31072] But unable to find how to increase dest_names_size value to avoid this error. ...
1
vote
1answer
62 views

Use MLModern as-is with LuaTeX

The mlmodern font is currently supplied only as Type-1, and works well with pdfLaTeX. However, I would like to use LuaLaTeX (specifically, I want to use the tikz.graphdrawing library, which requires ...
3
votes
1answer
112 views

How to make custom ligatures searchable in LuaTeX?

In the following MWE, I defined my own ligature and it works using LuaTeX. I now would like to make it searchable by "Th" instead of "Ђ". Is this possible using fontspec or LuaTeX ...
1
vote
1answer
65 views

How to change the internal font name?

I like to control the font names in the created PDF file (I'm using LuaTeX). The following code reveils the font name quite easily as shown in the picture. I there a way, I can set a fixed font name ...
5
votes
1answer
156 views

chainsubstitution: which rule can detect the last character?

In the following MWE, I want to replace all ſ by s if they are at the last position of a line or document or some place where there is no next character. I added two rules to show that it works for ...
0
votes
0answers
52 views

LuaLaTeX not parsing first line %&format in texlive

Does anybody know how to enable first line parsing in LuaTeX/LuaLaTeX? Please consider that I cannot change the default command line option to run the job, so I'm relying solely on this first line ...
4
votes
1answer
69 views

How to remove font feature

Is there command to remove font feature that are added by \setmainfont or \setfontfamily. I know \addfontfeature to add font features. \documentclass[12pt]{book} \usepackage{fontspec} \RequirePackage[...
1
vote
0answers
51 views

A command call implemented in C, called from TeX via Lua. Why is it hanging?

The following C code (popen3luatex.c) implements a command call at the C level. This can be called from LuaTeX using the LaTeX file popen3luatex.tex, below popen3luatex.c. I've written little C code ...
1
vote
1answer
60 views

Issue with align* environment in TRT pagedir (lualatex)

I have this example with align* environment in TRT pagedir (lualatex engine), The result is aligned to the right even though the environment is placed in left to right context (with \bodydir TLT \...
0
votes
0answers
40 views

luatex color stack with pagecolor

This is an unimportant itch. (I want to write my textbook (next edition will be open source on Overleaf) in a way that is not entirely embarrassing and relatively warning/error free. It could become ...
0
votes
0answers
51 views

Latex whole document is centered

I am writing my Thesis in Latex. I think I have done something wrong and now the whole document is aligned centered. There are bunch of packages that I have included in my preamble, so it is hard to ...
1
vote
1answer
53 views

struggling with lualatex add to index, sort, and print

related to lualatex: how to add to string or table . I am trying to add keywords (with page numbers) to an in-memory array, and print a sorted sequential index at the end of my chapter. should be ...
0
votes
1answer
49 views

XeLaTex/LuaLaTex not changing font in beamer

I am trying to compile the following, but when I compile it, the beamer presentation still has the default font. I cannot figure out why \documentclass[12pt]{beamer} \usetheme{Goettingen} \usepackage{...
1
vote
1answer
48 views

lualatex: how to add to string or table

I want to write a "little index" now in lualatex. all keyword content is guaranteed to occur before, and I do not want to use an external file. My starter was: \documentclass[12pt]{article} ...
0
votes
0answers
49 views

Adding Italics to CJK Languages using Luaotfload (LuaLaTeX)

I currently have Luaotfload to render CJK languages including styling specifically for bold, however, how would I go about doing the same for Italics? Is it possible? I currently have: \directlua {...
0
votes
0answers
43 views

missing pdflatex primitives for lualatex

I am trying to switch from pdflatex to lualatex. alas, some primitives (such as \pdfmatch) have disappeared. \newcommand{\instring}[4]{% % \instring{<pattern>}{<heystring>}{<true>}...
2
votes
1answer
232 views

How do you select individual end alternate/swash characters with LuaLaTeX and fontspec?

Basic Problem Statement I would like to enable some (but not all) stylistic alternate ".end" characters from an OpenType font, on condition that they replace terminal characters in a word. ...
0
votes
1answer
53 views

How can I get the value of a token list (tl) variable in Lua?

For example if I define a token list like this \tl_set:Nn \l__tmpa_tl {content\someundefinedmacro} Which function can I use to get the value of the token list?
1
vote
1answer
48 views

Brackets in maths text too large while using fira-math and TeX Gyre DejaVu Math combination in lualatex [duplicate]

I am using fira-math and TeX Gyre DejaVu Math to typeset document using Lualatex. I am using TeX Gyre DejaVu Math since the arrow in fira-math seems too small. I am using Arial for text. As one can ...
1
vote
1answer
62 views

Emoji in DVI? (dvilualatex, dvisvgm and twemojis)

Motivation I want to use emojis in Manim, an animation software which uses LaTeX for rendering in the background. The pipeline is: generate a TeX file run dvilualatex on it to convert it to DVI run ...
1
vote
1answer
53 views

Indent all equations in a document

I'm currently writing my notes on a LaTex book, and I've decided to use this template. Additionally, I'm compiling with LuaTex since I have some Feynman diagrams with tikz. I like to write my ...
5
votes
0answers
106 views

Closing quotation marks don't protrude into the right margin of bibliography with biblatex

I like how the microtype package handles character protrusion when I compile my LaTeX documents with LuaLaTeX. But I have noticed that this doesn't seem to work properly in the bibliography that the ...
2
votes
1answer
50 views

siunitx v3 and pgfplots externalization with lualatex: \micro encoded as "ţ"

Upgrading from TeXLive 2020 to TeXLive 2021 lead to wrong encoding of the siunitx \micro macro, which is displayed as "ţ". The problem only occurs in pgfplots figures being externalized with ...
2
votes
1answer
43 views

How correctly use luaotfload fallback?

I would like to setup document which use by default EB Garamond font and for specific not recognized characters auto switch to fallback fonts. I found that it is possible by using luaotfload fallback. ...
1
vote
0answers
45 views

Latex class: how to change line space, font, font size, margin

I have a document class that I am using for writing my thesis. Here is the documentclass in this link. I also have a paper that is written using the document class IEEEtran. I can compile my latex and ...
1
vote
2answers
193 views

Contextual alternates and lettrine - LuaLaTeX

I'm using a font with "calt" (contextual alternates) on LuaLaTeX - as a matter of fact, BemboBookMT. So, for example, Q has a "tail" when followed by a u: When I use lettrine, I ...
1
vote
0answers
40 views

arabic text inside latin document in LuaTex (not LuaLaTex)

I try to typeset arabic text inside a latin document (english or german) in LuaTex. I searched the web and many forums, but most of the answers are for (Lua)Latex (e.g. using arabluatex). I am writing ...
0
votes
0answers
27 views

Activate small caps for Minion Pro

Using the Minion Pro OTF font with TeX Live 2021, small caps do not show up: \documentclass[paper=a4, fontsize=11pt]{scrreprt} \usepackage{fontspec} \setmainfont{MinionPro} \usepackage{polyglossia} \...
0
votes
0answers
33 views

Get Particular Text only Need to Print

I have more content text in my XML and i have need to print particular content text only. How to do? My MWE is: \documentclass{book} \usepackage{luacode} \begin{document} \begin{luacode*} local ...
1
vote
0answers
25 views

Using luasql-odbc with LuaLaTeX

I'm trying to use the luasql-odbc library with LuaLaTeX on Mac OS 10.14. I installed the library with lua 5.3 and luarocks and it is loading well with Lua. However, I am facing an issue when I try to ...
2
votes
1answer
58 views

LuaLaTeX code should generate an error, yet doesn't

I'm trying to learn a bit more about LuaLaTeX and came across this introduction. The author claims that the following code does not work: % this code will not work \directlua{ tex.print("\\...
0
votes
0answers
21 views

natbib is not finding references - how to check which `bib` file is used

I see in the log file that natbib does not find the references I have put into a bib file. If the .tex file is run separately from the command line, the references are found. Is there a way to see in ...
1
vote
1answer
24 views

Why "environment abstract undefined" after usepackage{abstract)

How to have a title with scrbook? I have added usepackage{abstract} but receive the error environment abstract undefined. I try to compile with LuaHBTeX 1.12.0 the following reduced example: \...
0
votes
1answer
56 views

LuaLaTeX full font embedding + eforms package

i tried fully embedding a font using directives from How can I verify that the fonts are all embedded in my LuaLatex document? [1], using font BlackChancery from https://www.1001fonts.com/...
0
votes
2answers
34 views

Getting length of arrayjob array

I would like to get the length of an arrajob array, something which the package sadly does not provide. Currently I have to manually adjust a length variable whenever I add or remove elements from an ...
1
vote
1answer
79 views

LuaTeX compiling

May someone can explain me how to compile the LuaTeX source files available here : http://michel.quercia.free.fr/cours-MP.tgz together with the macro's files http://michel.quercia.free.fr/montchapet....
2
votes
1answer
103 views

tilde ~ in lua adds a new line

I am setting a macro in lualatex, and would like to use ~ as a non-breaking space character. However, it produces a new line between first and last. \documentclass{scrartcl} \usepackage{luacode} \...
1
vote
1answer
39 views

luatex print "~" non-breaking space issue

How would I replicate a ~ character by printing from Lua? Please see MWE below. \documentclass{scrartcl} \usepackage{luacode} \begin{document} Hello \luadirect{s = ('First Last'):gsub(' ', '--'); ...
1
vote
1answer
27 views

Please help with naming the label on Feynman diagram

I want to get this Feynman diagram: I have following code, however when I add \(g(b,\overline a)\) , I get many errors. Could you please tell me how should I get desired result? \begin{center} \...

1
2 3 4 5
68