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)

6
votes
1answer
37 views

Placing your (live) 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 {\...
7
votes
2answers
214 views

luaLaTeX Junicode font typesetting of ji and ii

\documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{Junicode} \begin{document} \noindent ji\\ ii\\ j\mbox{}i\\ i\mbox{}i \end{document} is rendered by lualatex with dotless i on the ...
6
votes
1answer
223 views

How to get box dimensions within lualatex

I'm new to lualatex, which looks phenomenal. I wonder what the easiest way is to access the dimensions of a box from within lualatex. I intend to use it in more complicated situations than this (as ...
0
votes
1answer
71 views

Using APA style referencing in elsarticle class document?

Ive just had my paper sent back to me by the editor of a journal I submitted to and was instructed to change the referencing system of my paper to APA ver. 6 style. Text: Citations in the text ...
2
votes
1answer
58 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
16 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 -...
14
votes
2answers
273 views

How to adjust font features in LuaTeX?

As of version 2.7 of luaotfload the support for font feature files (.fea) has been dropped. On the ConTeXt mailing list Hans showed how to make font substitution work through Lua. More examples are ...
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
50 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
36 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, <...
4
votes
2answers
177 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* ...
8
votes
2answers
136 views

Lualatex and bm package

I've updated my latex packages yesterday and have now issues with lualatex. One problem arising for me now is, that lualatex does not print bold characters using the bm package. When I compile the ...
2
votes
1answer
46 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....
8
votes
2answers
122 views

TeXLive2016 lualatex does not use optical sizes for MinionPro opentype font

With current texlive 2016, the file \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures={TeX}} \setmainfont{Minion Pro} \begin{document}% \newcommand{\MyText}{No offence ...
3
votes
2answers
88 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} \...
6
votes
1answer
45 views

pgfplots -> contour gnuplot with lualatex instead of pdflatex

i want to compile several pgfplots pictures with lualatex, since it dynamically allocates memory for compiling (in contrast to pdflatex). In some plots, like my MWE.tex given below, i want to use a ...
7
votes
2answers
232 views

LuaLaTeX, TeXLive 2016, standalone: undefined control sequence

Since I installed TeXLive 2016 I cannot build documents with the standalone document class any more using LuaLaTeX (PDFLaTeX works fine). For example: \documentclass{standalone} \begin{document} hi \...
6
votes
1answer
44 views

Error with tex4ht under TL 2016 when using lua. String contains an invalid utf-8 sequence

I just installed TL 2016 on new Linux mint OS. >which latex /usr/local/texlive/2016/bin/x86_64-linux/latex >which make4ht /usr/local/texlive/2016/texmf-dist/scripts/make4ht/make4ht The first ...
2
votes
1answer
37 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
89 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 ...
1
vote
0answers
19 views

Use pdfx with customized XMP packet

When using pdfx for producing PDF/A-1b documents, one should supply the necessary metadata in a file named _texname_.xmpdata, which will be translated later to the XMP packet proper, pdfa.xmpi. (...
1
vote
1answer
31 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 ...
7
votes
0answers
55 views

Properly breaking up ligatures using selnolig / LuaLaTeX

Currently I use the selnolig package together with LuaLaTeX to automatically break up ligatures. This works quite well regarding the fact that ligatures get broken up at the right places. Note however,...
11
votes
2answers
368 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.."}") \end{luacode*...
3
votes
1answer
40 views

Vanishing math font styles in unicode-math due to a mess of mathtools, mathtt and using math fonts with ranges

I’m using TeXLive 2015. Okay, so I have some sort of poltergeist in the following code. I compile it with either XeLaTeX or LuaLaTeX. \documentclass{article} \usepackage{ fontspec, % mathtools,...
2
votes
1answer
351 views

Minion Math with LuaLaTeX

I cannot get the font Minion Math to display correctly in LuaLaTeX. Several posts on here and the official font support page all say to use the package unicode-math. And so I try: \documentclass{...
3
votes
1answer
60 views

Error using pdfpages and lualatex

After upgrading to Tex Live 2016/Debian i get errors when using the package pdfpages and compiling with Lualatex. If i try to compile \documentclass[a4paper,portrait]{article} \usepackage{pdfpages} \...
0
votes
0answers
91 views

scrlttr2 & lualatex: Missing number, treated as zero [duplicate]

I can compile the following example with pdflatex (even though it complains about the missing babel package) , but not lualatex from TeX Live 2016: \documentclass{scrlttr2} \begin{document} \begin{...
2
votes
0answers
47 views

lualatex breaks after update to texlive 2016 [duplicate]

After I install the texlive 2016 (schema full), I got the error: ! Missing number, treated as zero. by compiling the code below with lualatex:: \documentclass[]{scrbook} \title{Test} \begin{...
11
votes
1answer
278 views

Solution to 'Multiple PDF generation with one tex file' does not work anymore with TeXLive 2016

The solution in Multiple PDF generation with one tex file worked with TeXLive 2015 and is now broken in TeXLive 2016, at least on OS X El Capitan. Minimal Example: \documentclass{article} \ifx\...
13
votes
3answers
226 views

Accessing TeX token or exporting filtered plain text

(updated according to gained information) In the context of keyword extraction from arbitrary (La)TeX documents and simple manipulations with them (automated annotation), I would like to be able to ...
5
votes
0answers
61 views

Labeling custom path in TikZ [duplicate]

MWE: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, graphs, matrix, quotes} \usepackage{fancyhdr} \pagestyle{empty} \begin{document} \begin{tikzpicture} \matrix[...
5
votes
1answer
120 views

lualatex texlive 2016 tcolorbox

If you compile with tl2016 lualatex this MWE \documentclass[10pt, xcolor=svgnames, x11names, t]{beamer} \usepackage{etoolbox} \usepackage{ifluatex} \ifluatex \usepackage[no-math]{...
3
votes
1answer
83 views

fontspec with LuaLaTeX using Arial Narrow, while XeLaTeX is correct

I'm currently working on a document which I edit from multiple machines, both running Windows 10. In both cases I'm using Miktex (x64). There is however an issue on one machine, when I try to compile ...
2
votes
1answer
55 views

bold issue in latex

\documentclass[a4paper,12pt]{report} \usepackage[Sonny]{fncychap} \usepackage{fullpage} \usepackage{algorithm} \usepackage{graphicx} \usepackage[T1]{fontenc} \usepackage[toc, page, header]{appendix} ...
6
votes
1answer
70 views

Remove ligature in a font using luaotfload (TeXLive 2016)

The luaotfload package in TeXLive 2016 has an interface to add new font features and replace the FeatureFile feature of fontspec in previous versions (see the following patch: https://github.com/wspr/...
12
votes
1answer
379 views

TeX Live 2016: minted doesn't work with LuaLaTeX

I've installed TeX Live 2016 as it was released today (thanks to the developers for that). Now I have the following MWE: \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{...
2
votes
1answer
66 views

Implementing \luaescapestring in plain e-TeX

I'm trying to implement \luaescapestring in plain e-TeX. My solution needs to be fully expandable, so that \immediate\write\luascript{ local file = "\luaescapestring{\something}" } works. The ...
3
votes
3answers
77 views

TeXLive-2016: Strangely, CronosPro-BoldCaptIt is loaded instead of CronosPro-BoldCapt

The file \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{MinionPro} \setsansfont[Ligatures=TeX]{CronosPro} \begin{document} MinionPro: \textbf{bold} \textsf{CronosPro: \...
2
votes
1answer
52 views

LuaTeX for memoir and microtype

I'm typesetting a novel using the memoir class and trying to figure out whether to use XeTeX or LuaTeX. As per the microtype documentation, protrusion, expansion and (=auto) work with LuaTeX, but only ...
3
votes
1answer
53 views

Problems with LuaLaTeX and Combining Characters

A project I'm working on requires the use of a somewhat unusual character, m̊. Unlike, say, the "a with ring," as in Swedish, a pre-combined form of this letter does not exist in Unicode, it can only ...
3
votes
1answer
124 views

Noto CJK font issue with LuaLaTeX

I am seeing the following error at the very end of first pass when I am trying to build my document: </usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc(NotoSansCJKtc-Regular:3) !LuaTeX error ...
0
votes
1answer
84 views

How can I insert pictures in (EPS/JPEG/PNG) format in a tex file?

I have a .tex file which goes something like this: \NeedsTeXFormat{LaTeX2e} \documentclass[border=10pt]{standalone} \usepackage{fontspec} \newcommand*{\NewFont}[1]{% \expandafter\newfontfamily\...
2
votes
0answers
44 views

Small Caps not working for non-LaTeX font

I'm using a special font called 'Brandon Grotesque' (it has to be exactly that one) for a presentation based on the Beamer class. When trying to get small caps output, it doesn't work. I'm using ...
1
vote
1answer
79 views

Can't load system font by name with XeLaTeX but with LuaLaTeX

I installed a TrueType font in windows 10. Now I want to use it with XeLaTeX. The font can't be loaded. The first message is Sorry, but miktex-makemf did not succeed for the following rea son: The ...
40
votes
4answers
5k 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 ...
13
votes
2answers
162 views

luatex85: New definition of \pdfcreationdate is problematic

The package "datetime2" scanned the macro \pdfcreationdate. This failed with the changed definition in "luatex85.sty" and LuaTeX 0.95. See the following example: \listfiles \setcounter{...
3
votes
0answers
30 views

Specify fonts from specific .ttf files

In order to specify the sans serif font in report I am successfully using the following and all of the font shapes are being reproduced in the pdf without warning. \setsansfont[Path = fonts/Lato2OFL/,...
18
votes
2answers
851 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} \...
2
votes
1answer
133 views

How declare a new package language

I need writing normal text and some sentences in artifical conscript language. How writing small as possible package and how use it (include?) in file? My language have my own font and each glyphs is ...