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)

0
votes
0answers
5 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 ...
5
votes
1answer
129 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} ...
6
votes
1answer
84 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 ...
18
votes
1answer
991 views

PDF file size with LuaLaTeX vs XeLaTeX

I have a set of one-page documents written in LaTex. The same file compiled in LuaLaTeX is about 23 times larger than when it is complied using XeLaTex (about 641 KB vs 28 kb). I tried with a couple ...
3
votes
0answers
61 views

XeLaTeX and LuaLaTeX: which is faster?

I was very impressed when I saw Ms. Lian Tze Lim and Bahari Belaton's book created in LaTeX (here is the PDF and related publications). Working with documenets with a lot of pictures, tables and ...
2
votes
1answer
90 views

ConTeXt: Substitute em-dash for double-hyphens

Background I am trying to substitute an em-dash for double-hyphens (--) whenever they occur in user-generated text. The fonts that I am using (Chivo and Gentium Basic) result in double-hyphens added ...
5
votes
0answers
50 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 ...
13
votes
1answer
160 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 * ...
22
votes
0answers
199 views
+100

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 ...
1
vote
1answer
98 views

\LaTeX macro: “Font shape `OT1/LatinModernSans(0)/m/n' undefined”

I tried compiling the following example using LuaLaTeX (LuaTeX v0.76/TeX Live 2013): \documentclass{beamer} \usepackage{fontspec} \usepackage[ngerman]{babel} \defaultfontfeatures{Ligatures=TeX} ...
3
votes
1answer
65 views

How to get the missing Angstrom symbol displayed with siunitx?

I'm currently using XITS and XITS Math with Lualatex. Everything is fine. The only problem is that for some reason, \SI{0}{\cubic\angstrom} is not working as expected: \documentclass{standalone} ...
1
vote
1answer
251 views

Cannot open Tex file - Default encoding setting (UTF-8) not working

Texmaker cannot open a .tex file. It says It seems that this file cannot be correctly decoded with the default encoding setting (UTF-8) and asks me to choose an encoding option. ISO-8859-1 and ...
4
votes
0answers
64 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 ? ...
7
votes
2answers
155 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 ...
6
votes
2answers
58 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 ...
17
votes
0answers
351 views

wxLua in LuaLaTeX

I have some problems using wxLua in LuaLateX. This works: lua simpleui.lua (print instead of tex.print) But if i try this: lualatex wx.tex it doesn't work. \documentclass{article} ...
1
vote
2answers
84 views

How can I run pdflatex on multiple .tex files on Windows 7?

I built some graphics with TikZ and pgfplots. I have put the code with the most minimal necessary preamble into a standalone document for each figure. Say I put all those files for chapter 3 (hence ...
3
votes
1answer
88 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 ...
1
vote
0answers
39 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
36 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 ...
18
votes
1answer
758 views

Letterspacing/font expansion in LuaLaTeX

I am a few months into learning LaTeX. I would like to use microtype with LuaLaTeX and I would like to obtain letter spacing for my smallcaps. I've tried to follow some of the threads on the subject ...
5
votes
2answers
151 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} ...
11
votes
2answers
988 views

fontawesome icons are getting too big using XeLaTeX

The following example must be compiled with XeLaTeX to reproduce the issue. % arara: xelatex \documentclass{article} \usepackage{fontawesome} \begin{document} Text Text \faMobilePhone\ Text Text ...
3
votes
1answer
69 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, ...
3
votes
3answers
846 views

ForwardSearch: “Cannot execute the command” when using LuaLaTeX

If I try to compile with the LuaLaTeX-compiler in TeXnicCenter with the below outputprofile-settings, there showing up this error: [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)] Cannot execute the command ...
1
vote
0answers
118 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} ...
12
votes
2answers
378 views

Get cell content from a Google doc spreadsheet using LuaTeX

I know that LuaTeX can access network resource (at least ConTeXt can). Would it be possible to get cell values in a macro, from a Google Docs spreadsheet, dynamically at compilation time, with ...
4
votes
1answer
58 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 ...
10
votes
1answer
58 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 ...
14
votes
1answer
137 views

Workaround for open lualatex bug in \scantokens?

As package author I am in need of writing a manual with lots of examples. Now I started to make heavy use of lualatex in order to speed up operations which take a long time in TeX (of my package, not ...
6
votes
0answers
34 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 ...
13
votes
3answers
389 views

Best practice - how can I get my whole document (including math) to only use font X with LuaLaTeX and fontspec?

Considering one uses math symbols in a document, it is desirable to have them all displayed in the serif font one is using for text, or in basically any font x one would like to use for this sort of ...
5
votes
1answer
97 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 ...
4
votes
1answer
87 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.)
10
votes
3answers
672 views

Which fonts can be used with *unicode-math* package?

What can i put into \setmathfont{<...>.otf} for the unicode-math package to make it all work (with XeLaTeX or LuaLaTeX)? There are several suggestions on the GitHub page of unicode-math, but ...
5
votes
1answer
83 views

Problem with \setmathfont and siunitx

I have some problem with the following code. \documentclass{minimal} \usepackage{fontspec,luatextra,unicode-math} \usepackage{icomma} \usepackage[noload=abbr]{siunitx} \sisetup{decimalsymbol=comma, ...
5
votes
3answers
66 views

Long list of tabular figures inside minipage goes off page

Using the follow MWE, I'm able to create a beautiful lists of photos on the left and a caption on the right (similarly, I could also use the sidecaption package or floats directly). MWE [LuaLaTeX]: ...
13
votes
3answers
4k views

How to properly install and use a new font with LuaLaTeX?

I have problems trying to get new fonts to work when compiling with LuaLaTeX. I'm working on Mac and use TexShop (with the MacTeX package). It goes like this: I downloaded for example the Cardo ...
18
votes
0answers
256 views

Differences regarding kerning and ligaturing when using the MacTex2013 and MacTeX2014 versions of LuaLaTeX with .ttc fonts

This posting is a follow-up to the postings Can't generate ligatures with LuaLaTeX under TeXLive 2014 when using certain fonts and LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS). I have ...
0
votes
0answers
43 views

context to run side by side with LaTeX in Windows 8 64bit

I have installed context in Windows 8 64 bit. Already I have been running MIKTEX 2.9 successfully. Now when I try to test context in CLI I get the following error message. ...
2
votes
1answer
134 views

Translating LaTeX document to XeLaTeX or LuaLaTeX

I'm writing a Thesis on the ''use of history to teach mathematics''. The first four chapters are already typed and compiled in pdfTex, I used the memoir document class. Recently I read this Lua post ...
4
votes
0answers
125 views

LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on Mac OS)

I'm probably missing something obvious. I'm using MacTeX 2014. I want to use the font Optima that ships with the Mac OS (10.8.5) -- it is a .ttc font. If I typeset the following TeX file I get no ...
48
votes
5answers
8k views

What is a simple example of something you can do with LuaTeX?

I've heard that with LuaTeX, you can embed Lua code in your document that work directly with TeX internals, making it possible to do several things that are hard to do with macros. What is a good ...
4
votes
2answers
102 views

How to debug LuaLaTeX no longer finding ttf font

I just updated texlive and now LuaLateX no longer finds two ttf fonts situated in the same folder as the .tex file. Before I updated it all worked fine. Clumsy as I am I was having a latexmk session ...
9
votes
1answer
144 views

Cover whole page with squares arranged in a “spiral”

I'm trying to cover a whole landscape A4 paper with small squares – drawn in TikZ – starting from the bottom left corner of the page and moving towards to the center of the page in a ...
1
vote
1answer
58 views

How can I specify a minimum length for my graph's edges?

I've just started to use the (new?) graphdrawing library (see section 27 of the TikZ & PGF 3.0.0). It's awesome! However, I can't seem to effect a minimum length for my graph's edges. That's ...
7
votes
1answer
70 views

Is using \addfontfeatures (much?) less efficient than defining a \newfontface?

Consider the following file: \documentclass{article} \usepackage{fontspec} \setmainfont[Numbers={Lining,Proportional},Ligatures=Common]{EB Garamond} ...
6
votes
1answer
97 views

Write unit tests for Lua in ConTeXt

I would like to write some unit tests for Lua code being used by ConTeXt, and would like to know if anyone else has done this and what may be require in setting up the framework. The Lua code in ...
2
votes
2answers
119 views

Beamer: Use Libertine and Computer Modern monospace (pdflatex vs lualatex)

I am using beamer to write a presentation. I included the libertine package to change the default font, and I am using the professionalfonts theme to avoid clashes with beamer's font settings. I ...
0
votes
0answers
51 views

nextfoot in scrlttr2

I do not understand some of the features the nextfoot variable has in the scrlttr2 KOMA-script class. \documentclass[]{scrlttr2} \pagestyle{headings} \usepackage{fontspec} \setmainfont{Linux ...