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)

39
votes
1answer
2k views

How to suppress a “Rare” ligature that pre-empts a “Common” ligature for the same character pair?

In several documents I'm creating with LuaLaTeX (using MacTeX2012 on a Mac that's running MacOS X 10.7.5), I primarily use the Adobe-issued font Garamond Premier Pro as the main text font. I use this ...
18
votes
3answers
1k views

Conflict between microtype, LuaLaTeX, and otf fonts when typesetting material in small-caps

I'm using the microtype package (microtype beta 2.5 build 08) to modify my document and I'd like to retain its functionality across all font shapes with the exception of small-caps (\scshape). How do ...
9
votes
1answer
841 views

Problems with \bm and LuaLaTeX

I recently started using LuaLaTeX (after years of just pdflatex) and I seem to be having trouble with the bm package. For example, when I try to compile the simple document: \documentclass[12pt]{...
9
votes
1answer
1k views

Speeding up latex/lua/tikz

I have a rather large LaTeX document in that it generates a lot of LaTeX code using lua (small .tex file on disk but large amount of generated LaTeX code). It is very slow to compile and takes about 1 ...
29
votes
3answers
1k views

Create bitmap within TeX file

I'd like to create a bitmap (black and white) from within LuaTeX (or pdfTeX) and rescale it afterwards. For example (a 4x4 bitmap) could be made by \makebitmap{0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0} I ...
7
votes
2answers
5k views

Changing typesetting engine from pdfLaTeX to LuaTeX in TeXnicCenter

How does one change the typesetting engine from pdfLaTeX to LuaTeX in TeXnicCenter? Is it sufficient to just change the path to the .exe in Build->Define Output Profiles?
6
votes
0answers
103 views

Differing hyphenation in xelatex and lualatex [duplicate]

Possible Duplicate: lualatex and line breaks after em-dashes I am working on a manuscript that can be compiled with either with xelatex or lualatex. The PDF output from xelatex looks better ...
5
votes
1answer
1k views

How to use otf fonts correctly?

I'm using Linux. I'd discovered that is possible to run lualatex and use my system fonts. Well, I'm trying to see how they look like. Here is my sample: \documentclass[11pt,a4paper]{amsart} \...
56
votes
1answer
5k views

Frequently loaded packages: Differences between XeLaTeX and LuaLaTeX

Adding the missing member to pdfLaTeX vs. XeLaTeX and pdfLaTeX vs. LuaLaTeX, here's the last of the big three: XeLaTeX vs. LuaLaTeX. Where would a typical template for XeLaTeX differ from one for ...
1
vote
0answers
45 views

Footnote mark alignment with italic text [duplicate]

Possible Duplicate: superscripts with xelatex? (footnotes, natbib) I'm adding a footnote to a sentence that is italicized, and the placement of the footnote mark seemed to be off. I'm guessing ...
7
votes
1answer
1k views

xelatex hangs when using fontspec

I'm using TexStudio 2.5.1 on Windows 7 with MiKTeX. The following brief .tex file will cause xelatex to hang: \documentclass[12pt]{article} \usepackage{fontspec} \begin{document} Test \end{document} ...
5
votes
1answer
584 views

Sawasdee Font in Beamer Poster

I'm trying to use the "Sawasdee" font in a beamer poster (installed as a TrueType font from fonts-tlwg-sawasdee ubuntu package). I can activate it in a regular (scractl) document by using \usepackage{...
5
votes
1answer
354 views

Using savetrees with LuaLaTeX

Apparently I can't use savetrees with lualatex - is there another way to expand the writable area to the whole page (for US-letter currently, I think other people are interested in A4)? I get this ...
5
votes
3answers
516 views

Changing numbers font features while changing shape

I am writing a document with the main font set up with old numbers, but I would like to have the "normal" style in the tables. This works but one particular table has some of the numbers in italic and ...
6
votes
2answers
379 views

System-wide feature file in lualatex

I have a font (Dolly) with f_i and f_l ligatures, which requires a feature file to make them work. Everything works fine using the following: # dolly.fea languagesystem DFLT dflt; languagesystem ...
7
votes
2answers
760 views

XeTeX and Luatex fail to display correctly biblical hebrew fonts

My question is related to both XeTeX and LuaTeX; both fail to display correctly biblical hebrew fonts. More precisely, the text is truncated at some point, and the nikud (meaning something like ...
0
votes
0answers
56 views

Problems with largesymbols in mathptmx and LuaLaTeX [duplicate]

Possible Duplicate: problem compiling some ‘math’ using LuaLaTeX This is a MWE \documentclass{minimal} \usepackage{mathptmx} \usepackage{amsmath} \usepackage{lualatex-math} \usepackage{...
7
votes
2answers
444 views

l3names error in lualatex (\reserveinserts{32})

I have the following 'test file' in which I am working, works without problems when compiling with '(La/Xe/pdf) TeX' but throws an error when compiling with 'LuaLaTeX': Package: l3names 2012/09/24 ...
11
votes
1answer
868 views

How to generate compounded diacritical fonts for Sanskrit with XeTeX and LuaTeX?

I'm trying to use diacritical marks for Sanskrit with a font that does not natively support all the marks (Minion Pro). So they are compounded somehow by XeTeX. This works almost fine in using: \...
15
votes
2answers
734 views

Bar plots in sans serif font

I want to typeset my bar plots with a sans serif font (using LuaTeX). I tried many options that I found searching the manual and the internet. None of them solved my problem---using different fonts ...
13
votes
1answer
502 views

fontspec: what does Renderer=Basic do?

I'm writing a document using LuaLaTeX on Windows, using Arial (please do not comment on that) as its main font with: \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont[Renderer=...
7
votes
2answers
377 views

btex and etex in luamplib labels

I've been experimenting with METAPOST and in particular with luamplib. I found that I couldn't have tex typeset labels with the btex/etex construct as apparently is possible with straight up METAPOST. ...
10
votes
1answer
298 views

querying whether a font feature has been activated via a fontspec command

A LaTeX package I'm currently writing makes use of -- and definitely requires -- some of the power of LuaLaTeX. I would like to make my package's user interface -- in particular, the options that need ...
9
votes
1answer
302 views

How to raise a LaTeX warning from within Lua code?

I want to raise a warning from within Lua code. With advice from the LuaTeX wiki and LaTeX 2𝜀 for class and package writers, I arrived at the following (working) solution: \documentclass{article} \...
4
votes
1answer
395 views

subscript is set too low in math-mode with xits-math

I use unicode-math with xits-math as math font and asana-math for math double-struck symbols. I compile with lualatex, and my packages are from TeXlive 2011. Now, when use asana-math mixed with xits, ...
8
votes
1answer
529 views

Fix message about outdated xelatex

I'm a new to (La)Tex. The problem I'm having it that every output document (pdf) starts with Your xelatex format appears to be outdated!Please update your system and recreate it with fmtutil. I'...
57
votes
2answers
8k views

microtype settings for dummies

More than a year ago, a friend of mine was totally excited about microtype features in LaTeX. He was talking about it quite a bit and then said to me: "Show me your document, let me add some lines of ...
5
votes
1answer
479 views

\settowidth in preamble wrong with fontspec+lualatex w/ MWE

I am getting some strange behaviour using luaLaTeX and a rather simple command definition. I am using TeXLive 2012, Linux x86_64. When \settowidth is used in the preamble to compute the width of some ...
3
votes
1answer
906 views

Problem with fontspec and EBGaramond

Im trying to typeset a book using fontspec and the EB Garamond font. I try first to use Lualatex because I wanted to experiment with some features of the impnattypo (french typography) package. ...
6
votes
0answers
1k views

Problem with LuaTeX : can't write on the .aux file at second pass [closed]

I use MiKTeX 2.9 for Windows, format Plain eTeX. I have my own macro package which I've used for years, and I tried recently to use it with LuaTeX (included MiKTeX version) in order to use UTF-8 ...
3
votes
1answer
906 views

LuaLatex package: \dofile results in error “no such file or directory”

I've written some macros that randomly selects questions from a database to include on an exam. The start of my .sty file reads as follows: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{randqs}[2012/10/...
5
votes
0answers
856 views

How to make compilation faster? [closed]

I have a rather large document (about 150~200 pages) with plenty of cross-references. I can, of course, use \include and \includeonly, but I do not only have new chapters, I also use \input for ...
4
votes
2answers
588 views

Problem with Greek language

I am trying to write an essay in Greek and I type Greek characters but it doesn't compile. I have downloaded both greektex and program Babylon but it seems that I can't make them work.
3
votes
1answer
207 views

Passing environment to \luatexluaescapestring fails

Can anyone explain why the macro \makequesone below fails and/or suggest a fix? The verbatim option works (as in the MWE) but I would like the content of the argument to be able to contain relatively ...
11
votes
2answers
615 views

Is direct utf8 input of combining diacritics in math mode possible with lualatex?

I am trying to typeset a document with combining diacritics directly input in it. I use LuaLaTex. Here is a minimal example illustrating the original issue: \documentclass{minimal} \usepackage{...
8
votes
2answers
304 views

A bug in fontspec, lua(la)tex, or the Junicode font?

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{Junicode} \setsansfont[Scale=MatchLowercase]{HelveticaNeue} \setmonofont[Scale=MatchLowercase]{Consolas} \begin{...
11
votes
1answer
278 views

Contextual Substitution with LuaLateX

Contextual substition doesn't seem to work with LuaLateX, while it works fine with XeLateX. Am I doing something wrong or is this a bug? \documentclass{article} \usepackage{fontspec} \setmainfont{...
14
votes
1answer
820 views

How to find out which glyphs are different in an OpenType style set?

With fontspec, and XeTeX or LuaTeX it's possible to access a font's OpenType features, including the Style Sets, e.g. like this: \addfontfeatures{RawFeature=+ss01;+ss18} TeX.sx has already taught ...
6
votes
1answer
499 views

Best way to use Linux Biolinum Keyboard with fontspec?

I am trying to typeset keyboard shortcuts in my document, e.g. CTRL+SHIFT+S. The Linux Libertine font family includes a nice keyboard font that I would like to use. What's the best way to use it with ...
11
votes
2answers
420 views

\ifpdf returns true when using LuaLaTeX

The ifpdf package is supposed to detect if pdfTeX is running: This package looks for pdfTeX in pdf mode and implements and sets the switch \ifpdf. (from the ifpdf documentation) However, when I ...
19
votes
0answers
19k views

The fontspec package requires either XeTeX or LuaTeX to function [closed]

I am not an expert in LaTeX, but I was writing a paper, everything was going fine, until it suddenly crashed giving me the error: The fontspec package requires either XeTeX or LuaTeX to function.
36
votes
1answer
3k views

Why does it take LuaLaTeX so long to load fonts and can I speed it up?

To test Mico's upcoming selnolig package, I tried out LuaLaTeX. While the overall experience for me as a pdfLaTeX end-user was very similar, I noticed that LuaLaTeX takes a long time to load fonts. ...
9
votes
2answers
384 views

How do I customize a LuaLaTeX cmap?

I'm working on a system that uses database content to produce PDFs in a variety of languages. I'm currently working on Armenian. What we've developed so far uses pdfLaTeX. I made a special encoding ...
4
votes
3answers
3k views

How to use Times Roman (Nimbus Roman) with fontspec under Linux and LuaLaTeX

Times Roman under Linux is usually Nimbus Roman. If I use the times package, Nimbus Roman will be embedded successfully, as a Type 1 font. Now I want to use the fontspec package to load it. This a ...
14
votes
1answer
894 views

Is it possible now to use microtype with opentype fonts?

LuaTeX has limited support for microtypograhpy now, and it can be invoked if only type1 fonts are used. But is it possible for microtype to work with opentype fonts loaded with fontspec now? I have ...
11
votes
3answers
2k views

Matrix multiplication (and other operations) macro using lua module

I am hoping to be able to create a macro to multiply matrices using a lua module. The module is here: https://raw.github.com/davidm/lua-matrix/master/lua/matrix.lua As suggested to me in a previous ...
7
votes
1answer
243 views

luacode and ExplSyntaxOn/Off

I'm trying to build some sort of an interface to a lua matrix module. I've navigated a few issues and arrived at something that I felt like I could probably modify to work. Anticipating the need for ...
11
votes
1answer
883 views

XeLaTeX, LuaLaTeX different default font features

The following MWE is producing different outputs on XeLaTeX and LuaLateX: \documentclass{scrartcl} \usepackage{fontspec} \setmainfont{FoglihtenNo04-070.otf} \begin{document} ffi ew \end{document} ...
8
votes
1answer
297 views

Luatex Pattern matching %b

I have never tried to include Lua code in a document before so please be gentle. I am after a pattern matching expression that will eventually take (stuff1)->(stuff2) and replace it with !(stuff1)|...
17
votes
2answers
7k views

pgfplot: plotting a large dataset

I try to plot a dataset which is large using pgfplots. Since I'm aware of problems with large files, I used the external mode. I additionally increased main_memory from 3000000 to 6000000. It crashes ...