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)

38
votes
1answer
3k views

Which Lua environment should I use with LuaTeX (LuaLaTeX)?

Lua code environment I moved on to XeTeX (XeLaTeX) a while ago. I was using pdfLaTeX before that, but now I'm quite comfortable with XeLaTeX. Now, I'd like to use LuaLaTeX to embed Lua in some LaTeX ...
17
votes
1answer
326 views

Analog of \pdfelapsedtime for LuaTeX and XeTeX

In pdfTeX, the \pdfelapsedtime primitive gives access to the time since this pdfTeX run was started, in "scaled seconds" (1/65536 seconds). This is useful to benchmark code: repeat it many times, and ...
35
votes
3answers
4k views

Using LuaTeX as a replacement for pdfTeX

In this question Differences between LuaTeX, ConTeXt and XeTeX various differences between LuaTeX and XeTeX (and ConTeXt) are discussed. And in this question Using XeLaTeX instead of pdfLaTeX a recipe ...
3
votes
1answer
336 views

microtype character code

I am using lualatex This is LuaTeX, Version beta-0.70.1-2011062107 (rev 4277) with microtype [2011/08/18 v2.5 <beta-07> Micro-typographical refinements (RS)]. My computer has an american ...
4
votes
2answers
496 views

LuaLaTeX: mkluatexfontdb does not include Type-1-fonts ( = *.pfb-files)

I'm running texlive 2011 on a Linux machine. Years ago I bought some Type 1 fonts, namely Rotis. They have been installed properly and Libre Office e.g. can print them. But running mkluatexfontdb -v ...
13
votes
2answers
5k 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 ...
5
votes
1answer
1k views

Can one instruct LuaLaTeX to use T2A encoded fonts?

As it is stated in answer to Can XeTeX | LuaTeX use MetaFont fonts?, LuaLaTeX can use MetaFont fonts. If so, how can one instruct LuaLaTeX to use T2A encoded fonts (e.g. cm-super) to typeset ...
3
votes
1answer
649 views

Can XeTeX | LuaTeX use MetaFont fonts?

Can XeTeX | LuaTeX use MF fonts invented for TeX ? By default (when fontspec package is not loaded) they load Latin Modern fonts as the following exception from eu1enc.def file shows: ...
10
votes
2answers
722 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 ...
3
votes
2answers
354 views

Umlauts in label

I'm using LuaLaTeX and wonder why I cannot label theorems with words containing umlauts. For example: \documentclass[a4paper,12pt]{article} \usepackage{luatextra} \usepackage[utf8]{luainputenc} ...
0
votes
1answer
1k views

TeX Live manager 2011 database corruption?

TeX Live 2011, up to date, on Windows XP. Example: \listfiles \documentclass{article} \usepackage{fontspec} \begin{document} A \end{document} LuaTeX first error: LaTeX Warning: You have requested, ...
8
votes
2answers
566 views

Who maintains babel now?

Who manages babel now? It is said on CTAN that Johannes L. Braams is no longer active on this package. I'd like to contribute babel's support for Russian in LuaLaTeX.
0
votes
2answers
223 views

Conditional \endinput

I want to prevent processing rest part of a package in case if it is loaded not from lualatex. For some reason I cannot load ifluatex package, so I borrowed definition of \ifluatex from that package ...
3
votes
0answers
1k views

Is LuaLaTeX our future? [closed]

I've read somewhere that LuaTeX is choosen to be mainstream for LaTeX development? Is it really true? E-TEX: Guidelines for Future TEX Extensions -- revisited says nothing about that. I mean where is ...
9
votes
1answer
345 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 ...
6
votes
1answer
501 views

Can luaLaTeX convert xlsx tables into LaTeX code?

Inspired by this question: Using external tables in TikZ, I would like to know whether it is technically possible to use a xlsx (Office Open XML) file directly with luaLaTeX, i.e. can luaLaTeX call ...
5
votes
1answer
710 views

Can I use Wolfram Mathematica fonts in XeTeX / LuaTeX?

Wolfram Mathematica comes with full (?) set of math fonts. Is it possible to use these fonts in XeLaTeX and LuaLaTeX? I mean something like \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} ...
18
votes
3answers
789 views

“Lua tree” (analogue of texmf tree)

I have a lua file that I would use in many of my TeX's documents, loading it with dofile(). I thought it was ok if I simply put it in the (local) texmf tree*, but this doesn't work. Instead I have ...
14
votes
2answers
727 views

What is the right way to input prime with Unicode-math (LuaTeX backend)

I opened an issue about this in Unicode-math's github repository. However, I am not so sure it is actually a bug, or I just did something wrong. Here is a minimal example, \documentclass{article} ...
4
votes
4answers
2k views

How to get \copyright when mixing T1 fonts and fontspec?

This example: \documentclass{minimal} \usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage[osf]{mathpazo} \begin{document} \copyright 2011 \end{document} Gives: ! LaTeX Error: Command ...
4
votes
2answers
8k views

Error in fontspec.sty

I downloaded a template for CV and one of the requirements was installation of fontspec.sty. Now when I compile the file the code file of fontspec.sty pops up in a new tab in TeXnicCenter and it ...
6
votes
1answer
1k views

How can I use the Optima font delivered with my Mac in LuaLaTeX?

I am trying the following on my Mac: \documentclass{minimal} \usepackage{fontspec} \begin{document} \setsansfont{Optima} \textsf{Test} \end{document} But I get the following: ...
8
votes
1answer
490 views

LuaTeX with unicode-math, how to get the font id of current math font

How can I query informations about the current math font? I tried the following in a document using unicode-math and Cambria Math font \documentclass{article} \usepackage{unicode-math} ...
9
votes
1answer
1k views

Can I get LuaLaTeX to do font variations on the Zapfino font just as XeLaTeX does?

When I use XeLateX on my mac I can get multiple variations for Zapfino like for example explained here under Glyph Variants. However this does not work when I run the same code though LuaLaTeX. Is ...
21
votes
2answers
1k views

fontspec, lua, microtype: Renderer=Basic no longer working for specific font styles

You may have noticed that, as of now,* letterspacing small capitals is not as easy as it was in pdfTeX, where we could simply combine \textsc with microtype's \textls. Consider this example, which ...
19
votes
2answers
1k views

LuaJIT and LuaTeX

Is it possible to change the Lua engine in LuaTeX to LuaJIT? Will it be as simple as replacing the Lua5.1 source code in the LuaTeX tarball with the LuaJIT source, or does it require (drastic) ...
5
votes
1answer
100 views

Find node above and under

Using a post_linebreak_filter callback, is it possible to access the nodes positioned above and under a given node?
10
votes
1answer
313 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)?
2
votes
1answer
428 views

Using pdfliteral to highlight text

Using pdfliteral, one can color text like the following: w1_prev = node.new("whatsit","pdf_literal") w1_prev.data = "q 1 0 0 rg" w1_prev.mode = 1 w2_prev = ...
7
votes
2answers
113 views

Problems with insert_before and post_linebreak_filter

I'm coding an algorithm to detect and highlight homeoarchies. Here my current almost working (but compiling at least) code: \documentclass{article} \usepackage[french]{babel} \usepackage{kpfonts} ...
2
votes
1answer
106 views

post_linebreak_filter and glyph analysis

When calling a function with a post_linebreak_filter callback, the nodelist only contains nodes of type 0 (hlist), 10 (glue) and 12 (penalty), whereas when using a pre_linebreak_filter callback, type ...
21
votes
1answer
915 views

LuaLaTeX protrusion problem with Negative value

Please see the following screen shots. As you can see there are two "overfull" hbox there. However, LaTeX does not produced any overfull box warning at all. I tried to produce a minimal working ...
22
votes
2answers
2k views

Is there latexmk functionality for LuaTeX?

I am a big fan of latexmk and lately I have been looking a bit towards LuaTeX. However I am am yet to find a way to get the functionality of latexmk (mainly recompilation on changes and automatic ...
36
votes
2answers
8k views

Frequently loaded packages: Differences between pdfLaTeX and LuaLaTeX

I'm in the process of switching my LaTeX document from pdflatex to lualatex. Similar to Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX I would like to know, what are typical ...
9
votes
2answers
672 views

OpenType fonts for Metapost Labels

Is it possible to use OpenType fonts in MetaPost labels? I use MiKTeX 2.9. I hoped something like mpost --tex=dvilualatex <myfile>.mp might work, but no luck. Suggestions? I tried this, but ...
38
votes
2answers
1k views

Can one (more or less) automatically suppress ligatures for certain words?

One of the major attractions -- for me at least -- of typesetting my papers in (La)TeX is its automated and fully transparent use of typographic ligatures. However, as Knuth pointed out in the ...
8
votes
1answer
235 views

Testing for TeX boolean in Lua code

How can I test for a TeX boolean in Lua? This kind of code doesn't work: \newif\if@mypkg@someif \begin{luacode} -- some lua code \if@mypkg@someif -- some more lua code \else ...
11
votes
3answers
542 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 ...
17
votes
5answers
623 views

Topics for a book about LuaTeX

I am writing a book about LuaTeX - what topics would you like to see in that book? More beginner's topics or more advanced sections? Both? I'd like to hear your opinion.
24
votes
2answers
855 views

Repetition of a word on two lines

This question led to a new feature in a package: impnattypo There have been questions about rivers asked in the past. I'm wondering about words that are repeated in the same place on two ...
7
votes
2answers
2k views

LuaLaTeX, fontspec and tracking with microtype

I try to get microtype's tracking working but without success: up-to-date TeXlive 2011 (lualatex 0.70.1) with microtype v2.5 beta 07. Sample code: \documentclass{article} ...
9
votes
1answer
1k views

text4ht and LuaTeX

There is a specific command to run tex4ht with XeTeX: htxelatex (which doesn't really work actually as far as I'm concerned). What is the command to run text4ht with LuaTeX instead?
0
votes
0answers
151 views

LuaTeX-Looking for some relevant and simple examples [duplicate]

Possible Duplicate: What is a simple example of something you can do with LuaTeX? I would like to see some little programs showing the power of LuaTeX.
0
votes
2answers
697 views

LuaTeX cannot find existing TTF font [closed]

Using lualatex, I get the following error: </usr/local/share/fonts/HoodHeaven Ornaments Two SSi.ttf> !LuaTeX error: cannot find OpenType font file for reading () ==> Fatal error occurred, ...
13
votes
2answers
4k views

\documentclass: undefined control sequence

There's probably a ton of questions about this already but I've been spending all day feeling overwhelmed with the TeX learning curve. I'm trying to learn LuaTeX (by the way, if you know of a good ...
8
votes
2answers
2k views

How to use unicode-math with beamer and lualatex?

According to a recent article in "Die TeXnische Komödie", this should be the way to get Latin Modern Math to work with lualatex and the latest TeXLive 2011: \documentclass[professionalfonts]{beamer} ...
6
votes
1answer
354 views

Arithmetic overflow with fontspec and LuaTeX

I have the following code using this font: \documentclass{minimal} \usepackage{lettrine} \usepackage{fontspec,xunicode} \newfontfamily\EBLettrineFont{EBGaramondInitialsF2} ...
13
votes
1answer
953 views

How does fontspec select fonts “by name”?

When loading a font by name, what is the search mechanism being used? How is the matching done? (It's marked TODO in the documentation) I have many problems, for example: a "Hoefler Text Engraved" ...
9
votes
1answer
1k 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 ...
6
votes
2answers
1k views

Font name in LuaTeX's fontspec

I have a document using fontspec which works fine with XeTeX, but a the Linux Libertine Initialis O font is not found when compiling with LuaTeX: Here is a MWE reproducing the problem: ...