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
195 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
604 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} ...
8
votes
2answers
300 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} ...
11
votes
1answer
275 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} ...
14
votes
1answer
807 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
487 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
401 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 ...
15
votes
0answers
18k 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
377 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
893 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
239 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 ...
10
votes
1answer
865 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
284 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 ...
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 ...
8
votes
4answers
10k views

fontspec LuaTeX error

I have installed "ProTeX" with "TeXstudio 2.3" & "Miktex 2.9". I get an error ! The fontspec package requires either XeTeX or LuaTeX to function when I attempt to run \documentclass{article} ...
14
votes
1answer
318 views

Prevent LuaLaTeX from splitting umlauts

Here's a minimal example: \documentclass{minimal} \usepackage{fontspec}\setmainfont{Cambria} \begin{document}aöz\end{document} Compiling this into a PDF using lualatex and extracting the text using ...
13
votes
3answers
2k views

Linux Libertine: Change Numeral Set

I am using the Linux Libertine font for my document. The font provides different numeral sets, "normal" numbers which are all the same height, and medieval/minuscle numbers with varying height. By ...
13
votes
1answer
1k views

using Hoefler Text font under lualatex and MacOSX

I'm having unexpected problems getting the "Hoefler Text" font to work when using LuaLaTeX (under MacTeX2012, all the latest updates installed) on a Mac (MacOS X 10.7.4). The following MWE ...
6
votes
2answers
920 views

LuaLaTeX AMS-Typesetting bug with sum\limits under sqrt

it looks as if there is a bug in math-typeseeting with lualatex using ams. An minimum example showing this is \documentclass[12pt]{report} \usepackage{amsmath} \begin{document} This looks OK, but ...
5
votes
0answers
145 views

fontspec features not working correctly in floating environment [closed]

The fontspec properties seem to work not correctly inside a floating environment, if used with LuaLaTeX. \documentclass{article} \usepackage{fontspec} \begin{document} { ...
6
votes
1answer
237 views

Inject LaTeX code 1:1 with LuaLaTeX

I would like to automate the creation of some beamer slides using LuaLaTeX. These are my first steps with LuaLaTeX so please excuse my ignorance. \documentclass{beamer} \begin{document} \directlua{ ...
4
votes
1answer
212 views

Unmodified Source Code

I have a macro that helps me print out(or do anything really) source code in various ways using lua: see: `xparse verbatim` with `newline` The macro is \def\SourceCode{% \begingroup% ...
6
votes
2answers
2k views

Less vertical space in frac

I'm using unicode-math in lualatex with the Cambria Math fonts. Compared to Computer Modern math, there is too much vertical space between fractions. Is there a way I can achieve my adjustment without ...
3
votes
2answers
332 views

How to stop a block of code from being parsed?

I would like to pass some latex code to lua directly without it being parsed: \directlua{ PrintPrettyLatexCode("LATEX CODE GOES HERE!") } BUT latex tries to parse the "LATEX CODE GOES HERE!". I ...
6
votes
1answer
411 views

Invisible math characters with unicode-math and ntheorem

When compiling this code with lualaTeX (from TeXLive 2011), \documentclass{minimal} \usepackage{unicode-math} \usepackage{ntheorem,thmtools} \setmathfont{xits-math} \makeatletter ...
5
votes
2answers
554 views

Why does \luaexec work but the luacode environment doesn't?

The following code can be compiled by lualatex (Version beta-0.70.1-2011061410 (rev 4277)) correctly. But if I use \begin{luacode} ... \end{luacode} environment to replace the \luaexec{...} command, ...
5
votes
1answer
344 views

Unicode math with amsmath, new error

After applying the most recent ctan updates, the following MWE does not compile with lualuatex. There is an error given ending with \cs_set_nopar:Npx that I can't make sense of. ...
3
votes
2answers
192 views

Why does using Greek break em-dashes?

I know the conversion of --- to an em-dash is an on-going problem with lualatex. But I don't understand why using Greek in one font should (afterwards) break conversion of 3 hyphens to an em-dash in ...
4
votes
2answers
895 views

MiKTeX where do I specify command line options?

I'm using MiKTeX 2.9 and I want to specify the command line option --shell-escape. The reason for this is that I'm trying to use an eps file and I get the error xxx-eps-converted-to.pdf' not ...
6
votes
2answers
4k views

Using macros in \DeclareGraphicsRule statement using shell command

I am currently working on a document which i am compiling under both linux and windows. As one of the images I use is a tif image, I'd like to have lualatex converting it on-runtime to a format it ...
4
votes
1answer
553 views

Does lualatex embed fonts for compatibility?

I am using fonts installed on my computer in LaTeX document as \documentclass{article} \usepackage{fontspec} \newfontfamily\fontx{Ubuntu} \begin{document} The default font {\fontx New font} The ...
10
votes
1answer
302 views

How to report a bug in LuaTeX? [closed]

I think I found a bug in LuaLaTeX. I use the current version from TeX Live 2012. lualatex --version This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012) When I compile the following ...
4
votes
1answer
1k views

Using microtype letterspacing with LuaTeX, Version beta-0.70.2-2012062812

Does the letterspacing (and tracking) options of microtype not work with the latest version of LuaTeX? When I try: \documentclass{article} \usepackage[no-math]{fontspec} ...
3
votes
1answer
170 views

smashoperator produces black line with Linux Libertine O

When I use fontspec to set the main font to "Linux Libertine O", the smashoperator command (and also mathclap and friends) produce a black line above the smashed subscript (with luatex). ...
3
votes
1answer
2k views

How to compile properly a document using “fontspec” package?

How to compile properly a document using fontspec package? Example code (15.1. XeTeX @ LaTeX-wikibooks.pdf) \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} Lorem ...
2
votes
0answers
117 views

Understanding some pieces of luatex the program [closed]

I'm looking forward the implementation of a tex.execute() command on the lua side in luatex. But it needs patching luatex the program and I have a dream: providing the patch... :) As I have nearly no ...
6
votes
1answer
129 views

Token expansion with the token library

I don't understand how the token library of luatex works. \documentclass{standalone} \begin{document} \def\mymacro{A} \directlua{% t = token.create ('mymacro') token.expand(t) ...
4
votes
1answer
302 views

accessing other lua libraries in lualatex (MiKTeX)

I would like to access the other lua libraries e.g. luagraph in lualatex. If use: require("luagraph") I get a complaint about permission denied, which as far as I could determine relates to ...
9
votes
3answers
285 views

Using \input|texlua… to emulate \directlua in pdfTeX

When --shell-escape is enabled, pdfTeX allows to run external programs and input the result expandably with \input|"...". Together with the Lua interpreter texlua, this could be used to provide a ...
13
votes
1answer
3k views

Migrating from pdfTeX to LuaTeX: Problems with reproducing output for legacy projects

I'm currently analyzing and evaluating a migration process from pdfTeX to LuaTeX for our current TeX workflow. With LuaTeX being a fork of pdfTeX and packages like luainputenc at hand it seemed ...
10
votes
2answers
154 views

^^M garbles my terminal output

Contrarily to pdfTeX and XeTeX, which send ^^M to the terminal for the character 13, LuaTeX sends the character 13 itself. This garbles the output of my terminal (bash under Ubuntu 10.04). ...
4
votes
1answer
306 views

Get back “old” math font in LuaLaTeX+beamer

Updated my tlmgr install (and all packages I have installed today) earlier today, and something changed in the font loaded by unicode-math, which I can't figure out of. The preamble I've been using ...
6
votes
1answer
192 views

\scantokens in LuaTeX

The eTeX \scantokens command appears to work differently in LuaTeX than it does in eTeX, pdfTeX and XeTeX. Compiling the following test file with any engine other than LuaTeX performs \show+, which ...
12
votes
1answer
2k views

Getting started with Greek and Hebrew in LuaLaTeX

I am typesetting a 17th century English theological document that uses a smattering of Greek and Hebrew. I am using LuaLaTeX with TeXShop on the Mac. Is LuaLaTeX up to the task? If so what are the ...
9
votes
1answer
1k views

LuaTeX cannot find existing font

My Fedora 17 LuaLaTeX (2012) system just keeps complaining about some particular (of course existing) font not existing. It can't spit out any PDF from a TeX file using that font. This is the error I ...
3
votes
1answer
191 views

combine macro arguments with text

I have a macro where I need to combine one of it's arguments with text to form a string that is used in lua. \newcommand{\mymacro}[1]{\directlua{ myfunc("#1 4") } if I call \mymacro{alpha} I ...
16
votes
2answers
2k views

Create a LibreOffice spreadsheet from luatex

After reading this amazing answer, I'm wondering if it possible to do the same thing but the other way round, that is create a LibreOffice spreadsheet from luatex, exporting data from the tex file to ...