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
1answer
18 views

Good lua code in .tex doesn't work in .sty?

I have some luacode in a .tex file that works fines, but does't in a .sty file -- with this error message : Runaway argument? ! File ended while scanning use of \luacode@grab@lines. \par ...
5
votes
1answer
45 views

Linguex bad spacing between number and examples with certain values above 99 when using old style numbers

When using linguex example numbering packing, if I use \defaultfontfeatures{Numbers=OldStyle} with xetex or luatex, then with certain example numbers exceeding 99, there is no spacing between the ...
11
votes
1answer
99 views

why lualatex gives erorr “Too many open files” but pdflatex does not on same latex file?

Using TL 2015 on Linux. I have a latex file which includes graphics, all in pdf format. All the images are included using the call ...
0
votes
0answers
134 views

“Kernel_Property unknown”… The key property '.choice_code:n' [on hold]

I was just using some primary versions of MikTeX 2.9 and had below error within using both LuaLaTeX & XeLaTeX: `Enter file name: C:\Program Files\MiKTeX 2.9.5105>lualatex.exe ...
4
votes
3answers
194 views

LuaLaTeX : write latex “commands” to file

I made a randomly chosen quiz machine using LuaLaTeX and beamer for audience part that produce a pdf containning one frame per question, one slide per second to show the count down: it make a pdf with ...
0
votes
0answers
40 views

Unable to add a XeLaTeX-based .sty file [on hold]

I am going to use this XeLaTeX (or LuaLaTeX) based template to build a CV. The org-preamble-xelatex.sty file is necessary, which has been located within the corresponding directory just next to the ...
1
vote
1answer
74 views

Tikz Externalize, Lualatex through pdflatex and big data

I am plotting data from an infrared camera with pgfplots in an image as discribed and solved under this topic. A 194x194 data matrix is the input. I am compiling the document with lualatex through ...
3
votes
0answers
24 views

Incorrect rendering for Khmer using LuaLaTeX

When I compile the following MWE with XeLaTeX, it works pretty fine. But when I compile with LuaLaTeX some Khmer vowels are missing. Does LuaLaTeX support Khmer Unicode? Or is this a problem caused ...
4
votes
1answer
53 views

\thinspace/\, inserts no space

In my greek-german document, the second \, of the combination \,--\, doesn't actually insert a space. It rather looks as if I wrote just \,-- (Often, the same occurs with other languages and fonts, ...
1
vote
0answers
48 views

Substitute a character by another one (Lualatex)

The lowercase figures of Adobe Garamond Pro are very nice, but the 1 can be confusing: Is this 11 (as it should be) or 2 in Roman? I would like to replace automatically this lowercase 1 with ...
41
votes
1answer
931 views

Why do PDF files produced by pdflatex not pass validation?

Why do simple PDF files compiled with pdflatex contain so many PDF errors? The simplest example I can see is "Hello World!" that once compiled, \documentclass{report} \begin{document} Hello ...
0
votes
0answers
15 views

directlua : misinterpretation of % as latex comments [duplicate]

What is the good way to avoid LaTeX interprete % as comments in \directlua ? Or in this case one must use an auxiliary file ?
1
vote
1answer
23 views

LuaLaTeX : pass a list to lua as macro parameter, but not seen as a table

I try to pass a list to lua as LaTeX parameter but can not make it interpreted as a table by lua. if "#1" I get : a,b,c,d,e – n 1 –, table of one entry if #1 I get : n 5 – ?? Even with \unexpanded ...
3
votes
1answer
18 views

LuaLaTeX : passing test condition n~=3 to lua as macro parameter problem

I try to pass lua test condition as latex macro parameter and have a problem in case of ~= with the next error message. How to avoid that. ! LuaTeX error [\directlua]:1: invalid escape sequence ...
2
votes
0answers
38 views

Convert LaTeX to SymPy format

I'm trying to convert LaTeX to SymPy understandable format and I feel it's hard to comply all conditions. So Im wondering if you can suggest any tools, free or paid, that will be great. What I'm ...
0
votes
0answers
44 views

How can i obtain youtube glyph using font awsome

I would like to use font awsome glyphs to link social media. \documentclass[11pt,a4paper,hidelinks]{article} \usepackage{fontspec} \usepackage{verdana} \usepackage{fontawesome} \begin{document} ...
0
votes
0answers
42 views

CV template run time error in TeXstudio

i am trying to make cv by using LaTex template but there is an error when i start compilation. Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX to ...
18
votes
2answers
2k views

How do I get a list of all available fonts for luaotfload?

luaotfload uses an internal database that gets updated with mkluatexfontdb. So it knows about a lot of fonts installed on my computer. How can I query this database? Something like luatexfontdb ...
2
votes
0answers
20 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 ...
5
votes
0answers
60 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 ...
5
votes
1answer
39 views

Circumflex over Numeral with fontspec

For a music analysis paper I'm working on, I need to enter an arabic numeral with a circumflex over it to represent a musical scale degree. Normally, I can just use \^3, but as soon as I load the ...
6
votes
2answers
121 views

How to get proper placed closing German doublequotes using lua|xelatex and Garamond Premier Pro Opticals (Regular)?

Using Adobe's Garamond Premier Pro Opticals (latest version: 2.104) the closing German doublequotes are set exactly above (instead of behind) a sentence's closing dot (e.g. questionmark is not ...
0
votes
0answers
25 views

Lualatex paths with spaces and backward slashes

If I run lualatex (version beta-0.80.0 (TeX Live 2015/W32TeX) (rev 5238)) as follows: lualatex "D:\Documents\index Spaces" I get an error (directly at the start of compiling) ! Emergency stop. ...
6
votes
1answer
68 views

Is it possible, in LuaTeX, to replace text from the input buffer but only inside math mode?

I am trying to create a Lua script that lets me replace all instances of -> inside my equations with \rightarrow. I found this answer that suggests a hack involving a process_input_buffer callback: ...
91
votes
9answers
10k views

Drawbacks of XeTeX/LuaTeX

Currently I use pdflatex to process my documents, but I want to be with the cool kids and switch to XeTeX or LuaTeX. My documents are moderately multilingual (main text in portuguese or english, ...
19
votes
1answer
217 views

LuaTeX: Wrong/missing italic correction in TeXLive 2015 vs 2014

Italic correction for OTF math fonts seems to be broken in LuaTeX in TL15. MWE: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} \begin{equation} ...
7
votes
1answer
103 views

LuaTeX unicode escape sequence in an ASCII file (for graceful degradation)

I have a reusable component in which I would like to include a few unicode symbols. I use LuaLaTeX. However, I want the file to fail gracefully (it should detect running under something else and e.g. ...
15
votes
2answers
249 views

Is it possible to view the latex code after Lua expansion is made?

When using Lua code inside Latex file, where Lua code sends to Tex Latex code to insert into the document at the location the lua code is made, it will be useful to look at the content of Latex file ...
1
vote
2answers
67 views

Media9 compiles but embedded video gives “Unable to connect to content” “TypeError - Error #1009”

I have a beamer presentation that I am creating and I'm trying to embed a video clip. I'm using the media9 package and having a ton of issues with it. I've gone through the documentation with a ...
0
votes
0answers
14 views

LuaTeX equivalent of \XeTeXglyph [duplicate]

Does LuaTeX have an equivalent of \XeTeXglyph? Or better yet, is there a command to select a glyph by number that works both with xelatex and lualatex? I did find a handmade version in German, but ...
2
votes
1answer
50 views

How to use luacode* to eliminate need to escape “\”?

I am struggling trying to understand how to actually use luacode* environment, so that I do not have to escape all the \ characters in the strings that Lua builds before sending to Tex. The whole ...
12
votes
1answer
328 views

Can LuaTeX create HTML?

I heard that LuaTeX provides access to the internals of TeX. So, I have two questions in this regard: Is it possible to modify the output routine with LuaTeX so that HTML is produced instead of DVI ...
9
votes
2answers
291 views

How to use punctuation marks in LuaLaTeX with unicode-math?

I also posts this here: http://texwelt.de/wissen/fragen/3000/interpunktion-in-lualatex-mit-unicode-math-von-hauptschriftart. The problem is that I want to have the \period symbol (also range="002E ...
2
votes
1answer
57 views

How to insert Bengali text in IEEE conference paper?

I am writing a paper for an IEEE conference using IEEEtran.cls. The primary language of the paper is English but my work deals with Bengali language. I want to know how do I insert some Bengali words ...
11
votes
2answers
772 views

How can I enable italic correction for LuaTeX?

LuaTeX ignores mathematical italic correction by default, as noted by Khaled Hosny. This leads to some awful errors when using some alphabet which is very slanted, like XITS' mathematical script ...
4
votes
3answers
109 views

Problem printing LaTeX from lua in lualatex

I am having difficulty printing LaTeX from a lua function in a LaTeX document processed with lualatex (version 0.70.2). I have a sample that works (if I remove all newlines from the code) and a case ...
0
votes
1answer
25 views

How to insert unicode text in IEEE paper? [duplicate]

I am writing a paper for IEEE conference. I would like to know how to insert some unicode text into the paper. The primary language of the paper is English.
3
votes
1answer
43 views

Can Luatex (or latex) detect presence of non-latin1 character in string?

Using Luatex Unicode, I would like to detect whether or not a string contains any characters outside the Latin-1 set. If it does, then I would like to fork. Something like this: ...
3
votes
1answer
53 views

pgfplots external with large dataset (lualatex?)

I have fairly large datasets with densely strucutred data that i cant downsampe much without loosing structure. I use TexMaker on Ubuntu 14.04LTS. I use \usepackage{tikz,pgfplots,pgfplotstable} ...
2
votes
1answer
43 views

LuaLaTeX luaotfload: LuaTeX error: stack overflow (too many arguments)

As I was trying to compile a document with LuaLaTex, which used to compile well before, lualatex finished on an error: luaotfload | db : Font names database not found, generating new one. luaotfload ...
12
votes
1answer
126 views

hanging punctuation with microtype and luaLaTeX

I want to get this style of hanging punctuation: Quotation marks «...» „...“, brackets (...) [...] {...} and bullets are put beyond the left margin. Quotation marks, brackets, periods, ...
13
votes
3answers
15k views

Problem while compiling friggeri CV template with: ' fontspec error: “font-not-found”'

I have somme problem while I'm trying to compile template CV from: http://www.latextemplates.com/template/friggeri-resume-cv . I have install texlive-full package on Ubuntu and tryied to compiled this ...
14
votes
1answer
152 views

Ligatures are not used in OpenType maths families?

The appended plain TeX example shows three cases: maths alphabets \rm, \bf, \it using plain TeX setup similarly maths alphabets loaded from "classical" Latin Modern fonts similarly maths alphabets ...
2
votes
0answers
35 views

Loading system (OTF/TTF) fonts from plain TeX with LuaTeX [duplicate]

In XeTeX, I can set up a font pretty straightforwardly with: \font\foo="Minion Pro" at 10pt I don't quite see how to do it. This question suggests that the answer is "use luaotfload.sty." Is that ...
2
votes
0answers
22 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 ...
8
votes
2answers
102 views

Latin text not hyphenated at all with LuaLaTeX and polyglossia

I recently noticed that there are numerous under- and overfull hboxes in the document I'm working on. Further inspection revealed that such problems almost always arose when there was Latin text ...
6
votes
1answer
370 views

Math spacing in TeX Gyre Pagella

The spacing in the following output looks off to me. In particular, the integral symbol has not grown to accommodate the height of the integrand, the spacing in the fraction seems large, and the ...
0
votes
0answers
30 views

Change \emph to swash in fontspec

I read this post Activate swash or alternate for Italic only about swash and \emph command. Reading comments I see that \emph just chooses between \textit and \textrm depending on the slope of the ...
3
votes
1answer
47 views

Erratic behavior of mdframed environment right after headings

First of all, I have seen and read this question it appears to be a different albeit potentially related issue. I'm using mdframed 1.9b from 2013 with LuaLaTeX. Now the problem I encounter can be ...
0
votes
1answer
180 views

Using the "use a build subdirectory for output files' option in TeXMaker in combination with LuaLaTeX

I want to use LuaLaTeX since I have some quite large .tikz files, but when I do so TeXMaker does not put the output files in the 'build' directory like it would do if I use PdfLaTeX. I find the build ...