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
0answers
50 views

Put each text on each column

How can I put texts from different languages in each column on a two column book class? I tried the paracol package but it doesn't look good for my entire file. I put here a MWE of my code (compiled ...
2
votes
1answer
59 views

Custom columnsep in twocolumn book

I'm trying to customize the column separator for my two columns book class. I made a simple Tikz line to put between them but I find no way to do so. Here's a MWE of my code (I'm compiling it with ...
3
votes
1answer
61 views

pgfplots with LuaLaTeX - totally different results

Here's my code: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16,colormap/blackwhite} \begin{document} \begin{tikzpicture} \begin{axis}[view={-60}{40}, hide axis=true, ...
2
votes
1answer
91 views

Using otf files in the TEXMF tree with lualatex

I'm trying to use an otf file that is in the TEXMF tree, but another file with the same name is used instead. I run lualatex from a locally installed TexLive 2019 on this file: \documentclass{...
10
votes
1answer
123 views

How do I define a new TeX register with arguments in LuaTeX?

Some time ago I tried to implement the \pdfadjustinterwordglue from pdfTeX in LuaTeX using a callback. Getting the callback to work is pretty simple, but there is another major problem in the way ...
5
votes
1answer
178 views

LaTeX Make Word Appear

I want to introduce words in Beamer slides one at a time. I learned to do this using itemize but what if I have simple plain words? I do not want the word from each segment to repeat I just want the ...
2
votes
1answer
47 views

When passing TeX code to Lua and back to TeX, the # symbol doubles

Consider the following MWE. If I pass some TeX code to Lua (via \directlua) and Lua tries to pass it back to TeX (via tex.sprint), the following problem becomes apparent. The code below prints text ...
17
votes
3answers
2k views

Avoid just nearly filled last lines

Old school typesetters never allowed the last line of a paragraph to be just nearly filled. Either it would be clearly shorter than the other lines or it would be stretched to align with the right ...
6
votes
3answers
226 views

Inserting full stops between letters with a macro

I was thinking recently that it would be really useful to have a macro that would fill in full stops between the letters of an acronym, say \acr which would take an input \acr{WHO} and spit out ‘W.H.O....
0
votes
1answer
108 views

Accents misaligned with unicode-math and STIX2

While using STIX2 with LuaLaTeX and unicode-math, I found out that accents such as \hat or \bar aren't aligned properly with the letters: I haven't noticed any similar problems with XITS with the ...
1
vote
1answer
49 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 ...
3
votes
1answer
528 views

ConTeXt: How to typeset Arabic text?

I am new to ConTeXt world, however what I need to achieve is simply to be able to typeset Arabic/Hebrew text along with English text (Bidi) in ConTeXt. I came across this part of the context garden ...
2
votes
1answer
42 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 ...
15
votes
2answers
871 views

Decide between Polyglossia and Babel for LuaLaTeX in 2019

Which are the key questions one has to ask to decide between Polyglossia and Babel for a LuaLaTeX project in 2019? There has been a similar, more general question in 2012, but the packages have ...
0
votes
0answers
87 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
50 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 ...
1
vote
2answers
105 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 ...
3
votes
2answers
79 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
0answers
46 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'...
3
votes
1answer
72 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
41 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
47 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 ...
12
votes
2answers
466 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
43 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
141 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
74 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
75 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
51 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
84 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
22 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
56 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
45 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
43 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
122 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
40 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
68 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
186 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 ...
6
votes
2answers
149 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
183 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
157 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
123 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....
5
votes
1answer
65 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
84 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
156 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
69 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
110 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 ...
5
votes
3answers
236 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
45 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
95 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
89 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} \...