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)

3
votes
1answer
30 views

Is cyrillic actually missing in LinLibertine monospace?

If you consider this MWE, then for me lualatex does not display texttt{Привет, мир!} but non-monospaced cyrillic text is displayed fine. \documentclass[notitlepage,oneside]{article} ...
4
votes
0answers
66 views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
4
votes
1answer
76 views

Use specific non-unicode character in lualatex

I've looked everywhere for an answer to this question, but none could answer this specific one: I have MinionMath font (from typoma.com, MinionMath-Regular.otf) and I want to use unicode f3a0f (under ...
7
votes
1answer
140 views

How to have Helvetica or helvet font with lualatex having similar look as with pdflatex?

Continuing the migration to lualatex, how to have the same aspect for sans serif fonts in lualatex as with pdflatex ? Is there something I haven't install or is it the wrong commands ? ...
15
votes
3answers
484 views

Lualatex : € as a utf8 character is not recognized : why?

I need to include some tex files as parts of a more global project. Some of this global projects have to be compiled with pdflatex, some others with lualatex, but the parts are the same. All this part ...
21
votes
0answers
181 views
+100

Best Practices for Lua Modules

In the Lua world Lua Modules are installed using LuaRocks. With LuaTeX these modules are normally installed in the scripts folder (under MikTeX windows). What tools are available for downloading and ...
5
votes
0answers
61 views

Letterspacing via microtype vs fontspec (in LuaLaTeX)

I've just realised that I can get somewhat similar letterspacing effects using either the microtype or fontspec packages; for example: \documentclass{article} \usepackage{fontspec} ...
1
vote
1answer
108 views

fontspec – sans-serif as main font?

fontspec defines the commands \setmainfont[font features]{font name} \setsansfont[font features]{font name} \setmonofont[font features]{font name} to set the document's default fonts. However, if I ...
20
votes
1answer
149 views

How to delay a command execution until the next hmode?

I want to write an environment which adds a marginnote at the begin. The problem is that I can't control the content of the enviroment and so the placement of the marginnote varies a lot. How could I ...
0
votes
0answers
30 views

The quote symbol in LuaLatex [duplicate]

I have a document which are previously compiled with regular pdflatex with \usepackage{times}, the typographic quote symbols are generated correctly as: And once I started to use LuaLatex with: ...
5
votes
0answers
40 views

LuaTeX: Line break problem with microtype + geometry (bindingoffset) [duplicate]

I have a problem with the combination LuaTeX + package microtype + option bindingoffset from the geometry package when typesetting the following example: \documentclass[11pt,a4paper]{article} ...
1
vote
0answers
52 views

Bold and sans serif at once with fontspec and LuaLaTeX

As you know, the code like \sffamily{\bfseries{...}} gives bold and serif font at once. If to use fontspec (luatexja-fontspec in my case) it is not enough just to define bold and sans serif fonts. If ...
5
votes
1answer
130 views

Lualatex capacity exceeded with Gb's of free RAM

I'm trying to compile dense graphs generated my matlab2tikz (file size ~ 50Mb). I'm running lualatex and externalising with lualatex \tikzset{external/system call={lualatex ...
4
votes
3answers
43 views

ConTeXt system font search path

I read from the official manual (http://wiki.contextgarden.net/Fonts_in_LuaTex#How_LuaTeX_handles_system_fonts) that I need to export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts" to specify where ...
6
votes
1answer
68 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 ...
2
votes
1answer
85 views

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
90 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
73 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
36 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
48 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
91 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
48 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
47 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
235 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
96 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
85 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
89 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 ...
1
vote
0answers
24 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
39 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
40 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
60 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
99 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
70 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
69 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
143 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
97 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
100 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
70 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
51 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): ...
6
votes
1answer
89 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
29 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
1answer
77 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
78 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 ...
5
votes
0answers
39 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
169 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
175 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
292 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
76 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
99 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
461 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 ...