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
36 views

Print Latex Code with LuaLatex in function

I want to print Latex Code with a Lua Function. But there is a problem with my function if there are parenthesis in the string: in the example the second code will not be printed), who can help me? \...
2
votes
1answer
27 views

CM Concrete with Latin Modern bold in LuaLaTeX/XeLaTeX?

With LuaLaTeX or XeLaTeX, how do I use Concrete (or any other font family that already has a bold) as main font but use Latin Modern bold as bold? This doesn’t work: \usepackage{fontspec} \...
2
votes
3answers
105 views

LuaLaTeX Variable Expansion

I've run into an issue with variable expansion in the different distributions of LuaLaTeX (chiefly MikTeX and TeXLive). In TeXLive (both 2014 and 2016), I can use the following to reference my home ...
0
votes
1answer
12 views

Lstinputlisting, ranges and unicode characters

I am using unicode characters in some code examples. If I set the listing completely, everything works as expected when the font supoorts the characters. But once I want to omit lines with lsitings'...
5
votes
0answers
56 views

Very multilingual work

I've used pdfLaTeX for one year but I've got a specific issue and I'm considering switching to XeTeX or LuaTeX. I've seen several questions about pros and cons of each option but they don't really ...
8
votes
1answer
97 views

Lualatex and a5 paper format

I'm having problems generating a pdf file with A5 format. With pdflatex this compiles fine, without, it doesn't. \documentclass[a5paper]{article} \usepackage{geometry} \usepackage{lipsum} \title{A ...
2
votes
0answers
26 views

fontspec: Small Caps feature wrong ligatures when using Renderer=Basic

If I use SmallCapsFeatures={Renderer=Basic} as an option when setting the main font of the document, I get an obviously wrong ligature in the small caps shape. In the MWE the letters T and h are not ...
1
vote
0answers
36 views

Microtype settings for Adobe Caslon Pro (LuaLaTeX)

This is a follow-up question for this question Hello, I'm trying to use Adobe Caslon Pro font, which I have installed on my machine. This is an Open Type Font. In the aforementioned question (...
5
votes
2answers
162 views

Optical sizes and how to use them (luaTeX, possibly XeTeX)

I know of the OTF "optical sizes" feature, but I don't know how to use it properly. How can I check which optical sizes are available for my font? E.g. I have Adobe Caslon Pro which has the ...
2
votes
1answer
22 views

Use for-loop in LuaTeX to include many subchapters

I have many files called 1.tex, ..., 85.tex which I want to include into my document like this: \include{chapters/text/1} [...] \include{chapters/text/85} As I use LuaLaTeX, I thought I could use ...
5
votes
0answers
37 views

Remove specific ligature from specific font with LuaLaTeX

I was recently gifted the Zapfino otf character, and I'm using it to typeset an "handwritten" letter inside of a book. I like the way the discretionary ligature are typeset, but the Co ligature is ...
7
votes
2answers
145 views

Hyphenation when using non breaking space for names like in `F.\,Fugmann`

I place a small non-breaking space between abbreviated forenames and the surnames, e.g. I write F.\,Fugmann. (A German name.) I noticed that F.\,Fugmann now doesn't get hyphenated, even when using ...
2
votes
1answer
54 views

Execute luacode after \end{document} to rename pdf file after creation

I'm using toggle switches to create different outputs with a single tex-file. However my output PDF is always named after the producing tex-file e.g. luaexample.tex produces luaexample.pdf. Along ...
4
votes
2answers
126 views

Bug in unicode-math or lualatex?

Consider the following minimal example: \documentclass{article} \usepackage{unicode-math} \newcommand{\dotcup}{\ensuremath{\mathaccent\cdot\cup}} \begin{document} $a \dotcup b$ \end{document} If ...
3
votes
0answers
18 views

luatex tex.print does not trigger process_input_buffer callback?

I've defined a new LaTeX command to randomize itemize-like lists using LuaLaTeX like this: \newcommand*\Randomize{% \directlua{% questions.itemstbl = {""} luatexbase....
4
votes
0answers
58 views

Problem with impnattypo package

I'm using impnattypo package with nosingleletter option under TeXLive 2016. With no luck. I want to move last 'single letter' word to another line. Examples in one-letter word at the end of line ...
1
vote
1answer
26 views

Set negative leading for a block of text (with a specific font) using lualatex

I'm typesetting a block of text within the quote environment which should represent an handwritten letter. I'm using lualatex and I was given a specific font to work with for this special part of the ...
4
votes
1answer
46 views

\emph not working well in amsthm's “plain” style using XeLaTeX or LuaLaTeX

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{mathtools, amsthm} \usepackage{unicode-math} \setdefaultlanguage{english} \...
3
votes
1answer
63 views

bm package doesn't work [duplicate]

I'm using lualatex 0.95 and up-to-date bm package. Before updating lualatex, I could always use \bm{} but I can't use it any longer. Compile seems to go with no problem. Here is the code. \...
0
votes
1answer
62 views

Why do luatex and lualatex commands work differently? [duplicate]

As written in the page below, lualatex seems to be a symbolic link or an lias to luatex. Difference between luatex and lualatex binaries However, they don't work the same way. lualatex compiles latex ...
1
vote
0answers
53 views

I cannot execute lualatex command at all

Before reading my question, I'd be glad if you could note that: 1. I'm Japanese. 2. I believe luatex command and lualatex command is the same because the command file luatex is an alias of lualatex. (...
1
vote
0answers
18 views

Breaking biblatex-chicago URLs with mathastext in LuaLaTeX [closed]

Haven't recently changed engines from XeLaTeX to LuaLaTeX, I'm having trouble with breaking URLS in my biblatex-chicago bibliography. The problem seems to be due to mathastext, which I've decided to ...
4
votes
0answers
25 views

LuaLaTeX: Is it possible to create multiple log files/custom edit the log output

I'm trying to typeset a book, and I'd like to print some messages in the log file (or somewhere else), in order to easily read them and correct my layout or the calculations beneath it. Currently I ...
0
votes
1answer
49 views

How to obtain absolute path of Latex file, regadless if it standalone or combined

I need to find the absolute path of a latex file, as it sits on file system. Seems like a simple task, but it turns out to be harder than I thought. Here is a MWE. I have this tree /media/data/latex/...
3
votes
1answer
32 views

Lualatex beamer breqn: Text appears four timestimestimestimes, why and how to mitigate? [duplicate]

In the following example, why does the word Spam appear four timestimestimestimes? $ cat mwe.tex \documentclass{beamer} \usepackage{breqn} \newcommand{\spam}{\textrm{Spam}} \begin{document} \begin{...
5
votes
1answer
58 views

Mimicking mathspec practices in LuaLaTeX

After discovering the magic of microtype, I've decided to switch to LuaLaTeX from XeLaTeX for a large document. Unfortunately, I'm having some difficulties mimicking my mathspec practices from the ...
2
votes
1answer
56 views

LuaLatex | Biblatex & biber | UTF-8 Citation Problem when not using luainptenc

Why do I have to use the luainputenc when every program is using UTF-8 encoding? Example good Bad Tex Code // Please use lualatex \documentclass[german]{article} \usepackage[ngerman]{babel} ...
6
votes
1answer
53 views

question on latex->lua->latex->lua call chain. How to pass things as strings back to latex?

question on basic lualatex programming which I am learning. I have a lua function which returns the full path of a file name. On its own it works ok. I print the value from lua, and it is correct. I ...
17
votes
0answers
164 views

Inconsistent letterspacing (interword space) in pdflatex vs lualatex

In my documents I prefer text in small- and all-caps to be letter spaced. To that end I am using the letterspacing capabilities of the microtype package. Until now (with version 2.5 of microtype) I ...
5
votes
1answer
56 views

tex4ht corrupts “--” inside CDATA in the HTML file

I am using an outside javascript package (syntaxHighlighter) for code formatting when I compile to HTML that requires one to put code inside <![CDATA[ ... code .. ]]> as explained in the above ...
4
votes
1answer
62 views

after changing to \usepackage{fontspec} now make4ht do not compile my Latex file in lualatex mode

I was told by Latex experts to use \usepackage{fontspec} with Lualatex. It works ok with lualatex, but now my files do not compile with make4ht any more after I changed to \usepackage{fontspec}. ...
2
votes
1answer
37 views

missing accented characters lualatex in texlive2016

If I process the following beamer class with lualatex (texlive 2016), the Á charactert is missing in the output pdf, but í appears correctly. This problem is not showing with laulatex of texlive 2015. ...
4
votes
0answers
36 views

Release space in the string pool

I managed to get a capacity exceeded message by adding a bit too many named coordinates to a number of tikzpictures and so started to test and now wonder if it is possible to release unneeded space in ...
2
votes
0answers
37 views

LuaLaTeX Error: Missing characters which are in the fonts used

when I let LuaLaTeX process input files which contain certain rather unusual Unicode glyphs, some of them do not show up. Instead, there is a warning message in the log: Missing character: There is ...
2
votes
1answer
27 views

LuaLaTeX and makenote

Under TeXLive 2016 i have an problem with following code: \documentclass[mpinclude=true]{scrbook} \usepackage{scrlayer-scrpage} \pagestyle{scrheadings} \usepackage{scrlayer-notecolumn} \begin{...
1
vote
1answer
68 views

Convert unicode symbols to tex

I have written a lualatex file with unicode characters such as α, ≤ … Now I need to convert it to latex. Is there a script that converts the symbols to tex commands \alpha, \leq …?
6
votes
2answers
168 views

warning (pdf backend): pop empty color page stack 0

I've been receiving this warning and for the past several hours (erh, something like 12 hours now). I've been trying to narrow down what's been causing it, but to no avail. I managed to cut down the ...
8
votes
3answers
177 views

Upright quote in DejaVu Serif

I have this code: \documentclass{article} \usepackage{fontspec} \begin{document} \setmainfont{DejaVu Serif} "Heading" \end{document} (run with LuaLaTeX, texlive2105) which gives this result: But ...
28
votes
2answers
609 views

Placing live Stack Exchange reputation in a document

I want to be able to place my current reputation into a document, such that, when I rebuild the document, the displayed reputation is updated. For example, I might write My current reputation on {\...
3
votes
1answer
69 views

Error message “invalid escape sequence near ”\%" when tex.sprint is inside a \chapter command

The error message "invalid escape sequence near "\%"" occurs only when a \luaexec tex.sprint is placed inside a \chapter command: why ? \documentclass{book} \usepackage{luacode} \begin{document} \...
0
votes
0answers
18 views

lualatex texlive 2016 broken with tikzexternalize [duplicate]

The following example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} \tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -...
0
votes
0answers
21 views

XCharter font changes sans serif font as well [duplicate]

I'm trying to use XCharter font for regular text and gillius2 as sans font. Either font works fine when used individually. But when used together, the final document doesn't display sans serif font at ...
2
votes
1answer
64 views

\luatexluaescapestring{\unexpanded{ and % inside string problem

I am passing code listings from latex to lua function for processing and formatting. Using "\luatexluaescapestring{\unexpanded{ code }}" as main method to pass arbitrary code listing as is to lua, as ...
2
votes
0answers
57 views

Auto-pst-pdf, LuaLaTeX, and chemnum broken in TexLive 2016

I was testing some chemnum stuff now that I've updated to TexLive (TL) 2016. And Im getting and error where the auto-pst-pdf output PDF <basename>-pics.pdf is produced, but the main output, <...
5
votes
2answers
193 views

why luacode environments do not ignore lua comment — lines?

I do understand (a little) the difference between luacode and luacode* But I almost fell of my seat when something I wrote inside a commented line caused lualatex to scream at me. I changed luacode* ...
2
votes
1answer
52 views

LuaTeX does not find dfont fonts

I am currently working on my master thesis for which I use LuaLaTeX and Helvetica as my main font. I include it like this: \usepackage{fontspec} \setmainfont{Helvetica} This used to work quite well....
3
votes
2answers
102 views

Minion Pro, TL2016 and LuaLaeX

When I compile with LuaLaTeX and TL2016 this MWE \documentclass{article} \usepackage[no-math]{fontspec} \usepackage{luatex85} \usepackage{shellesc} \setmainfont{Minion Pro} \begin{document} \...
2
votes
1answer
39 views

Adjust font features for certain font styles / weights in LuaLaTeX

Using LuaLaTeX I want to make use of Feature Files / lua code in order to adjust the kerning of certain glyph pairs, see the MWEs below. Since my kerning corrections may not be appropriate for the ...
2
votes
1answer
45 views

tex4ht error when using --lua and luatex85 with datetime package

I had a problem with using datetime with lualatex under TL 2016. Thanks to the answer datetime-package-does-not-work-with-lualatex-in-tl-2016 the solution solved the issue when compiling with lualatex....
5
votes
1answer
106 views

datetime package does not work with lualatex in TL 2016

I am getting error compiling using lualatex under TL 2016 installed today when I use package datetime. This MWE works ok under TL 2015. How to resolve this error? It looks like the API to the datetime ...