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)

11
votes
3answers
510 views

How to display only certain lines of a paragraph?

From reading Knuth's TeX Book (Chapter 14 How TeX Breaks Paragraphs into Lines), I understand that entire paragraphs are read in and then "massaged" by the "line-breaking algorithm" in an optimal way ...
11
votes
2answers
2k views

Typesetting arabic with LuaLaTeX

For typesetting arabic with LaTeX there are arabtex and arabi; for typesetting arabic with XeLaTeX there are arabxetex and polyglossia; but how to typeset arabic with LuaLaTeX, since neither of ...
11
votes
1answer
573 views

In LuaTex is it possible to change font/language according to the script/glyphs used?

I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text ...
11
votes
1answer
218 views

XeLaTeX can't use TikZ 3 features?

I copied this code from this answer. \documentclass[tikz]{standalone} \begin{document} \tikz [blend group=screen] { \fill[red!90!black] ( 90:.6) circle (1); \fill[green!80!black] (210:.6) ...
11
votes
1answer
130 views

Replacing # characters with luatex

The minimal example below should replace all # characters with another symbol. This works well if I use \# to escape it, but the user should later be able to enter it directly, e.g. to enter hash ...
11
votes
2answers
10k 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 ...
11
votes
1answer
1k 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 ...
11
votes
1answer
416 views

text figures (old style numbers) and mhchem

How do I achieve lining figures with mhchem while maintaining text figures in the text (lualatex). My MWE is: \documentclass{minimal} \RequirePackage[paperwidth=70mm, paperheight=20mm, left=10pt, ...
11
votes
1answer
557 views

Reduce compilation time for opentype fonts (otf)

I have some opentype fonts (otf) which I use with fontspec. Everything works fine. During the compilation LuaLaTeX load the otf-files in a temporary file. For example: (load: ...
11
votes
1answer
100 views

How to change the mathematical symbol class of a unicode math symbol?

In unicode-math-table.tex the math class of many symbols is defined by lines like: \UnicodeMathSymbol{"026AC}{\mdsmwhtcircle}{\mathord}{medium small white circle}% Now if I want to use this ...
11
votes
2answers
299 views

How can I replace a character (zero)?

Is it possible to replace characters in pdflatex? I use the Minion Pro and Myriad Pro font and the zero looks like a small 'O'. I want to replace the zero by a zero with a dot or slash in the middle ...
11
votes
1answer
2k 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 ...
11
votes
1answer
616 views

MiKTeX’s LuaLaTeX and minitoc: “I can't write on file …mtc”

When compiling the code below with LuaLaTeX I get the error: "I can't write on file 'test.mtc'". Any ideas on how to resolve this? (Btw, the file test.mtc is there and contains the word "Contents") ...
11
votes
2answers
647 views

How can I achieve dictionary headers for two page spreads in LaTeX

I would like to produce a document where I can display the first and last items of each two page spread in the headers of both the left and right pages. I know I can use \markboth{}{} to collect the ...
11
votes
1answer
71 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 ...
11
votes
1answer
287 views

How to make lualatex select the correct OpenType features in math mode?

After fiddling around with egreg's answer to my previous question, I finally discovered that lualatex is not selecting the tnum OpenType features, that is it uses the default numerals instead of the ...
11
votes
2answers
1k views

Ploting a function using mplib in lualatex

This question asked about ways to generate a nice function graph in LaTeX. There are several great answers, however, most of the either rely on an external program to generate the plot, or, if they ...
11
votes
1answer
239 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} ...
11
votes
1answer
136 views

Accessing to .log messages from LuaTeX. Is it possible?

Reading the question How to visualize the underfull box in final ouput PDF files I thought that it could be possible to use LuaTeX to intercept the "Underfull vbox" message and draw some kind of ...
11
votes
0answers
87 views

How does one retrieve \rpcode values in LuaTeX?

The \rpcode values from pdfTeX are properties of font characters, e.g., \rpcode\font 50 = 200 sets the right protrusion value for character 50 in the current font to 200. Reading chapter 7 of the ...
11
votes
0answers
301 views

LuaLaTex: Where do we stand as of 2014? [closed]

I've been impatiently waiting to switch from pdfLaTeX to LuaLaTeX, specially because it has been stated that the latter is the successor of pdfLaTeX (as described by Xavier in ...
10
votes
2answers
311 views

Lua calculation fails with a negative number

The macro runs except when the real b is negative. Why ? \documentclass[a4paper,12pt]{article} \usepackage[upright]{fourier} \usepackage[no-math]{fontspec} \usepackage{luacode,luatextra,luaotfload} ...
10
votes
2answers
294 views

How to put signature number in footer (derived from page number)?

To make my book easier to bind I'd like to automatically put the signature number with small type in the footer of the first page of each octavo signature (except the first one which is given since it ...
10
votes
2answers
139 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). ...
10
votes
3answers
442 views

Compile all tex files within a folder at once

Is there a way to compile all tex files within a specific folder, from LINUX terminal, at once? I would like to do this using pdflatex or lualatex in a way to create a pdf file for each distinc ...
10
votes
2answers
693 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 ...
10
votes
3answers
866 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 ...
10
votes
2answers
121 views

The strange \luaescapestring in LuaTeX

\directlua{% local s = [[\luaescapestring{\TeX}]] print(s)} After \luaescapestring{\TeX}, I think I should get T\\kern -.1667em\\lower .5ex\\hbox {E}\\kern -.125emX then this line will be ...
10
votes
1answer
507 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 ...
10
votes
2answers
550 views

Concurrently interleaving execution of Lua and TeX in LuaTeX

The usual way to interleave Lua and TeX in generating documents is by invoking Lua from Tex through the \directlua facility and generate Tex from Lua using tex.print(). For example, consider the ...
10
votes
3answers
619 views

Why does hyphsubst not work with LuaTeX?

Consider the following MWE: \RequirePackage[ngerman=ngerman-x-latest]{hyphsubst} \documentclass{scrartcl} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \Blindtext ...
10
votes
2answers
291 views

Accessing side-bearings in LuaTeX

This question has been solved, in XeTeX, by this code: \def\kright#1{\leavevmode #1\kern-\XeTeXglyphbounds3 \the\XeTeXcharglyph`#1 } \def\kleft#1{\leavevmode \kern-\XeTeXglyphbounds1 ...
10
votes
2answers
598 views

Access specific characters in LuaTeX

Recently, I switched from XeTeX to LuaTex for a document of mine. However, there is a feature which I do not immediately see how to convert: Accessing specific characters. In particular, I need the ...
10
votes
1answer
175 views

What does \luaescapestring do for us?

It seems that all TeX command are expanded into unexpandable tokens (say, TOKENS1) and these token are converted into some other tokens (say, TOKENS2). For example \directlua{ local var = ...
10
votes
2answers
466 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} ...
10
votes
1answer
452 views

When using more than 16 math alphabets, \mathtt uses italic font

I know that in TeX, you can only use 16 math alphabets but XeTeX extends this so I was curious to enlarge the number of my math alphabets and I had to redefine some internals of LaTeX. Here is my ...
10
votes
1answer
213 views

How to debug METAPOST inlined in ConTeXt? (Or “message” primitive and “loggingall;” in inlined METAPOST)

I have a METAPOST program that works fine with mpost, but fails when I try to run it inline in ConTeXt. In order to debug it, I would like to see the usual METAPOST logging and/or to use the METAPOST ...
10
votes
1answer
626 views

Bad position equation number Lualatex

If a math display is too wide, then the \eqno appears on the next line on the left instead of on the right as it should. Does anyone know how to solve this problem? This is an example: ...
10
votes
3answers
1k 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 ...
10
votes
1answer
648 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} ...
10
votes
1answer
215 views

Accessing user-selectable features in GentiumPlus in XeLaTeX/LuaLaTeX

Specifically, the combination of f plus î in the italic ends up with the upper curl of the f smashed into the peak of the circumflex (other fonts have the same problem, but the result is even uglier). ...
10
votes
1answer
573 views

ConTeXt: Using system-installed TrueType/OpenType fonts

I'm trying to use Cambria for text and Calibri for headings in a ConTeXt document, but I don't understand what is happening at all, nothing seems to have any effect and in the end it falls back to ...
10
votes
2answers
401 views

How can I fix a problem where italics prevent line breaking when using microtype? [duplicate]

I wish to use protrusion and expansion from microtype as I like the look you get with them. I use amsthm and typeset theorems in italic as usual (with \theoremstyle{plain}). With microtype enabled, ...
10
votes
3answers
1k views

Replacing greek glyphs in math mode

I want to switch fonts, away from computer modern. I'm pretty sure that I will end up with a mixture of fonts. I can't provide a full list of required features, but Linux Libertine's feature set ...
10
votes
1answer
220 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 ...
10
votes
2answers
690 views

Do XeTeX and LuaTeX always use Unicode?

I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the \lowercase primitive. The following code produces a character with code 234, ...
10
votes
1answer
92 views

LuaTeX hpack_filter callback not triggering on certain hlist creations

EDIT: The hpack_filter is triggered and my question pointless. Consult my answer on why I missed the callback invocation. I am using LuaTeX to analyze the creation process of math expressions in a ...
10
votes
1answer
402 views

ledpar: Get rid of any space between paragraphs while retaining the synchronization of the pagecontents

My question: Is there a way to simply get rid of any space between the paragraphs of ledpar- while retaining the pagesynch? (I understand that synchronizing paragraphs is a feature of ledpar, put I ...
10
votes
0answers
95 views

Strange linebreaks with microtype & LuaLaTex [duplicate]

I have a weird problem. If I compile with LuaLaTex and microtype some of my line breaks are messed upped, but I don't get any warnings. XeLaTex with/without microtype or LuaLaTex without microtype are ...
10
votes
0answers
6k views

eps-converted-to.pdf not found

I was trying to include a figure in LuaLatex, but got an error message of !Package pdftex.def Error: File 'test-eps-converted-to.pdf' not found. The same code run in pdfLaTex+MakeIndex+bibTex. ...