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
5 views

get page number of \label in lualatex

I would like to get the integer value of \pageref{...} with lualatex. However, with token.get_macro(s), I've found that the agument must be a macro without an argument. See MWE: \documentclass{article}...
1 vote
0 answers
16 views

Reledpar paragraphed footnotes width within sized ledgroup

Background of the question The goal is to typeset Greek fragments and their translations side-by-side. The style guide prescribes that the Greek should be set with a hanging indent of 8mm. The notes (...
0 votes
0 answers
39 views

What does “invalid … object at offset …” upon including PDF graphics mean?

Feeding \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics{included_file.pdf} \end{document} to xelatex, we get an expected PDF output but invalid 13 0 R object at offset ...
  • 1,545
2 votes
2 answers
159 views

Switching from PDFLaTeX to LuaLaTeX [duplicate]

Code Consider the following MWE: \documentclass{article} \usepackage{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage[sc]{mathpazo} \usepackage{microtype} \DisableLigatures[f]{...
0 votes
2 answers
22 views

I am using Texlive on my Ubuntu Linux Dash and have problems creating a pdf [closed]

So, the way i think my University wants us to do this is by typing into bash: "lualatex Nameofdocument.tex". So i did this short .tex script just to test it out. But this is where the ...
  • 1
0 votes
2 answers
47 views

adding letterspacing using luaotfload

The letterspace feature of luaotfload does not work in math mode. I tried to implement my own feature as follows: \documentclass{minimal} \directlua{ do local function mathletterspace(tfmdata, ...
  • 1
3 votes
2 answers
70 views

Find error: Using Lualatex to print a table

I have 题 as a counter. I'm using LuaLaTeX and loaded the luacode package. \newcommand{\scoretable}{ \directlua{ tex.print("\begin{tabular}{|c|") for i=1,\the题 do ...
  • 135
0 votes
1 answer
14 views

Using synctex for forward/backward searching without jumping cursor on compilation in Texmaker

I like to use SyncTeX when editing files in Texmaker to do forward and backward searches. However, right now, I'm writing a very long paper that requires me to make regular changes to the beginning of ...
  • 173
1 vote
1 answer
45 views

How to add support for another language (German) to the Words conversion in ConTeXt?

I would like to implement support for another language (German) for the conversion methods words and Words for converting numbers to words in ConTeXt. Having read the answers to this question I ...
  • 661
4 votes
2 answers
253 views

Why UM Typewriter font not working properly?

I compiled this code \documentclass{article} \usepackage{minted, fontspec} \setmonofont{UM Typewriter} %% <--- some problems here (see the next comment). To solve comment it out. \begin{document}...
0 votes
0 answers
31 views

No ligatures in chapter

When changing from LuaLaTeX, This is LuaTeX Version 1.10.0 (TeX Live 2019/Debian) to This is LuaHBTeX, Version 1.14.0 (TeX Live 2022/dev/Debian) no ligatures are set in \chapter. Also a -- (double ...
  • 1
0 votes
1 answer
32 views

calendar.sty not compatible with LuaTeX - bold fonts are no longer bold

I am a long-time user of calendar.sty, however I am new to LuaTeX / LuaLaTeX. I switched to LuaLaTeX so I could use Greek letters from the LuaLaTeX package unicode-math package (see link and link). ...
  • 1,244
1 vote
3 answers
60 views

Adobe Garamond Pro & ligatures

I need to use Adobe Garamond Pro on LaTeX to build an editorial layout. I installed the Adamond Garamond Pro font files (Regular, Bold, Italic, BoldItalic, SemiBold, SemiBoldItalic) on my computer (...
  • 21
1 vote
0 answers
55 views

Why à becomes ŕ in luatex with latin modern?

Running luatex (not lualatex) on a file with the following content: \font\lmrten=cs-lmr10 \lmrten à \bye outputs a PDF file containing a 'ŕ', not a 'à'. Why? And hox to fix it?
  • 123
3 votes
0 answers
75 views

How to install LuaMetaTeX to MikTeX on Windows 11?

On GitHub you can find the Plain and LaTeX format for LuaMetaTeX. I am a Plain LuaTeX user and would like to switch to Plain LuaMetaTeX for some reasons. Examples: unpacking the contents of \left and \...
0 votes
1 answer
43 views

markdown in LaTeX causes compiling issue

A generated lua file for embedding markdown cannot be found during build process. Hello I want to integrate a markdown file in my latex file. Firstly, I tried to run an example for it. However, the ...
1 vote
1 answer
33 views

Expand command argument twice before passing to lua function (like \luastringO)

I would like to make a helper macro like luacode's \luastringO, but instead expand the arg twice instead of once. There is a bunch of \expandafter/\unexapnded\noexpand hackery that always seems to go ...
3 votes
1 answer
76 views

luapstricks error

Consider the following non-MWE: \documentclass[ a4paper, landscape, 12pt ]{article} \usepackage[margin = 2.4cm]{geometry} \usepackage[version = 4]{mhchem} \usepackage{pstricks} \def\runding{0....
0 votes
1 answer
38 views

How to bold face Devanagiri font when using LuaLaTeX? [closed]

When using LuaLaTeX with the following config for the Polyglossia package, the bold face of fonts doesn't render when using \textbf{}. \usepackage{polyglossia} \setdefaultlanguage{hindi} \...
  • 111
0 votes
1 answer
47 views

LuaLaTeX and italic words in chapter title (sf)

I am using LuaLaTeX to load Futura as sans serif font for my document’s titles. Though, when I try to put my titles in italic, it doesn’t work, neither in the toc nor on the pages. It’s certainly a ...
5 votes
5 answers
507 views

LuaLaTeX - tabularx - Why does this table not fit on the previous page?

It looks like there would be plenty enough space for the table to fit on the page before, where the subsubsection title of my document is. By decreasing the arraystretch to around 1.15, it will fit on ...
1 vote
2 answers
129 views

Bradley Hand Font in Math

Compiling with LuaLaTeX, use of Bradley Hand Font works for body and math using beamer; but I would like to know how to render Bradley Hand font for math using standard Article style. -Thanks. %\...
  • 151
0 votes
1 answer
62 views

Breaking lines resulting from \mintinline or \Verb

I have come to a point where I really need a way to have LaTeX automatically break lines formatted as inline listings. I'm using the package minted. Here's a minimal working example: \documentclass{...
  • 1,460
0 votes
0 answers
29 views

hyperref Forms with serif font problem

I use LuaLaTeX. This MWE works with sans-serif fonts, i.e. Calibri (on Windows) \documentclass{article} \usepackage{fontspec} \def\fntname{Calibri} \setmainfont{\fntname} \usepackage[pdfstartview = ...
1 vote
1 answer
68 views

How to make opentype font in luatex latex work with unicode combining diacritical marks

We use s with caron COMBINING CARON U+030C but also s with curved breve (curving up) COMBINING BREVE U+0306 from https://en.wikipedia.org/wiki/Diacritic in a book we are typesetting with luatex using ...
  • 323
2 votes
1 answer
95 views

LuaTeX: How to slant, extend or embolden only some characters of a font, NOT the whole font?

In luaotfload we can slant, extend or embolden a whole font by writing something like \font\x="xxx.otf:+slant=a;+extend=b;+embolden=c" at d pt. But what can I do when I would like to apply ...
5 votes
1 answer
171 views

How to manipulate selected letters in LuaTeX?

Please look at the following MWE: \documentclass[20pt]{extarticle} \usepackage{unicode-math} \usepackage{luacode} %% Works: change width of 𝑓 \begin{luacode} local function newwidth(tfmdata) tfmdata....
2 votes
2 answers
77 views

LuaLaTeX with siunitx, luainputenc and T1 fontenc produces an error

Error I get the following error when compiling the MWE below with LuaLaTeX: ERROR: TeX capacity exceeded, sorry [input stack size=10000]. --- TeX said --- \curr@fontshape ->\f@encoding ...
  • 163
2 votes
1 answer
46 views

Redefining "part" style

I would like to redefine part style with LuaLatex: (I have checked other answers here like this but it doesn't seem to fit my questions quite well: add parts to toc can I optimize by redefining the &...
3 votes
1 answer
91 views

Understanding how different TeX engines deal with fonts

I know very little about how TeX deals with fonts and I'm trying to learn more about it. I know that helper packages like fontspec exist in LaTeX, but I'm mainly interested in using and understanding ...
  • 389
2 votes
0 answers
42 views

Cabin Font, Microtype, and Lualatex Produce Smallcaps---but not with Tracking=True

In the following MWE, I am using Cabin as the main font and compiling with lualatex. Remark: I do not believe that this is a duplicate with Smallcaps don't work if fontspec's microtype is used ...
  • 5,625
3 votes
0 answers
75 views

How to use the known weights of different breaking points in German words?

In https://repo.or.cz/wortliste.git/blob/HEAD:/wortliste (which is, in my opinion, the source of the current German hyphenation patterns used by [PDF|Xe|Lua]LaTeX with \babelprovide[hyphenrules=...
  • 1,545
2 votes
2 answers
94 views

Define categorized, changeable variables for use throughout a document

TL;DR How do I print categorized and subcategorized values declared in a JSON file (or in some similar type of file) inside of a LaTeX document? In my document, I am assigning a bunch of values to ...
  • 165
2 votes
0 answers
42 views

Lua substitution of double quotation mark

I'm playing with Lua substitutions and have realised I can't figure out how to escape quotation marks for double quotation marks (U+0022) and substitution code that works for every other character has ...
  • 414
0 votes
0 answers
51 views

Adding pdflatex and lualatex gnuplot graphing capabilities

I am using Windows 10 and TeXstudio (latest version) as TeX editor and TeXLive (if matters). In chapter 22.6 page 345 of tikz manual, version 3.1.9a is suggested for more powerful graphing engine to ...
  • 807
6 votes
1 answer
185 views

Confusion about unicode-math symbols w.r.t. math/text mode and format

Many math symbols defined by unicode-math either "work" in text mode or at least don't produce errors. For example, taking a representative sample from unicode-math-table.tex, the following ...
  • 380
0 votes
1 answer
56 views

Something is wrong with tikz graphdrawing

I wanted to see some isomorphisms of the Petersen graph; I took the code from here, and run with several layouts from here, but the result with tree layout is not isomorphic to the Petersen graph: \...
  • 3
2 votes
1 answer
56 views

Setting latin modern sans as math font with luatex

This is the code I used with pdflatex \DeclareMathVersion{sans} % Math letters from Latin Modern Sans \SetSymbolFont{letters}{sans}{OML}{cmbr}{m}{it} % Math operators \SetSymbolFont{operators}{sans}{...
2 votes
1 answer
116 views

Using LuaTeX to automate \textcite vs. \nptextcite from biblatex-apa

According to the biblatex-apa documentation (section 4.1), APA dictates that citations inside parentheses should not contain extra parentheses. Therefore, it provides the command \nptextcite[⟨prenote⟩...
  • 11.3k
4 votes
0 answers
147 views

Microtypography status in LuaTeX

According to this table from the microtype manual, the current support of microtypography in the TeX engines is as follows: Nevertheless, TeX.SX is full of LuaTeX workarounds in specific cases for ...
  • 11.3k
4 votes
1 answer
111 views

Redirect tex.print output to a file

I want to redirect tex.print output to a file to collect and reuse the produced LaTeX material : the mwe : \documentclass{article} \begin{document} essai \directlua{require("essai.lua")} ...
  • 16.5k
0 votes
1 answer
42 views

LuaLaTeX - Table (tabularx) Can't get rid of underfull hbox (badness 10000)

Ok so I have tried various solutions to this problem and the ~10 underfull hbox warning have been reduced to 1. But this one's really sticky and I'm at my wit's end. The warning is directed to the ...
0 votes
1 answer
29 views

How to pass the content of a TeX variable to Lua without luastring and luacode?

I try to pass the content of a Tex variable to lua, but I don't use luacode. Is there a way to avoid it ? \documentclass{article} %\usepackage{pgfkeys} %\pgfkeys{ % JobName/.code={\directlua{ ...
  • 16.5k
1 vote
0 answers
58 views

Jake's resume cannot be compiled with LuaLaTeX or XeLaTeX

Jake's resume is a famous resume template, its link is https://www.overleaf.com/latex/templates/jakes-resume/syzfjbzwjncs I want to modify it for Chinese characters, for example, change \section{...
1 vote
1 answer
72 views

How to change font from old pdflatex packages to new lualatex definitions

Lualatex allows to load fonts directly and without packages and other dependencies. The problem I see is that the usage is well documented for pdflatex and the old style and not documented for ...
4 votes
1 answer
129 views

Understanding implicit error on a recursive function

I was originally following the idea from Garrick Peschke To import all .tex files inside a folder, but I want my Lua function to also search inside subfolders. Unfortunately I can't make the Lua ...
  • 43
0 votes
0 answers
35 views

Newest version of luatexja interferes with vertical alignment of text

Today when I was compiling a document, I found that the header was mis-aligned. After a bit debugging, it seems to be the package luatexja (version 20220807) that is causing the problem. Below is a ...
  • 6,811
2 votes
1 answer
68 views

Dealing with curly braces in LuaLaTeX

I'm trying to generate a table with bolded text using a Lua snippet. Here's a minimal example. \documentclass{article} \usepackage{luacode} \begin{document} \begin{table}[h] \centering \begin{...
1 vote
0 answers
42 views

marginnote and framed - workaround fails with lualatex

I have this code in my 12 year old Tex files that I currently like to upgrade such that they work with lualatex. I load this code in order to fix a problem with marginnote and framed. Unfortunately I ...
1 vote
0 answers
18 views

Error using fontspec/lualatex with italic IPA unicode symbol <ɻ> (retroflex approximant) [duplicate]

Using fontspec with lualatex, and Libertine as the font, I get an obvious misalignment whenever the IPA symbol for a retroflex approximant, <ɻ>, is used in italics, but only if it has other ...

1
2 3 4 5
74