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

1
vote
1answer
28 views

Organization in Online Sources Biber

I am currently facing some obstacles concerning bibliography layout (again). My institute's formal rules require adding the organization to online sources, if available in capslock in front of the ...
1
vote
0answers
17 views

LuaLaTeX doesn't execute plantuml with Cyrrilic-name file

It's derivative from my previous question: \DeclareGraphicsRule for plantuml doesn't work with LuaLaTeX I have this MWE: \documentclass{article} \usepackage{graphicx} \DeclareGraphicsExtensions{...
8
votes
0answers
85 views

How to select the right index tool for LuaLaTeX in 2019?

There are several tools for indexing: luaindex (one release from 2011, written in Lua, "This is an alpha version!", by Markus Kohm) makeindex (1987-1993, written in C, by L. Lamport, P. Chen et al.) ...
2
votes
1answer
35 views

Tabular end-of-row \\ macro fails when trying to capture cell contents

I am trying to create a tabular environment that captures the contents of table cells for an associated Lua module. The Lua module will then reformat the tabular data and export as C/C++ and VHDL ...
1
vote
1answer
42 views

How to use AutoFakeBold and AutoFakeItalic with fontspec?

The font, Kalpurush, doesn't have any Bold, Italic, BoldItalic etc. features in it. \documentclass{article} \usepackage{harfload, fontspec} \setmainfont{Kalpurush}[RawFeature={mode=harf}] \parindent ...
0
votes
0answers
65 views

TexLive 2019 lualatex doesn't compile document

I have a document that compiles fine under pdflatex. But when I use lualatex the compilation process ends without doing anything. The log file has just these line: This is LuaTeX, Version 1.10.0 (...
0
votes
0answers
41 views

Polyglossia pesky about spaces in front of punctuation (French - Lualatex)

I just installed a fresh version of Basic TeX (version 2019) for Mac after deleting all previous version of TeXLive. Documents which used to compile perfectly now fail due to what seems a very pesky ...
2
votes
1answer
43 views

realscripts – can fakescripts substitute single missing chars

I have a font with real OT-superscripts which I can use easily with the realscripts-package. But I also need a superscript decimal dot which doesn't exist, thus realscripts falls back to the regular ...
3
votes
2answers
42 views

Fallback for mathcal unicode characters in lualatex with proper height

Very few monospace fonts support unicode characters like U+1D4AA (Mathematical Script Capital O). I'm using DejaVu Sans Mono, and I'd like to define a fallback. Right now I have this: \documentclass{...
1
vote
2answers
44 views

Text not bold in IEEEtran paper (LuaLaTeX / Debian Linux)

I'm writing a paper that uses an IEEEtran layout, but for some reason it doesn't seem to be loading the fonts correctly. The abstract should be bold, but it currently isn't, for example. I'm ...
0
votes
0answers
33 views

Migrating from commercial music notation software to free alternative [migrated]

A friend of mine dislikes composing music on the commercial software he owns (Si..us). The main reason is that he is into modern, avant-garde music and the notation on his current system is just not ...
1
vote
0answers
37 views

\DeclareGraphicsRule for plantuml doesn't work with LuaLaTeX

I want to set \DeclareGraphicsRule for plantuml by invoking plantuml command in Linux. I wrote an example, that works pretty well in PdfLaTeX but it stuck by error in LuaLaTeX: Package luatex.def ...
3
votes
1answer
44 views

fontspec \setmainfont overrides other font families

It seems that the use of fontspec's \setmainfont is overriding other font families. Is that the expected behavior? Should I use instead \renewcommand{\familydefault}{\sfdefault}? A MWE follows below:...
2
votes
1answer
209 views

How to annotate math material with /ActualText?

Please help me to create a regular expression, which, for example, replaces $a+b$ with \(a+b\) and, for example, $$a-b$$ with \[a-b\], such that I can then hook into the \(...\) and \[...\] macros to ...
0
votes
0answers
33 views

Local font metric data problem?

I'm running into problems with LuaTeX loading custom fonts, but only when the fonts are not installed into the texmf tree. The font I'm concerned with are custom fonts that are part of the ...
2
votes
1answer
36 views

How to make `kpse.find_file` aware of `\input@path` modifications?

I'm working on a \graphicspath like feature for GregorioTeX and having some problems making \input@path work with our Lua code. Basically, while \input@path works for \input statements, before we ...
12
votes
2answers
438 views

LuaLaTex - how to use number, computed later in the document

I am trying to print a number at the beginning of my document, say x. The problem is, that this number gets computed at a later part of my document, for example x = 2 + 3. How do I use the result of ...
2
votes
1answer
32 views

Setting default value of zref abspage to avoid arithmetic overflow error while computing rotation of tikz picture logo (picture on every page)

Combing answers from this question: How to use \pageref{foo} as a number? Positioning TikZ picture on page background to be on each page of twosided document I was able to create picture of my logo ...
0
votes
0answers
35 views

'iftex.sty' not found

I've been having this problem . My system is Windows 10 The iftex package required XeTeX, PDFTeX or LuaTeX. My Texmaker has XeLaTeX, PDFLaTeX and LuaLaTeX. How can I add these other compilation ...
0
votes
1answer
68 views

Where I can get information from about lua's functionalities in lualatex?

Normally _G table / _ENV table query returns 38 entries in console BUT when we are on lualatex it returns (121 minus normal 38 minus my 3 functions below) = 80 additional entries. Some are self-...
0
votes
1answer
33 views

Can we draw tikz node with lua node this way?

I've found this example of using lua node. To output Va they've: \documentclass{minimal} \begin{document} \directlua{ local g1 = node.new("glyph") g1.font = font.current() g1....
0
votes
0answers
14 views

How do I embed an extended section of vertical text into horizontal using luatex-ja?

I have been trying to insert a segment of vertical text with line breaks (turning into columns) into a larger horizontal text. After many tricks and hacks attempted, most of which a) destroy ...
0
votes
1answer
49 views

LuaLaTeX with babel/hebrew wants etex-extensions

Using texlive 2017 (same with texlive 2019), when i try to run the following minimal tex file (Hebrew font is https://www.sbl-site.org/educational/biblicalfonts.aspx; default font is Adobe's Minion ...
2
votes
4answers
64 views

How to concatenate command names

I would like to be able to perform an "indexed" assign by concatenating two (or more) portions of a command name, both for creating a new command and for referencing an existing command. Here is an ...
1
vote
2answers
49 views

Creating mathXxxx type macros for Unicode private use area

I have a custom font with a dozen or so scripts 0-9,A-Z,a-z in the private use area. I need to create macros like symcal() and mathcal() for those scripts. I have something that works -- but it is ...
5
votes
2answers
37 views

Lualatex function producing trailing characters

This function was working in the production system and I'm not aware of changing anything (MikTeX did some package updates which may have had an effect). A very much stripped down MWE is \...
1
vote
1answer
37 views

How can I get the correct hyper pdf underline colour and line width?

I'm trying to set a custom colour for hyperref's link underlining. The MWE below shows what I'm doing. But the colour comes out different - it's the same kind of yellow but a different saturation, if ...
0
votes
0answers
33 views

Lualatex buffer overflow

I want to compile one document on two different computers: one with Ubuntu 16 and lualatex 0.8.0.0, and another with Ubuntu 18 and lualatex 1.0.4 On the first computer I got an error: !LuaTeX error:...
1
vote
1answer
88 views

How to draw network diagrams with lua and tikz?

I was reading this article on drawing with lua and tikz. On page 45 of the article, the author's given an example code demonstrating the way to do so. Here's his lua code: -- File SimpleDemo.lua ...
3
votes
1answer
116 views

Formatting table with a lua for loop

I was trying to get a table like this 1 2 3 4 5 6 7 8 9 10 with this function function myTable() t = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} for k = 1, #t do if k == 1 then ...
4
votes
1answer
57 views

DeclareMathDelimiter not working with Unicode font

I am unable to get \DeclareMathDelimiter to work correctly with a Unicode font. I get the same results with XeLaTex and LuaLaTex. The custom font has a MATH table defined with both size variants and ...
6
votes
2answers
142 views

Bug using breqn and babel

I've hit a bug that I cannot fix (no warnings/errors in the logs). Here is a mwe: \documentclass{article} \usepackage[english,french]{babel} \usepackage{breqn} \begin{document} \[\{A, B, C\}\] ...
2
votes
1answer
138 views

What is in `tex.print` or `tex.sprint`?

In an external file, I've put these 3 lines in a .lua file: function texTest(name) x = tex.print("Hello " .. name) end and when I call it from .tex file, it gets interpreted properly. Out of ...
10
votes
2answers
406 views

How to install HarfTeX on TeXLive?

I've Installed TeX Live 2019 and downloaded HarfTeX. I'm using Visual Studio Code along with LatexWorkshop on Windows 10 and without any problem tex files compile with xelatex and lualatex. What to do ...
2
votes
1answer
71 views

How to change color inside `\discretionary` with luacolor?

I'm working on applying the answer to my question about color and ligatures and have run into a problem when the color change is supposed to happen inside a discretionary. Boiled down to a MWE and it ...
2
votes
0answers
112 views

Bangla breaks apart with lualatex!

I switched to lualatex for coloring part of Arabic words easily with arabluatex and xcolor. With xelatex I'd no problem with Bangla. Here's the latex script: \documentclass[12pt]{report} \usepackage{...
5
votes
1answer
41 views

luatex code for checking/avoiding hyphen at page break

There are cool things made possible by Lua, e.g. Paragraph callback to help with widows/orphans hand tuning . In the final version, I often do "by hand" checking that last line before page-break is ...
2
votes
1answer
54 views

Lining numbers for footnotes

Referring to this thread: OldStyle Numbers in Body Text Only—Lining Numbers Otherwisem how can I instruct LuaLatex to use lining numbers for \textsuperscript and footnote markers if my font use by ...
0
votes
0answers
34 views

Justified text with usepackage typewriter

The text when using usepackage typewriter is not justified. Is there a way to do that? \documentclass[12pt,a4paper]{scrartcl} \usepackage{lipsum} \providecommand\ttgreyone{0.1} \...
5
votes
3answers
160 views

Passing arguments from TeX to a Lua function

The following code is a simple example of passing arguments from TeX to Lua. Just passing the arguments directly (the version without \luastringN) gives an error. (./luafunction.aux)./luafunction.lua:...
0
votes
0answers
47 views

XeLatex file works at online OVERLEAF editor but not in my TexStudio editor

I have a problem with xelatex file which I copied from the overleaf online compiler. It works normally with no errors at overleaf but when I compiled it on my TexStudio editor it does not work even (I ...
3
votes
1answer
61 views

LuaLaTeX engine, babel and pdfx package

There is one error with the combination of spanish babel, pdfx package, and LuaLaTex engine, how it is very easy to test with this MWE: \documentclass{article} \usepackage[spanish]{babel} \...
1
vote
0answers
101 views

LuaLatex Rendering from input buffer instead of filename

I am trying to create pdf by passing buffer instead of filename but have certain issues.PDF size is only limited to two pages and can include only two pictures.Following is the full scenario. I have ...
-2
votes
1answer
50 views

Read a table from an external Lua file and print its content

I am working on a project for creating some flashcard, and I have saved the strings I want to include in the flashcard in an external file called all_text.lua and the data are stored in a linked list ...
0
votes
0answers
21 views

Trouble with the listings package command \lstnewenvironment [duplicate]

Consider the following example: \documentclass[oneside,article]{memoir} \usepackage{listings} \usepackage[lining]{ebgaramond} \usepackage[cmintegrals,cmbraces]{newtxmath} \usepackage{ebgaramond-maths}...
1
vote
1answer
67 views

Unicode Character/Symbol in Lua(La)TeX

I am trying to print a specific unicode character in LuaLaTeX using \documentclass{article} \begin{document} \char"2605 \symbol{"2605"} ^^^^2605 \end{document} However, none of these prints the ...
1
vote
1answer
31 views

Lualatex not see author of document

I want to override the \maketitle command, but I get a warning that no \author is given. \documentclass[11pt]{amsart} \title{test} \author{Aleksandr Kozlovskiy} \date{\today} \thanks{This document ...
0
votes
0answers
33 views

underline breaking ligatures

This is another version of my color question, as I've found another case where the problem occurs. In some behind the scenes work for spacing reasons, the pieces of a syllable get split up in ...
1
vote
1answer
84 views

From Capitals to Small Capitals

If I have a font in which lookups exist c2sc as built-in, there is a command to make small caps capital letters without incurring complicated codes like this: Convert all-caps words to small caps I ...
0
votes
1answer
41 views

React to a Command or a Comment to start the Lua Code

i asked a question a few weeks ago for some Lua Code, that splits my table cell into two cells, if i type a new line. Here is the code: \begin{luacode*} function doline(line) local splitpoint = ...