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

learn more… | top users | synonyms (1)

1
vote
2answers
128 views

Compilation Process: Flow Chart

I am searching for a flow chart of the compilation process for LuaLaTeX (or pdfLaTeX). The chart should include packages like hyperref, varioref, etc. that use additional calls of lualatex.exe. ...
2
votes
0answers
81 views

error polyglossia for sanskrit and hindi with lualatex but not with xelatex

I have texlive on windows with installed, all packages relating to sanskrit and hindi. there is no error with xelatex. when I compile, with lualatex, the simple document, I obtain an error in ...
38
votes
1answer
1k views

Poisson disc sampling implemented in luatex

In this answer by @Jake to the question Filling specified area by random dots in TikZ I learned about the poisson disc sampling technique to generate nice looking random patterns. Jake's answer ...
1
vote
1answer
95 views

LuaLaTeX font loader picks Regular variant from system font repertory but Bold from texmf-local

I have on my system for some years TrueType versions of a an older release of a (free) font (Vollkorn) in my texmf-local. I have now downloaded the more recent release, which has more variants, and ...
11
votes
1answer
307 views

How to pass a LaTeX argument verbatim to lua?

I would like to pass an argument verbatim from LaTeX to lua including LaTeX commands and end of line characters. The example below takes care of the former issue, but not of the latter. Is there a ...
9
votes
1answer
243 views

LuaTeX 0.85 \pdf* primitive changes and format file generation

TeX Live 2015 ships with LuaTeX 0.80. As LuaTeX 0.85 became available last month and I am supposed to do be doing other things I found this to be a wonderful opportunity to procrastinate by giving the ...
8
votes
1answer
130 views

How are non-unicode glyphs referenced in LuaTeX .dvi files?

Dvi files reference glyphs by their unicode number. However, a document often contain some unencoded glyphs, such as large math symbols. By inspecting dvi files containing such glyphs, I conclude that ...
4
votes
0answers
26 views

LuaTeX: Check if a font is installed [duplicate]

I use different computers with different fonts installed. My favourite font is Frutiger, so whenever it is present at the machine I'm working on, this one should be used. Currently, I'm setting the ...
3
votes
1answer
142 views

Using LuaLaTeX to calculate lengths in cm to be used in TikZ drawing

What I am trying to accomplish is the calculation of a length in cm, which I need for a TikZ drawing. The calculation itself is not trivial (cubic root, which I turned into math.log and math.exp), ...
0
votes
1answer
70 views

lualatex not using latest latex version

I am using TexLive 2015 on OS X. tlmgr info latex reports that I have the latest latex version 2015-08-03 $> tlmgr info latex package: latex category: Package shortdesc: ...
5
votes
1answer
131 views

How does XeLaTeX and LuaLaTeX extend the dvi format?

The structure of the DVI file format is documented by Donald Knuth in TEX: the Program, Addison-Wesley, 1986. Although PDF is the primary output format, LuaTeX can also output DVI files. Are these ...
1
vote
1answer
41 views

How to insert output of Lua script verbatim at location with LuaLaTeX?

I'm using TikZ' graph layout engine, and I'm very confused as to why \graph {1, 2, 3, 2--3}; draws the desired graph, while \graph {\directlua{dofile("foo.lua")}}; does not when foo.lua just ...
6
votes
1answer
406 views

Specify timezone for \today and \currenttime

Is there a way I can specify the timezone LaTeX should use when printing the \today and \currenttime (or the datetime package in general)? I need this because travisCI does build my PDF automatically ...
3
votes
2answers
90 views

How to unset default Ligatures=TeX for main font? (TexLive2015)

As of TexLive2015 (as opposed to TexLive2013) fontspec predefines Ligatures=TeX. This results in double quotes being replaced by curly quotes. How can I disable this behavior? \documentclass{article} ...
4
votes
1answer
122 views

LuaLaTeX + libertine… the issue of math font

Would it be possible to use Libertine otf font (using LuaLaTeX and, for example, package libertine for automatic settings) for everything but in math mode where I'd like to use newtxmath and its ...
1
vote
0answers
45 views

how to update language.dat.lua without tlmgr

I'm running W32TeX, and though it is also TL2015 based, it doesn't seem to include tlmgr, which seems to be required to regenerate language.dat.lua. How can I regenerate it with, say, a lua script? ...
0
votes
0answers
36 views

Compiling Beamer with Lualatex showing error

I am compiling my beamer file with Lualatex showing a lot of errors: Text line contains an invalid character mathesis and if I try to compile with pdflatex it shows the error of: Main ...
0
votes
0answers
14 views

Is there an example using tabularx, longtable and spreadtab together? [duplicate]

I can't manage to get a working table with: multi page support / page breaks using the whole page width provide a sum at the bottom of the table / last row Is there a simple example on how to do ...
9
votes
3answers
538 views

Problems with mixing Icelandic and German with LuaLaTex

So what I am trying to do is to use the letter-classic class with LuaLaTeX (This is LuaTeX, Version beta-0.80.0 (MiKTeX 2.9) (rev 5238) (format=lualatex 2015.11.10) 25 NOV 2015 09:30) as included in ...
1
vote
0answers
51 views

Using Fonts with a downloaded Template [closed]

I downloaded the deedy resume template and it came with some fonts and a .cls file I got the template to begin to typset after moving the .cls file into the folder with the .tex file, but then I get ...
4
votes
1answer
51 views

Basic comparison of macro to string in lualatex?

Still hammering away at a database problem. Mostly done, but stumped by: \documentclass{article} \begin{document} \newcommand{\testmacro}{U01} The macro testmacro equals ``U01'' \directlua{ if ...
3
votes
1answer
89 views

How to get a non-cursive minuscule kappa in \textgreek{fusik'h} (physics)?

I'm trying to write "physics" in Greek by using "textgreek". It replaces the input text "k" with the cursive "kappa", but I want the more common non-cursive minuscule kappa. ...
6
votes
1answer
400 views

TikZ - Huffman tree

I used the SimpleHuffman.lua file, placed it in the same folder as my tex file and compiled the following code ("35.8.3 How To Generate Nodes Inside an Algorithm" in pgfmanual) using LuaTeX: ...
3
votes
1answer
108 views

HowTo create a LuaLatex package

I would like to develop LuaLatex packages. I am very interested by the scripting capability of LuaLatex, so I'd like to use it as much as possible instead of Latex or Tex. Is there a "standard" or ...
2
votes
1answer
38 views

\luaexec inside \num causes errors

To me, an attractive feature in LuaTeX is the ability to effectively perform calculations directly in the document. Now say I want a command \proc that performs calculations and then formats the ...
4
votes
1answer
118 views

Is it the best or simplest way to use a lua variable in LaTeX code?

\documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode} for i = 1,10 do a = math.random(0,10) ; tex.print("--") tex.print("$\\sqrt{"..a.."}$") % <- simplest? ...
5
votes
1answer
121 views

Strange rendering bug when using LuaLaTeX, Polyglossia, Cambria/Consolas font and/or texttt

I’ve found a rather strange bug, where the letter ‘å’ is sometimes (though very rarely) incorrectly rendered when using LuaLaTex. I’ve managed to reduce it to the following minimal document exhibiting ...
2
votes
1answer
189 views

lualatex and polyglossia error “Missing number, treated as zero.”

I just happened upon the strangest error with lualatex and polyglossia. I'm trying to compile a very easy file, here goes: \documentclass[a4paper]{article} \usepackage{polyglossia} \begin{document} ...
10
votes
2answers
142 views

assign penalty to one discretionary (not all paragraph)

For a quite complex problem that would be too long to describe, I need to set different penalties for different discretionaries in the same paragraphe. It doesn't seem to be possible with pdfTeX (and ...
0
votes
0answers
23 views

Create a .doc or .docx file from XeLaTeX or LuaTex [duplicate]

I've just written up my CV into LaTeX, but I get the error `cannot use pdftex'. To combat this I've been using XeLatex to compile. However, I've come to submit my CV to one particular website to find ...
7
votes
1answer
110 views

Getting the filename of the current input from within “show_error_hook”

In the luatex reference guide, status.filename is described to return "the name of the current input file". The luatex wiki describes how to use this along with show_error_hook to produce better error ...
7
votes
1answer
156 views

Incorrect digits font with newtxmath and Luatex/Xetex (since Texlive 2015)

I used to use Luatex and a combination of the packages fontspec and newtxmath to have everything set in Libertine. However, it does not work anymore since Texlive 2015: it compiles be the digits in ...
6
votes
2answers
6k views

LuaLaTeX + fontspec: Font not found

This refers to my previous thread How to use the calibri font. I am using the Calibri font with lualatex. MWE: \documentclass[11pt,table,a4paper]{article} \usepackage{fontspec} ...
1
vote
1answer
154 views

Creating a Table using LuaLaTex

I am just trying to create a simple table in LuaLaTex that summarizes an experiment. I needed to use it (LuaLaTex) to typset my document in Times New Roman font. I am using Macbook Pro with OSX El ...
3
votes
1answer
82 views

EB Garamond and amsmath \text

On my system (OSX 10.10.5; LuaTeX, Version beta-0.80.0 (TeX Live 2015); LaTeX2e <2015/10/01> patch level 2) I run the following MWE: \documentclass{article} \usepackage{fontspec} ...
3
votes
1answer
171 views

Symbol not found error when using Lua C .so module with LuaLaTeX

I am trying to get a basic Lua C .so module working with LuaLaTeX. I am able to run the library using my local Lua interpreter just fine (lua test.lua). But when I try to load it inside LuaLaTeX, I ...
2
votes
1answer
124 views

Biblatex and Polyglossia error after TeX Live update [duplicate]

I've just updated TeX Live distribution (from 2015.37233 to 2015.38831), and now I encounter error whenever biblatex package is loaded provided that default language is Russian. Here's the minimal ...
1
vote
0answers
96 views

Lualatex and compilation speed [closed]

I use Lualatex with TexnicCenter to compile a *.tikz file, in which I read saved data from *.txt file. The file also contains \pgfplotsinvokeforeach and \addplot3 The Build process is taking too much ...
3
votes
1answer
95 views

`$U$` and `$\mathcal U$` typeset very similarly with TeX Gyre Pagella

I love TeX Gyre Pagella, and use it and the corresponding math font like so: \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre ...
8
votes
2answers
176 views

LuaLaTeX: No kerning within \operatorname when not loading lmodern package

Somewhere I read that fontspec uses Latin Modern by default, so I assumed that loading the lmodern package is not required anymore when using LuaLaTeX. But today I noticed that kerning does not seem ...
0
votes
0answers
21 views

MiKTeX - broken package combination fontspec / expl3 [duplicate]

I have some problems after installing the latest 64bit-MiKTeX as well as the latest packages through the package manager. It seems that there is a problem with the combination of fontspec and expl3 ...
2
votes
1answer
44 views

Does LuaTeX change the message in “Output Routines Part IV: Horizontal Techniques”?

In the excellent article "Output routines: examples and techniques Part IV: Horizontal techniques", David Salomon explores three techniques for dealing with communication from horizontal mode to the ...
3
votes
1answer
50 views

Printed macros from lua behave differently when entered directly in LaTeX code [duplicate]

I have some lua code that should prepare a tikz matrix of nodes similar to this answer. After having run into many issues with whitespaces, I finally got some output but it is not as expected. I ...
0
votes
0answers
93 views

Problem with TOC editing

I work with TeX Live 2015 and LuaTex. I get "Something's wrong -- perhaps a missing \item" error. I edited the TOC as suggested here (1), in order to obtain a similar graphical result. Eventhogh the ...
24
votes
2answers
522 views

Will LaTeX work on any TeX?

As I understand it, latex is simply a macro package for tex, as in tex the program, not the format. (Again, weird, but I understand LaTeX to be a format of TeX.) Does this imply that LaTeX the ...
3
votes
2answers
144 views

Change engine for “latex” command on terminal

First of all I'm working with ePiX For those who have never heard about, epix uses Latex. To compile, ePiX runs latex command on terminal. I'm always getting a message saying I've got memory limit. ...
1
vote
1answer
263 views

how to compile Lualatex from terminal?

I am writing my phd thesis now, and all these while I have used texshop in mac os X (mavericks). I have compiled in Lualatex through texshop (or even texworks) and the file compiles fine, but I have a ...
2
votes
1answer
61 views

Warning when font lacks symbol

I have a document with \usepackage{amsmath, amsfonts, amsthm} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} With ...
7
votes
1answer
139 views

Problem with interword spacing in LuaLaTeX

I have a problem with LuaLaTeX and interword spacing using fontspec. This is my MWE: \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase} ...
2
votes
1answer
113 views

Problem with fontspec and LuaLaTeX [closed]

I want to write in french, using Lualatex using TexStudio. Therefore, I need to use characters like é, è or à. As Lualatex uses UTF-8 there should not be any problem, but those characters are not ...