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
15 views

Can't get oldstyle figures in url with lualatex

The following works with xelatex: \documentclass{article} \usepackage{url} \urlstyle{same} \usepackage{fontspec} \setmainfont{Libertine Serif}[Numbers = {OldStyle, Proportional}] ...
3
votes
0answers
51 views

Unable to change font with ModernCV

I've been trying to change the font with modernCV for quite a while now, but nothing seems to work. I'm using LuaTex. To start with, I tried changing it from sans to roman, although the font changes, ...
2
votes
2answers
28 views

Typeset output from Maxima using input{}, specifically left justify

First of all, apologies if there is an answer for this already. I'm outputting symbolic results from Maxima using tex(<output>,"filename")$, which leaves me with an expression with $$ on each ...
11
votes
2answers
597 views

Availability of LaTeX packages' functionality in ConTeXt, XeTeX, and LuaTeX

I am considering trying out ConTeXt, XeTeX, and LuaTeX, but one concern of mine is the fact that I am using a large number of LaTeX packages. There are a number of questions comparing these TeX ...
39
votes
0answers
2k views
+50

Speeding up compilation using precompiled preamble with LuaTeX

Compiling my documents with lualatex takes quite long. I have a complex preamble, and I noticed that it takes long to process this part of the file. Today, I came across this website, which proposes ...
7
votes
1answer
111 views

Combine kerning, small caps, and tracking in luatex

As is known, luatex requires the fontspec option Renderer = Basic in order to display small caps when microtype's tracking = true is used. \documentclass{article} \usepackage[tracking = ...
280
votes
5answers
47k views

Differences between LuaTeX, ConTeXt and XeTeX

I’m interested in the differences and commonalities between the “new” (La)TeX processors: LuaTeX, XeTeX, and ConTeXt. Personally, I’ve only used XeTeX so far and without having the time to try out ...
1
vote
1answer
59 views

Which flavor of latex to use? LuaTeX, XeLaTeX or LaTeX? [duplicate]

When I started using TeX, it was easy to build. Today I discovered that I can use different flavor of LaTeX to build my (La)TeX files. Is there a general rule of which flavor I should consider for a ...
8
votes
1answer
47 views

Context sensitive glyph appears even when hyphenation removes the context

The Alegreya font has a pretty clever feature by which it substitutes the regular f glyph with a variant that has a longer cross stroke when the f is followed by t. The result is that the two cross ...
1
vote
2answers
62 views

Substitute one glyph for an alternate glyph of another stylistic set

In LuaTeX, I want to do the following: Having a text in the standard stylistic set of the font, but for a specific letter instead of having the glyph of the standard stylistic set, having it ...
5
votes
1answer
76 views

LuaLaTeX: How to use a \char directive inside a string.gsub function?

Consider the following MWE: % !TEX TS-program = lualatex \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=NoCommon]{Latin Modern Roman} \usepackage{luacode,luatexbase} ...
1
vote
1answer
49 views

Right-to-left script with pdfLaTeX, LuaLaTex

Is there any reasonable, generic way (i.e. not only Arabic, or only Farsi) to write RTL LaTeX documents (or even bidi) and compile them with pdfTeX or LuaTex? In ConTeXt, we can use \righttoleft{my ...
4
votes
0answers
106 views

lualatex: Error when loading a font from a relative path

I'm trying to load a .ttf from lualatex, which works fine when I place the .ttf in the same folder as the .tex file. However, for my project structure it would be beneficial to store .ttf files in a ...
4
votes
1answer
35 views

Preamble works in .tex file but not in .sty file

I have a question concerning .sty files. I often use the same preamble in my latex documents and so I wanted to put it into a .sty file. I started with the first few lines, but it already does not ...
1
vote
0answers
33 views

Open PDF Viewer to Edit Location?

Some LaTeX tools such as texmaker open the PDF viewer to the last modified location after compilation. To clarify, I edit tex source, compile, and the PDF viewer automatically navigates to the ...
4
votes
3answers
120 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 ...
3
votes
1answer
46 views

TikZ: Drawing directed trees using tree layout, child{…}-syntax and lualatex

There seems to be no way to draw directed edges using the new (?) tree graph layout and the child-syntax. \documentclass{standalone} \usepackage{tikz} \usepackage{lmodern} ...
5
votes
0answers
55 views

ZWJ in LuaTeX prints a bar

The following document prints in XeTeX the medial form of the arabic letter, thanks to the two ZWJ characters ("200D). \documentclass{article} \usepackage{fontspec} ...
17
votes
4answers
441 views

lua(la)tex vs pdf(la)tex speed in texlive 2015

I know similar questions have been asked about lua*tex speed in years past. But now it's 2015, and according to wikipedia, lua*tex is the designated successor for pdf*tex. my hopes for lua*tex is ...
0
votes
0answers
20 views

Correctly handling spaces that occur after a user defined command [duplicate]

I am using LuaLaTeX for a manual and I am running into a spacing issue I am not sure how to resolve. I defined a new command that is simply used to make some text bold. However, I have found that this ...
10
votes
1answer
2k views

textls breaks smallcaps with luatex

I'm switching a code to LuaTex from XeTeX. In XeTeX, I had a combination of tracking and small caps using LetterSpace and WordSpace parameters in fontspec calls, but these are not supported in with ...
3
votes
0answers
37 views

Angle brackets with commath and Asana Math too large (or small)

I want to set bra-ket equations in my document, which uses Asana Math (with lualatex, fontspec and unicode-math). commath is also a requirement for certain stuff. However, in this specific ...
4
votes
1answer
157 views

How can I use OpenType Collection font with fontspec package and LuaTeX?

Remark: I have accepted Herbert's answer because I'm now able to use Source Han Code JP by utilizing OTF fonts at the moment. However, that might not be a true solution to the conflict between ...
3
votes
1answer
39 views

fontspec+polyglossia… lack of spaces before punctuation marks (French) in standalone and dinbrief

I fail to get Lualatex to properly typeset punctuation marks for French when using the classes standalone or dinbrief. In this minimal example I would expect to see spaces before the colon and before ...
3
votes
1answer
60 views

Lualatex : how to avoid this “unnatural” \\

I have a lua function to withch I want to pass some extra optional latex code (basycally a macro with a parameter, macro can change, parameter too). I have to double backslash the name of the macro, I ...
1
vote
0answers
29 views

context fails due to no return code

Running Fedora22 here, I have cloned https://github.com/mszep/pandoc_resume.git to give it a try and ran make. It fails with the context command: $ context resume.tex mtx-context | run 1: ...
1
vote
2answers
82 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 ...
3
votes
1answer
36 views

Changing biblatex's sorting within the document

I am using multiple refsections in my document and I need to sort the respective bibliographies differently. E.g., let's say I want one refsection to be as ...
15
votes
2answers
3k views

How do I change the font size in LuaLaTeX?

\documentclass{minimal} \usepackage[paperheight = 140mm,% comprimento paperwidth = 200mm,% altura margin = 10mm % tamanho da margem ]{geometry} ...
25
votes
1answer
434 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 MacTeX2014 and MacTeX2015 when using certain fonts and LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on ...
15
votes
1answer
396 views

Can't generate ligatures with LuaLaTeX under MacTeX2014 and MacTeX2015 when using certain fonts

(Remark: This question was posted originally when the big news, TeX-wise, was the impending transition from TeXLive2013 to TeXLive2014. Since the issue identified in this posting persists in ...
0
votes
1answer
41 views

How to display italics (obliques) with SourceSans Pro?

I'm working in a document with lualatex where I want to use the Adobe Source family: Source Sans Pro, Source Serif Pro and Source Code Pro. My problem is that Source Serif Pro does not contain ...
0
votes
0answers
21 views

Lualatex french fr_FR.utf8 locale problems

In the mwe below, if I set the lua locale, I have warnings such as : LuaTeX warning (file /usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map): invalid entry for ...
4
votes
1answer
96 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
57 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 ...
14
votes
1answer
134 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 ...
4
votes
3answers
213 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 ...
1
vote
1answer
104 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
27 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
54 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
52 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 ...
43
votes
1answer
1k 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
32 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
22 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
49 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
47 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
83 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
21 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 ...