Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
31 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
41 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 ...
2
votes
1answer
117 views

How insert pdf literal before and after paragraph

Help me please,how i can insert pdf literal before and after paragraph node. My code works incorrect. Thanks everybody for the help. \documentclass{article} \usepackage{luacode} \usepackage{...
1
vote
2answers
42 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 ...
3
votes
2answers
40 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{...
0
votes
1answer
43 views

Preparing a latex installer to ship the reporting system

I have prepared a simple report making system that uses Latex to prepare all the reports. It is a simple system that prepares a 15 page report by reading a CSV file. I want to ship the system. I don'...
2
votes
1answer
202 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
27 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 ...
-1
votes
1answer
53 views

How use command \pdfextension in luacode enviroment of package luacode?

When I try to compile, for example, this code in my document: \begin{luacode} \pdfextension literal direct{/Span <</ActualText (First paragraph on page one)>> BDC} tex.print("my text") \...
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
30 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
29 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 ...
0
votes
1answer
45 views

Saving all the latex to a file and then render reading from the file

I am rendering Latex that spawns ~2600 pages. The document is rendered from a JSON using Lua. It takes around 32 seconds to prepare the document of ~2600 pages. To verify, if there is a difference in ...
11
votes
2answers
425 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 ...
1
vote
1answer
35 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 ...
0
votes
0answers
32 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-...
2
votes
4answers
63 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 ...
0
votes
1answer
31 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
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 ...
0
votes
0answers
10 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 ...
1
vote
2answers
47 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
36 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
35 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 ...
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 ...
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:...
4
votes
1answer
54 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 ...
3
votes
1answer
115 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 ...
9
votes
2answers
326 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 ...
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
135 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 ...
2
votes
1answer
132 views

Capturing the definition of a LaTeX command in a Lua variable

I'd like to get the meaning of a LaTeX command in fully expanded form in a lua variable. What is the easiest way of getting there? In other words, what should I be replacing the function getmeaning ...
5
votes
1answer
113 views

\string-primitive works in unexpected ways in LuaTeX — Where can I find exact documentation of the \string-primitive in LuaTeX?

Where can I find exact documentation of the \string-primitive in LuaTeX? I ask this question because I encounter some unexpected (at least by me) behavior when compiling the example below with LuaTeX....
4
votes
1answer
39 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
70 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
109 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{...
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 ...
1
vote
0answers
100 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 ...
0
votes
1answer
83 views

Lualatex/Japanese document compiles fine in TeXstudio, but not MacTex

I'm having trouble compiling the following document. I have done a fresh install of MacOS 10.14 and installed the full size MacTex 2018 distribution directly from TUG. I have also upgraded all ...
5
votes
3answers
156 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
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} \...
0
votes
0answers
45 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
58 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
1answer
83 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 ...
-2
votes
1answer
46 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}...
0
votes
1answer
40 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 = ...
1
vote
1answer
63 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 ...