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)

4
votes
0answers
17 views

LuaLaTeX, Fontspec: Wordspacing and Letterspacing

I have a command \work which will format titles in SmallCaps and with less letter spacing. Now the funny thing: If I try to add some word spacing, too, and only for SmallCaps, it affects the whole ...
1
vote
0answers
40 views
+50

White fields in ltjsarticle class

This question is extention for other my question Replacing \fancyhdr with \titlesec in complicated design documents. When I use solution from answer to prevous question with LuaLaTeX and ltjsarticle ...
5
votes
1answer
70 views

Accessing an alternate representation of a letter in fontspec

Recently I've been trying to access a specific letter from the WatersTitlingPro-Rg font, through LuaLaTeX and fontspec. The Waters Titling Pro fonts is a small caps only font. Specifically, I'm ...
4
votes
1answer
60 views

Problem with a Lua function in a \foreach loop

I have written a Lua function to position dates in a timeline that I am drawing with TikZ. The function seems to work, but when I use it in a \foreach loop I get the following error: ! LuaTeX error ...
1
vote
0answers
29 views

LuaLaTex produces beamer slides on variable speed

Why LuaLatex produces slides with speed depending on the number of them not on the complexity (still the same). \documentclass{beamer} \usepackage{fontspec,luacode,tikz} ...
5
votes
1answer
43 views

In LuaLaTeX, how do I pass the content of an environment to Lua verbatim **Without displaying it** in a beamer frame?

In this question / answer : one pass verbatim latex material to lua, but latex displays this material by him self. If one suppress the two lines : local buf_without_end = ...
5
votes
2answers
78 views

Hard hyphens in LuaLatex

Why does not the hard hyphen “‑” work in lualatex with the package luainputenc with option utf8? With hard hyphen, I mean a hyphen, which prohibits the line to break directly after it. MWE: ...
3
votes
2answers
32 views

Lualatex error with polyglossia's \setotherlanguages and ntheorem

Consider this MWE: \documentclass[10pt,twoside,openright]{book} % http://tex.stackexchange.com/a/44701/2595 \usepackage{iftex} \ifPDFTeX \usepackage[greek,danish,english]{babel} ...
5
votes
1answer
39 views

Let fontspec handle bold font automatically

I recently installed a commercial font called Monospace 821. The font came in ttf format and I installed it as usual in a Linux machine. Problem is that when I use \textbf{Bold} the resulting ...
20
votes
3answers
221 views

How to access the last line of a paragraph with LuaTeX

Consider the following code, using traditional TeX programming that through a series of boxing and unboxing, grabs the last line of a paragraph and centers it. \documentclass{article} ...
3
votes
0answers
59 views

Tikz graphdrawing library with tree layout throws error

When I compile the following snippet \documentclass[tikz,border=0pt]{standalone} \usetikzlibrary{graphdrawing} \usetikzlibrary{graphs} \usetikzlibrary{shapes.misc} \usegdlibrary{trees} ...
10
votes
0answers
80 views

How does one retrieve \rpcode values in LuaTeX?

The \rpcode values from pdfTeX are properties of font characters, e.g., \rpcode\font 50 = 200 sets the right protrusion value for character 50 in the current font to 200. Reading chapter 7 of the ...
11
votes
0answers
81 views

What exactly is luatex's node.free deleting?

The LuaTeX manual doesn't give much information on the precise details other than saying that one needs to ensure that there aren't any dangling pointers still referencing the node (location). For ...
0
votes
0answers
16 views

Evaluating \luaexec while writing to the aux file

In the document end hook I'm trying to write \luaexec{x = 1} to the aux file, where the 1 is computed in Lua itself (and more complex in the real document, of course). MWE: \documentclass{article} ...
8
votes
0answers
35 views

How to use luatex's node.hpack so that marks, inserts and vadjusts migrate out?

TeX's hpack routine packages an hlist into a box. While doing that it looks at a global pointer adjust_tail and if that is not "null" it migrates some nodes to a separate list starting at ...
3
votes
1answer
31 views

combination of ngerman and fontspec brings a lot of errors

I was using the package ngerman and fontspec with luatex in one document in march 2014 and it worked fine. In the meanwhile, i installed a new arch linux and TeX Live. Now I get a lot of errors like ...
4
votes
0answers
56 views

LuaLaTeX pass characters without “ ” to lua

I try to pass characters to lua but I don't want to typeset the "" that are not natural in latex syntax. Here is a dummy mwe. Here is the background : \documentclass{article} ...
4
votes
0answers
66 views

Unknown TikZ/pgfplots error with external

I am trying to compile a large document (PhD thesis) and I have no problems compiling without using external, but as soon as I enable that feature, it has problems. So far I haven't found the answer ...
7
votes
1answer
64 views

\'. gives error when fontspec package is used

The following minimal example: \documentclass{article} \usepackage{fontspec} \begin{document} The logo `\TeX\'. \end{document} produces the error: ./test.tex:5: Argument of \end has an extra }. ...
4
votes
1answer
47 views

Make Notes from Lyx into Annotations on the PDF

Lyx Supports Notes. It would be great to have any notes in lyx show up as Annotations in a draft produced PDF. For example: LyX: PDF: The use case I have in mind is when showing this draft ...
0
votes
1answer
93 views

Some fonts not recognized by LuaLaTeX

I have made an Ubuntu 14.04 fresh installation on a computer installing the following: texmaker 4.1-1 texlive 2013 texlive-xetex 2013 texlive-luatex 2013 texlive-fonts-extra 2013 ...
5
votes
2answers
74 views

LuaLateX: Problem with microtype \textls and center environment

I want to use \textls to reduce letterspacing for citing works/compositions. If I use it in the titlepage inside a center environment it gets a bit messy. As in other examples, it seems like the lines ...
0
votes
1answer
89 views

Am I missing the lualatex format source?

I am trying to get lualatex to run on my MikTeX 2.9 installation. When I attempt to create the format, I get the following error message (via mo.exe): Creating the lualatex format file... ...
2
votes
1answer
53 views

LuaLaTeX and listings do not work while XeLaTex works fine

I am trying to move from XeLaTeX to LuaLaTeX. I have some listings with special delimeters (an underscore). The following MWE compiles perfectly under XeLaTex, but gives the following error under ...
3
votes
1answer
45 views

Partial Sign with Unicode Math

I have a problem with Linux Libertine and the \partial sign. I use following code, but there is no \partial sign (I left all my fonts there, but the problem is the font for range=\mathit): ...
5
votes
0answers
56 views

Reducing the size of greek letters in TeX Gyre Schola Math?

I've been experimenting with TeX Gyre Schola (and its math font), and I've noticed that the greek letters are noticeably larger than normal letters and numbers. For example, consider the following: ...
3
votes
0answers
27 views

Debug log the text returned via tex.sprint() and friends?

Is there an easy way to see what text was sent from Lua to TeX via tex.sprint(), tex.print(), and tex.write()? (e.g., print it to stdout or log it to the .log file)
2
votes
0answers
41 views

Generating an oblique (slanted) font in LuaLaTeX

With LuaLaTeX, I am using an OpenType font family (Dolly Pro) with roman small caps but no italic small caps. My block quote style uses italics, which I like, but one of my quotations has the ...
9
votes
1answer
77 views

Interactive lualatex compiling

I have a made document using LuaLaTeX with some constants I have to change each time regarding about the circumstances. Is there a way that LuaLaTeX open an interactive window to ask me the value for ...
4
votes
0answers
32 views

Error when using selnolig and lua-check-hyphen: attempt to index global 'debug' (a boolean value)

\documentclass{article} \usepackage{fontspec} % required for selnolig \usepackage{selnolig} \usepackage{lua-check-hyphen} \begin{document} Foo \end{document} Using my two favorite lualatex packages ...
8
votes
1answer
135 views

LuaLaTeX for dummies: how to add LaTeX macros into \directlua?

How to make the following code to compile? \documentclass{article} \newcommand*{\mycommand}{\directlua{for i = 1, 10 do tex.sprint(i\hskip1cm) end}} %does not work ...
5
votes
0answers
158 views

XeLaTeX and LuaLaTeX: which is faster?

Beacuse I typeset in Japanese, I don't use LaTeX and now want to know which compiles faster: XeLaTeX or LuaTeX? Is Lua language allows to make the compile faster?
16
votes
1answer
268 views

LuaLaTeX for dummies: basic directlua use

I'm trying to understand the basics of lua programming within LaTeX. I have this simple function in a file called luatest.lua: function fact (n) if n == 0 then return 1 else return n * ...
4
votes
0answers
70 views

Is it the best or simpliest 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.."}$") % <- simpliest ? ...
6
votes
2answers
73 views

Translation not working when using siunitx + glossaries + polyglossia + xindy + LuaLaTeX

I'm trying to move to a modern LaTeX setup, by using LuaLaTex, polyglossia, glossaries + xindy. When I create a German document with a glossary, the title of the glossary correctly changes to ...
35
votes
1answer
452 views

Replacement(s) for TeX's paragraph builder using LuaTeX

The LuaTeX engine provides a callback that allows you to replace the built-in paragraph builder by your own algorithm. My question is twofold: does there exist a lua implementation that fully (or ...
8
votes
1answer
186 views

How to fix this interaction bug between pgfplots and babel-french module?

Here is an example of a minimum non-working case which is generating the bug: \documentclass{standalone} \usepackage{luatextra} \usepackage[frenchb]{babel} \usepackage{pgfplots} \begin{document} ...
7
votes
2answers
180 views

Vertically align nodes in tikz graph

I have taken to drawing automata in TikZ, as it will position the nodes for me, and generally requires very little post-processing in terms of options. I know I can force nodes to be in the same ...
2
votes
0answers
54 views

Precompiled header with lualatex and unicode-math

Consider the following: preamble.tex: \documentclass{article} \usepackage{unicode-math} \setmathfont{Cambria Math} \def\preambleloaded{Precompiled preamble loaded.} main.tex ...
1
vote
0answers
41 views

Index not printing after files are removed

I'm using Sublime Text with the LaTexTools package to build from within Sublime. Everything was working fine on my documents, until today, when I decided to remove all LaTeX temporary files for one of ...
3
votes
1answer
131 views

Trying to use Luatex: luatex.fmt not found, etex.ini not found

I want to disclaim that I am very inexperienced with latex. I am using Texmaker 4.3 with Miktex 2.9 on Windows 7. I am writing an article (let's call it "test") which includes several packages to ...
5
votes
0answers
76 views

xdvipdfmx parse error when using particular font with fontspec

I am using the font IM FELL English PRO (open-source otf here) via the fontspec package, and when I tried typesetting the characters \"{a}, \'{n} or \"{o}, I got this error: xdvipdfmx:fatal: Type2 ...
5
votes
2answers
181 views

Using Iwona as a math font with lualatex

I would like to use Iwona as a math font, but this setup doesn't get all math symbols right. (Multiline bracket, the sum symbol, etc.) \setmathfont{Iwona} \setmathfont[range=\mathup] {Iwona} ...
3
votes
1answer
90 views

port this template to lualatex

I am new to lualatex and I am trying to port the template at this link http://www.lorenzopantieri.net/LaTeX_files/TesiClassica.zip from pdflatex to lualatex. This template uses komascript, ...
1
vote
0answers
159 views

problem with LuaLaTeX: no file found

I am trying to experiment with lualatex but I cannot make it work properly My preamble is: \documentclass[11pt,a4paper]{article} \usepackage[greek]{polyglossia} \usepackage[utf8x]{inputenc} ...
5
votes
1answer
93 views

Using LuaTeX, HSRM beamer theme, fontspec says DANTE font not found. .sty file has no reference to DANTE

I am attempting to modify the HSRM beamer theme found here. After switching from pdftex to LuaTex and purchasing the Flama fonts, I thought I would be ready to go. However, that seems not to be the ...
6
votes
0answers
43 views

Misplaced Accents in Cyrillic Text

In educational material for the Russian language and linguistic literature the need to put accents on Cyrillic vowels often arises. However when I tried to do this with luaLaTeX the accents where ...
11
votes
1answer
63 views

luatex and starting TeX macros which handle new line characters

This here is actually some kind of isolated follow-up question to Workaround for open lualatex bug in \scantokens? . I tried to use tex.print("<some tex macro>{<something with a newline ...
4
votes
1answer
96 views

how to pass the content of the TeX variable to Lua

How can I pass the content of the TeX variable \jobname to a Lua variable? (I am using LuaLaTeX with the luacode package.)
5
votes
1answer
121 views

Compile Error: lualatex with PSTricks

I compile the file below with lualatex --shell-escape but I get the error : ! Undefined control sequence. l.14 \savedata ...