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}.
10
votes
2answers
118 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
2k views
How to enable ligatures for emdash/endash in LuaTeX ?
I cannot switch on ligatures for emdash (---) and endash (--) in LuaLaTeX. Here is my test file:
% !Mode:: "TeX:UTF-8"
\documentclass{article}
\usepackage{fontspec}
...
10
votes
2answers
605 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
248 views
In which order is Lua Code in LuaTeX being processed
Can someone help me understand the order in which LuaTeX documents are being processed?
From what I've understood, the order is the following:
the code is being read, top to bottom
when the ...
10
votes
2answers
926 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 ...
10
votes
2answers
554 views
Replacing Unicode non-breakable spaces by normal spaces
I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode ...
10
votes
2answers
2k views
UTF8 not working in LuaTeX in TeXLive 2010
I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a ...
10
votes
1answer
351 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
215 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
1answer
311 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, ...
10
votes
1answer
376 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: ...
10
votes
1answer
550 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
...
10
votes
1answer
265 views
When to use LuaJitTeX in favour of LuaTeX?
Since a few weeks LuaJitTeX is
available ¹, which is
LuaTeX with Lua replaced by LuaJIT. Binaries are available for various
platforms. It is already included in the ConTeXt standalone distribution.
I ...
10
votes
1answer
166 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
123 views
Accent positioning on 'oe' character with feature file in fontspec
There is no accented glyph for the 'oe' character in Linux Libertine. When trying to form this character, the (acute) accent is centred over the 'e' half. I'm trying to get the accent over the centre ...
10
votes
1answer
88 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 ...
10
votes
1answer
271 views
Lualatex and Syriac (initial, middle and final letters)
I have heard that it is possible to typeset Arabic texts with Lualatex, so I assume that it is also possible to typeset Syriac texts with LuaLatex. But when I run the following example, the output is ...
10
votes
1answer
353 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
1answer
360 views
How do I combine fonts for different scripts?
I want to combine Helvetica World (for roman, cyrillic, greek and arabic) and Hei Std (for simplified chinese) in one document with LuaLaTeX. Hei Std probably hasn't all the glyphs from Helvetica ...
10
votes
0answers
137 views
Libertine Mono and lualatex
Using lualatex on latest TeXLive 2012 I am not able to select Libertine Mono by its full name via fontspec. luaotfload is finding the font and it is written into ...
9
votes
2answers
235 views
Create a font table for all available characters for a particular font
Similar to the question:
Lualatex: Font table with examples
I have several ornamental fonts and I'd like to create key maps. That is, I want to know what symbol the letter a maps to by having a nice ...
9
votes
2answers
263 views
Avoid just nearly filled last lines
Old school typesetters never allowed the last line of a paragraph to be just nearly filled. Either it would be clearly shorter than the other lines or it would be stretched to align with the right ...
9
votes
2answers
396 views
LuaLaTeX:PGFplots can't read data passed by Lua
I wanted to give a LuaLaTeX answer to this question
Here it is the listing I wrote:
% !TEX encoding = UTF-8
% !TEX program = LuaLaTeX
% !TEX spellcheck = en_GB
\documentclass{standalone}
...
9
votes
2answers
472 views
Is lualatex supposed to be a superset of pdflatex? (regarding production of PDF)
In other words, is it a bug if lualatex cannot compile a document that pdflatex can?
Based on the answers to this question
How to expand TeX's "main memory size"? (pgfplots memory ...
9
votes
2answers
78 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 ...
9
votes
3answers
445 views
Embedding Type 1C fonts using LuaLaTeX
As pointed out in the answer to PDF file size with LuaLaTeX vs XeLaTeX, the difference between using Type 1 and Type 1C fonts in two documents made a big difference in file size.
File size is ...
9
votes
1answer
173 views
Convert color name to pdfliteral code
How can I convert a color name (such as used with the xcolor package) to a pdfliteral code, like q 1 0 0 rg (for red)?
9
votes
2answers
835 views
\tikzexternalize doesn't work with lua code
The following code from the pgf manual compiles fine with lualatex --shell-escape
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize
\begin{document}
A simple image ...
9
votes
1answer
93 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 = ...
9
votes
3answers
813 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 ...
9
votes
1answer
123 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 ...
9
votes
1answer
347 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}
...
9
votes
1answer
222 views
Fake bold in LuaLaTeX
I am sometimes using a font that has no boldface, so I am wondering whether or not there is a way to use some fakebold-feature in LuaLaTeX.
The fontspec documentation explains a feature for XeLaTeX, ...
9
votes
1answer
72 views
Ancient Greek hyphenation in LuaLaTeX
Can anybody tell me the current state of hyphenation patterns in LuaLaTeX, especially with regard to Ancient Greek?
I searched here on tex.sx and on the web. There are many mailing lists discussing ...
9
votes
1answer
141 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}
...
9
votes
1answer
258 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}
...
9
votes
2answers
507 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, ...
9
votes
1answer
239 views
What is the implication of the warning in the fontspec manual with respect to babel and LuaTeX?
In the fontspec manual, there is a section on LuaTeX that states:
babel The babel package is not really supported! Especially Vietnamese, Greek, and Hebrew at least might not work ...
9
votes
2answers
444 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 ...
9
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 ...
9
votes
1answer
286 views
Why does fontspec change the maths accents (and only with lualatex)?
In the minimal example that follows luatex doesn't place the accent correctly (it's too far left):
\documentclass{minimal}
\usepackage{fontspec}
\setromanfont{Linux Libertine O}
\begin{document}
...
9
votes
0answers
116 views
Editing LuaLaTeX files in emacs
(A follow-up question to Which is the best editor for LuaTeX?)
Emacs offers the LaTeX-mode in AUCTeX for editing LaTeX files, while it has the Lua-mode for editing Lua-files.
Consider the following ...
9
votes
0answers
304 views
Contextual Alternatives in LuaLaTeX [closed]
I am creating a blackletter font and would like to use it with LuaLaTeX, which works fine for nearly everything so far, except for using contextual alternative glyphs (in this case, r→ꝛ after round ...
8
votes
3answers
171 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 ...
8
votes
2answers
1k views
Specify different fonts for bold and italic with fontspec
The main font I use for my LuaLaTeX document lacks bold and italic variants. I'd like to specify a different font for those variants using the fontspec package.
Initially what I had in my preamble ...
8
votes
3answers
1k views
How to display the font size in use in the final output
How can I display the font size in use at a particular point of the document.
For example, in the following code, I produced a PDF file showing the fonts actually used for each shape and size,
...
8
votes
2answers
247 views
Compound representation of numbers. Possible?
I’ve got a Glagolitic font (Epistula Croatica) with letters mapped to numbers and some ligatures programmed. I don’t want to describe the nature of the Glagolitic numeral system here but to present ...
8
votes
1answer
181 views
Help with the lua-visual-debug package
The documentation for lua-visual-debug is a little sparse. Can someone interpret the boxes/lines/colors that lua-visual-debug produces?
8
votes
2answers
480 views
lualatex error with Brazilian Portuguese babel option
It seems that lualatex does not known the Brazilian dialect of the Portuguese language with the babel package.
When compiling the simple document:
\documentclass{article}
\usepackage[brazil]{babel}
...
8
votes
2answers
445 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 ...

