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)

9
votes
2answers
245 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 ...
9
votes
2answers
472 views

percent signs in luacode* environment (LuaLaTeX)

Can someone explain what happens here: \documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode*} tex.print("xx\%a","yy\\%b","zz\\\%c") \end{luacode*} \end{document} The ...
9
votes
1answer
417 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 ...
9
votes
2answers
163 views

Can I create a node list from some text entirely within lua?

I'm playing around with luatex and learning about nodes and callbacks. What I'd like to do is be able to add some text via a particular callback. The type of callback that I'm interested in is one ...
9
votes
1answer
138 views

Cover whole page with squares arranged in a “spiral”

I'm trying to cover a whole landscape A4 paper with small squares – drawn in TikZ – starting from the bottom left corner of the page and moving towards to the center of the page in a ...
9
votes
3answers
664 views

Luaotfload: version mismatch

Compiling with LuaLaTeX and the recent update seems to produce some disturbance: ... ) (/usr/local/texlive/2013/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty ...
9
votes
1answer
260 views

fontspec option “Renderer=Basic” - what does it mean?

Since a few days I've been using the fontspec option \setmainfont[Renderer=Basic] ... in order to use the microtype option tracking=true with LuaLaTeX. I have a simple question on this: why does ...
9
votes
1answer
558 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
211 views

How to change kerning around ( glyph with lualatex?

Inspired by An example of changing kerning of a font in LuaLaTeX I decided to try to change the kerning for some letter combinations together with parentheses which have been bothering me in my ...
9
votes
1answer
141 views

Hyphenation does not work with acro and luatex, but with pdftex

I'm using luatex 0.70.1 together with acro 1.2 and I have the following MWE. \documentclass{minimal} \usepackage[ngerman]{babel} \usepackage{acro} \DeclareAcronym{DNA}{ short=DNA, ...
9
votes
1answer
223 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
2answers
293 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 ...
9
votes
1answer
690 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 ...
9
votes
1answer
307 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
1answer
302 views

uneven line spacing

This is something that is already annoying me for quite a while. (I use LuaLaTeX) The line spacing of the Arabic text is uneven (see pic and/or MWE below). In particular, I think, lines 2, 7, and 10. ...
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
919 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?
9
votes
1answer
348 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
156 views

XeTeX font spacing awfulness [duplicate]

When using the Lato font (e.g., Google fonts or Lato fonts), I get completely overlapping text: When I view the PDF in Google Chrome's PDF viewer, it looks fine on the screen: but it still ...
9
votes
0answers
381 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
5answers
1k views

Printing LaTeX code in LuaTeX

A calculation is done in Lua, and according to the result a certain type of cell must display the data. This works: \multicolumn{3}{p{11cm}}{Test}&-10\\[0.4cm] But this doesn't ...
8
votes
2answers
2k views

Engines of Tex-Editors and Biber/Biblatex

Today I detected that biblatex, biber or whatever is responsible for citations and bibliography does not work correctly on my tex-files. I can think of two reasons for it: Maybe my engine-file (I am ...
8
votes
2answers
169 views

Selectively disable dash ligatures in LuaLaTeX

With pdfLaTeX, I can print two hyphens using -{}-. This does not seem to work in LuaLaTeX. Indeed, the following snippet \documentclass{minimal} \begin{document} en dash -- two dashes -{}- ...
8
votes
2answers
263 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
240 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
182 views

LuaLaTeX and MetaPost

Is there a LuaLaTeX equivalent of \startMPinclusions input mpfile; \stopMPincusions in ConTeXt? That is, if I have \documentclass{article} \usepackage{luamplib} \begin{document} ...
8
votes
1answer
156 views

How to check for Lua definitions

When there is \directlua{x = 25} one can say \edef\rgf{\directlua{tex.sprint(x)}}, but when x was never created by \directlua{x = 25}, \directlua{tex.sprint(x)} will fail. Thus something like ...
8
votes
2answers
230 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} ...
8
votes
2answers
491 views

LuaLaTeX, sprint verbatim text

The code below, uses the lua, socket.http library to pull a web page (for simplicity I have used a link to a text file). I have used tex.sprint to pass it back to the typesetting engine. However I ...
8
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 ...
8
votes
2answers
157 views

Commands that disable everything except the counters

what I'm looking for... I'm looking for a couple a commands, \disableAllButCounters and \enableAll that would do the following: Everything between \disableAllButCounters and \enableAll would ...
8
votes
2answers
499 views

First steps with LuaLaTeX and ttf fonts

I am just starting to use LuaLaTeX. Mainly because I want to use a ttf font for a presentation. My MWE looks like \documentclass{article} \usepackage{fontspec} ...
8
votes
1answer
154 views

Problem between unicode-math and babel option frenchb in LuaLaTeX

I've got a strange problem in LuaLaTeX with both babel, option frenchb, and unicode-math. My TeX Distribution is TeX Live 2013 (installed with MacTeX on a OS X.8.5 system). If I run the following ...
8
votes
1answer
179 views

How to use fakeslant as slanted but not italic font with fontspec?

Using fontspec with Luatex it is possible to create a fake slant and use that as italic should no italics be around: \setmainfont[ AutoFakeSlant=0.15 ] {FontName} However, also if an ...
8
votes
1answer
162 views

Write18: LuaTeX has an encoding problem, where XeLaTeX does not

xelatex (with option --shell-escape) compiles this document fine: \documentclass{article} \usepackage{fontspec} \begin{document} LuaTeX is not \immediate\write18{echo uber | sed y/u/ü/ > inc.tex} ...
8
votes
1answer
301 views

access all characters in an OpenType font with LuaLaTeX

This is a follow-up to Access specific characters in LuaTeX and How to access fleurons? With TeX Live 2012, I compiled the following file and got the output in the image: \documentclass[12pt]{book} ...
8
votes
2answers
103 views

How to manipulate a multi-line string in luatex?

I want to write a Lua function that processes some multi-line string. Thus, I created a new file test.lua which contains userdata = userdata or {} function userdata.surroundwithdashes(str) str = ...
8
votes
1answer
138 views

Different appearance of \dots, \ldots in text and math mode in LuaLaTex + unicode-math (bug)?

I get tons of warnings "Command \textellipsis invalid in math mode" after I have switched to LuaLaTex. The warning comes from the unicode-math package, which I needed to set the math font. If I use ...
8
votes
1answer
398 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. ...
8
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 ...
8
votes
4answers
961 views

What possibilities are there of using OpenType fonts and margin kerning?

I really like the protrusion and margin kerning features of pdfTeX and LuaTeX. I also like to use other fonts than those available for TeX. What choices do I have when I want to use both? Also, what ...
8
votes
1answer
136 views

pdfcrop using luatex engine minimal setup

I want to try the great pdfcrop.pl script by Heiko Oberdiek (http://www.ctan.org/pkg/pdfcrop) with LuaTeX engine. Unfortunately my knowledge about LaTeX tools like LuaTeX is non existent. I'm looking ...
8
votes
1answer
188 views

Loading otf font as mathfont range using unicode-math

I'm trying to replace the letters in the math font so that it matches the main font. Curiously, this works for the italic version, yet not for bold and roman. Why is that? \documentclass{article} ...
8
votes
1answer
195 views

Use lualatex to create macros

I used the following in the past and it worked: \documentclass{minimal} \usepackage{luacode,luatextra} \begin{document} \begin{luacode*} MyVal=123 tex.print("\\def\\MyVal{"..MyVal.."}") ...
8
votes
2answers
347 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, ...
8
votes
1answer
279 views

Activating fi and fl ligatures with fontspec for Berling font

I have a font named Berling containing fi and fl ligatures on glyph 109 and 110. How can I activate these with lualatex? For the moment I am trying: \documentclass[a4paper]{memoir} ...
8
votes
1answer
210 views

Spacing changes when using unicode-math range feature. Why?

You can use the range feature of unicode-math to set the math font for a specific unicode slots or the macro accessing the glyph. I tried this with the sum sign & Latin Modern, see my example: ...
8
votes
1answer
216 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 ...
8
votes
2answers
292 views

Get value of macro from lualatex directly

I need to get the value of a macro from lualatex directly and return it in a function call function GetMacroValue(macro) return macro.value end I've tried various things such as using tex.print ...
8
votes
2answers
1k views

LaTexing vs LaTexTools (Sublime text plugins)

I want to use sublime as my default IDE for TeX (currently I'm using Latex Studio). I've found two great packages: LaTexTools LaTexing Both has somehow the same list of features but LaTeXing ...