2022 Developer Survey is open! Take survey.

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
0 votes
0 answers
23 views

The glossary package - sorting the output

I have a list of acronyms and a glossary of names in Russian, English, and Greek. Is there a parameter that allows to display the names first in Russian, then in English and lastly in Greek? I've seen ...
user avatar
0 votes
3 answers
46 views

Putting a brace across multiple lines with text in Plain TeX

I'm changing a document prepared in Plain TeX and I'm trying to get a brace to cover multiple lines for example: S is P { cannot both be true (L. of Contradiction) S is not P { cannot both be ...
user avatar
0 votes
0 answers
27 views

Where does LuaTeX break my trivlist into pages

I have some verbatim text Line 1 Line 2 ... which is basically turned into a trivlist. \trivlist \item \hbox{\MyPrefix Line 1} \hbox{\MyPrefix Line 2} \hbox{...} \endtrivlist I want \MyPrefix to be ...
user avatar
1 vote
1 answer
37 views

\addfontfeatures combining issues

I am trying to set up additional weights and widths for a variable font: \DeclareRobustCommand{\blackseries}{\addfontfeature{RawFeature={+axis={wght=900}}}} \DeclareRobustCommand{\cond}{\...
user avatar
0 votes
1 answer
39 views

Combine arevmath (or similar) with unicode-math

Say I need to use a certain sans serif font (not Arial, but I am using this in the example, because it is widely available). As a consequence, I need to use a sans serif math font. The main font ...
user avatar
1 vote
0 answers
19 views

How to set up greek math fonts fonts for Minion Pro in LuaLaTex

In XeLaTex and using mathspec, one can simply use text Greek letters of Minion Pro for math symbols: \documentclass{article} \usepackage{mathtools} \usepackage{mathspec} \usepackage{fontspec} \...
user avatar
  • 3,419
0 votes
1 answer
35 views

Best way to automatically set tick precision in pgfplots?

I know that I can manually set precisions like so: x tick label style = {/pgf/number format/fixed, /pgf/number format/fixed zerofill, /pgf/number format/precision = 2}, y tick label style = {/pgf/...
user avatar
2 votes
2 answers
79 views

Hyperlink occurs empty space also for Centered text

Using LuaLaTeX, I am getting hyperlink anchors in unwanted places, shown in the MWE (PDFLaTeX, XeLaTeX produces prompt output). I only want the actual text to function as an anchor, not the ...
user avatar
  • 1,218
13 votes
2 answers
2k views

Should we give up pstricks?

I tried recently to use the program called "auto multiple choice", which seems to support only XeLaTeX. When I googled for it, I also heard about Luatex. Personally, I always compile with ...
user avatar
0 votes
0 answers
36 views

tex.runtoks: uniqueness of the <token register>

tex.runtoks can be used to execute instructions immediately. \directlua{ tex.settoks(421,'ABCDE'); tex.runtoks(421) } Here 421 should be replaced by a unique private number, in LaTeX we could ...
user avatar
0 votes
1 answer
44 views

How do you nest a paragraph of text within another paragraph?

What's the best way to recreate this InDesign-created text-within-text style in LaTeX (LuaTex)?
user avatar
  • 155
0 votes
1 answer
31 views

Tufte-handout table of contents font problem with kpfonts and lualatex

I am trying to use kpfonts with tufte-handout class. For some reason the table of contents font defaults to Computer Modern roman when compiled with lualatex, rest of the document compiles correctly. ...
user avatar
  • 1,549
1 vote
0 answers
44 views

\mathit{\vec{…}} silently swallows up the vector when using xelatex/lualatex, unicode-math, and TeX Gyre Termes (Math)

Feeding xelatex or lualatex with \documentclass{article} \pagestyle{empty} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Termes} \setsansfont{TeX Gyre Heros}[Scale=0.88]%%% Somewhat ...
user avatar
0 votes
0 answers
45 views

Evaluate LaTeX parts conditionally depending on Lua state

In LuaLaTeX, I want to evaluate parts of the document conditionally, depending on Lua state. A way to evaluate parts conditionally in LaTeX is a \if \else \fi construct. A simple approach to connect ...
user avatar
  • 2,410
0 votes
0 answers
12 views

Making all ToC entries uppercase with memoir class & hyperref

I need to update my organization's style file to make it hyperref-compatible. It uses the memoir class and requires all of the table of contents entries to be in all-caps: Per Lowercase TOC with ...
user avatar
  • 143
2 votes
2 answers
55 views

How to get Charter digits in both modes; old style in text mode?

How do I get Charter with its "oldstyle" option in text mode, and with Charter characters (including digits) in math mode? The proposed solution needs to work with LuaLaTeX (because some ...
user avatar
  • 390
0 votes
1 answer
32 views

outputting pdf with page numbers that align to printed? [duplicate]

I have a situation where documents are issued daily, but are compiled into a paper volume at a later date. The page numbers follow on so that the volume is numbered continuously. I'm thinking of ...
user avatar
  • 249
0 votes
0 answers
58 views

Error when passing macro to \setmainlanguage

Error when compiling this example using vanilla XeLaTeX (XeTeX 3.141592653-2.6-0.999994 (TeX Live 2022)) or LuaLaTeX (This is LuaHBTeX, Version 1.15.0 (TeX Live 2022)). I've got the following class ...
user avatar
  • 656
8 votes
3 answers
274 views

How can I assign a math code to a symbol from a non-math font?

I want to use phoenician letters (unicode range 0x10900 to 0x1091F) as variable names. (If your browser font supports them, these are the characters: 𐤂,𐤁,𐤀, and so on.) I am using LuaTeX with ...
user avatar
1 vote
1 answer
51 views

Error with pdfx package compiled with lualatex

I need to compile my thesis as a PDF/A-compliant document. Therefore I use the pdfx package. Reacently (due to many many tikz figures) I have changed from pdflatex to lualatex (TeX memory - ...
user avatar
  • 31
4 votes
2 answers
168 views

Citing a book with diacritics in its title using LuaLaTeX and Biber

I am using LuaLaTeX and Biber. The document class is scrbook and I use the package fontspec. However, I am unable to cite this book: https://publications.efeo.fr/en/livres/908_a-critical-edition-and-...
user avatar
2 votes
1 answer
48 views

How to make text boldness match math when using lualatex with mlmodern package?

I found about mlmodern and I really like it as it makes CM font bolder and more clear. But the surrounding text is still light and does not match. I am using lualatex. What is the correct way to make ...
user avatar
  • 18.1k
1 vote
1 answer
27 views

Bracket problem with odsfile + includegraphicx

The cell that is called should just contain the filename of the desired image file. \documentclass{report} \usepackage{odsfile} \usepackage{graphicx} \begin{document} \includegraphics{\...
user avatar
2 votes
0 answers
40 views

`bad trailer dictionary` when processing PDF generated with lualatex

For several reasons, my workflow includes running my (Lua)LaTeX PDF through ghostscript like this: gs -o output.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input.pdf Since recently (TeX Live 2021 ...
user avatar
  • 1,286
1 vote
0 answers
75 views

What is the most up-to-date indicated/suggested way to typeset Greek?

I typically type on an English keyboard, but I use a Greek keyboard when it comes to typing Greek characters. I have my personal workaround through the pdfLaTeX engine, but as LaTeX evolves it seems (...
user avatar
  • 447
2 votes
1 answer
69 views

LuaLaTeX fails to render Nepali properly, how can I fix it?

I'm not that hot with fontspec and friends, so took most from this answer about Nepali verbatim: How to write Nepali and English on the same page in Overleaf Here's my slightly edited code: \...
user avatar
0 votes
1 answer
59 views

Lucida font installation

I bought the Lucida OTF fonts from tug. I want to use them on a Linux system with LuaLaTeX. The installation instructions mention the following: The installation documentation is in these (plain ...
user avatar
2 votes
1 answer
70 views

Workaround for XeTeX commands of Awami Nastaliq/Graphite in LuaTeX

My switch from XeTeX to LuaTex for Urdu publishing (Texlive 2022) has overall been a good experience. As a user of the excellent font Awami Nastaliq with Graphite, I had qualms. However, no worries. ...
user avatar
  • 163
1 vote
2 answers
49 views

\smalltriangleright not working in algpseudocodex

I'm using the algpseudocodex package to display pseudocode in LuaLaTeX. I want to change the symbol at the beginning of a comment to \smalltriangleright with: \usepackage[beginComment=$\...
user avatar
  • 2,410
1 vote
1 answer
41 views

Mdframed buggy with LuaTex + Babel + Urdu

I recently switched from XeTex to LuaTeX (Texlive 2022) for Urdu, and generally things are going well. However, mdframed seems to have a bug (in XeTeX I never experienced this): \documentclass[...
user avatar
  • 163
0 votes
0 answers
6 views

Local declaration of (built-in) Lua functions to reduce overhead [migrated]

It is often said that one should redeclare (certain) Lua functions locally, as this reduces the overhead. But what is the exact rule / principle behind this? How do I know for which functions this ...
user avatar
  • 371
1 vote
0 answers
50 views

Determining word boundaries in LuaTeX node list

What should be considered best practice regarding determination of word boundaries in LuaTeX node lists? I see that some packages use something like this: while ((MOVE.id == node.id("glyph"))...
user avatar
  • 371
7 votes
1 answer
179 views

Is there a way to add italic correction at the end of inline math?

I would like to add italic correction at the end of inline math, depending on the italic correction of the last math character. Here is a MWE showing why I would like to have that: %! TEX program = ...
user avatar
0 votes
0 answers
45 views

Changing PDF blend mode (transparency) in LuaTeX node list

How can I set transparency/opacity in LuaTeX node list processing? In my case I'd like to set the blend mode for a rule/rectangle. I tried the following: % !TEX TS-program = lualatex \documentclass[...
user avatar
  • 371
6 votes
1 answer
391 views

Can't use 5-digit hexadecimal numbers with ^^^^^

I'm getting this exact error message (including linebreaks) ! ^^^^ needs four hex digits. l.5 \newcommand{\boldpsi}{^ ^^^^1d6d9} for this piece of code: \documentclass{...
user avatar
1 vote
3 answers
40 views

\newunicodechar only if undeclared?

I am using LuaLaTeX. Some of the source files I receive contain Unicode characters that are not universally supported. So far, so common: \documentclass{article} \usepackage{newunicodechar} \...
user avatar
  • 4,852
0 votes
1 answer
41 views

How to color a rule node in LuaTeX?

When I do something like this: % !TEX TS-program = lualatex \documentclass[english]{book} \usepackage{babel} \directlua{ COL = node.subtype ( "pdf_colorstack" ) WHAT = node.id ( &...
user avatar
  • 371
5 votes
1 answer
96 views

How do I get italic correction in LuaLaTex with unicode-math and \left \right?

The story about italic correction in LuaLaTeX when using unicode-math seems to be an old one. However, the issue does not appear to be fixed. Here is what it looks like with unicode-math and without ...
user avatar
1 vote
1 answer
48 views

Tikz Graph: TeX capacity exceeded, sorry [input stack size=10000]

Here is my script(this is the example of pgfmanual.pdf by Till Tantau(terminal:texdoc tikz)): \documentclass[10pt]{article} \usepackage[usenames]{color} %used for font color \usepackage{amssymb} %...
user avatar
0 votes
2 answers
64 views

How to collect texts and place all them together?

I am trying to create two commands: A command \collect that stores a string/text. A command \callcollection that call all these stored texts placed before the command (without any configuration, just ...
user avatar
1 vote
1 answer
56 views

Origin of Lua Error

If a lualatex compilation breaks with/at this terminal output: (/usr/local/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c ode.tex))[\directlua]:1: attempt to call a nil value (...
user avatar
  • 1,870
3 votes
1 answer
159 views

LuaTeX treats ^^M in \wlog differently

I am confused by the output of the following code: \documentclass{article} \begin{document} \begingroup \obeylines \typeout{abc^^Muvw} \wlog{ijk^^Mxyz} \endgroup \end{document} With PDFLaTeX or ...
user avatar
  • 7,886
0 votes
0 answers
59 views

How to determine, programmatically, if one needs run lualatex one more additional time?

As is known, one needs to run lualatex at least 3 times to get everything sorted out. Sometimes 2 times can be enough, depending on the nature of the document. May be even one time can be enough for ...
user avatar
  • 18.1k
0 votes
1 answer
74 views

Fatal Package fontspec Error: The fontspec package requires either XeTeX or (fontspec) LuaTeX

My setup is : vscode , miktek 4.7 ,strawberry perl, windows 10 I am new in latex , I can not figure out how to build pdf
user avatar
0 votes
1 answer
53 views

LuaTeX: How can I change the width (bounding box) of a letter?

I tried to adapt this solution by Marcel Krüger Fixing the position of math accents when using unicode-math in lualatex with a text font for letters and digits for changing the width (bounding box) of ...
user avatar
4 votes
2 answers
50 views

How can I make package warnings and infos in luatex?

We can make errors with tex.error() in luatex like \PackageError in .sty or \ClassError in .cls, but how can I make warnings and infos in luatex like \PackageWarning or \PackageInfo?
user avatar
  • 43
0 votes
2 answers
33 views

how to use -interaction=batchmode but at same time stop and display to terminal when an error shows up?

I did an experiment and found using -interaction=batchmode with lualatex reduces the compile time the most on one large latex file I have. Down from 77 minutes to 45 minutes. All on Linux WSL-2 ...
user avatar
  • 18.1k
1 vote
2 answers
62 views

How can I make macros called from tex.print tail-recursive?

Consider \documentclass[12pt]{article} \usepackage{luacode} %\usepackage{luacr} %\usepackage{miscellaneous} \begin{document} \global\def\F{\directlua{f()}} \begin{luacode*} i=0 function f() if i&...
user avatar
  • 1,471
1 vote
1 answer
34 views

commands defined in external file and imported by lua are not recognized

Suppose I have a file sourced.tex which defines a new command \MyCommand: \newcommand{\MyCommand}{Hello World} If I create a file main.tex and I source this file with \input, I'm able to use the ...
user avatar
  • 1,372
3 votes
1 answer
74 views

lua code inside directlua throws an invalid escape sequence error

I'm trying to make use of lualatex to automate generation of some part of a pdf. The directory tree for my minimal working example looks like the following: │ lua_escaping_issue.tex │ └───a_folder ...
user avatar
  • 1,372

1
2 3 4 5
72