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)

0
votes
0answers
90 views

Wrong math symbols using LuaLaTeX after updating MikTeX

Last week, I updated my MikTeX distribution (both as administrator and user). When using the LuaLaTeX compiler, the resulting math symbols are incorrect. The same has been noticed before when using ...
2
votes
1answer
51 views

formular with cyrillic in Xe/Lua

Cyrillic in formular (https://www.ctan.org/pkg/formular) does not work with (Xe/Lua)LaTeX, but works in pdfLaTeX: \documentclass{article} \usepackage{ifxetex} \ifxetex \usepackage{fontspec} \...
57
votes
2answers
8k views

microtype settings for dummies

More than a year ago, a friend of mine was totally excited about microtype features in LaTeX. He was talking about it quite a bit and then said to me: "Show me your document, let me add some lines of ...
2
votes
0answers
77 views

LuaLaTeX vs XeLaTeX hyphenation and line layout [closed]

I am typesetting my journal just for the fun of it. I am using KOMA-script's scrartcl with two columns. I am testing with both LuaLaTeX and XeLaTeX. I haven noticed page count is different between the ...
4
votes
1answer
46 views

tex4ht problem with matlab-prettifier package. lstlisting code shows differently from lstinputlisting

It seems like a lost case using Matlab code in Latex when it comes to tex4ht. I switched to using matlab-prettifier package instead of mcode package to load Matlab code in Latex since I found too ...
10
votes
1answer
373 views

Wrong math symbols with XeLaTeX and LuaTeX after TexLive update

I just updated my TeX live installation (tlmgr update --all) and now I get some wrong symbols in math mode if I use XeLaTeX or LuaTeX. This MWE for example \documentclass{standalone} \begin{document} ...
2
votes
1answer
107 views

How to make pdf outlines work correctly in LuaTeX?

cwebmac.tex version 3.67 --- July 2006 The following Lua code converts string from UTF-8 to UTF-16BE with tex.write, which prints all with catcode 12, except space, which is what is needed. We add ...
4
votes
1answer
71 views

Is there a way to step through LuaLaTeX macros using a remote debugger?

Writing LaTeX macros has always been difficult, and it seems like writing a major package can only be accomplished by a Real Programmer. Fortunately, LuaTeX is on its way, and writing Lua macros is ...
10
votes
0answers
116 views

Setting up PDF outlines from Lua

In recent versions of LuaTeX, the PDF outline hierarchy may be set up from the TeX side with \pdfextension outline; for example: \pdfextension outline goto page \the\c@page {} count 1 {Chapter 1} \...
14
votes
3answers
1k views

How to change operator symbols in truth table

I need to type truth tables for my computer architecture classes. Until now I was using a manually typed tabular but today I've found this answer from Scott H. which provides a command called ...
8
votes
0answers
142 views

luaotfload | load : path lookup unsuccessful

When I typeset documents with LuaLaTeX and OpenType fonts I regularly get messages like this in the .log file luaotfload | load : path lookup of "Palatino Linotype.ttf" unsuccessful, falling ...
3
votes
0answers
30 views

How to produce only devanagari vowel signs (matra)?

Using texlive 2015 on OSX, and package devanagari, I can't seem to produce only vowel signs in devanagari? I'd like to be able to write only the matras for, for example a, o, and so on. I've tried ...
4
votes
1answer
71 views

“Rare” ligatures in LuaLaTeX and LMR font

How do I get "Rare/Discretionary" ligatures with the Latin Modern Roman Font in LuaLateX? So far I have loaded the fontspec package and have tried several different approaches the most promising ...
1
vote
2answers
70 views

Assign custom fontfamily to setmonofont

Is there an easier way instead of writing those commands twice? \newfontfamily\codefont[ Scale=MatchLowercase, Path = fonts/] {Inconsolata-dz} \setmonofont[ Scale=MatchLowercase, Path = ...
2
votes
1answer
85 views

How to separate pdf annotation from the file resource?

Let's suppose that we have an attached file: \immediate\pdfobj stream file {\jobname.tex} \pdfannot width 10pt height 10pt depth 0pt { /Subtype /FileAttachment /FS << /F (file) /Type /...
5
votes
1answer
31 views

visible hyphen char, why?

The pdf output of the following small example document is wrong if compiled with lualatex (Version beta-0.80.0): \documentclass{article} \usepackage{fontspec}% {2016/02/01}{2.5a} \begin{document} lm ...
5
votes
1answer
92 views

LuaLaTeX Manual Hyphenation not working

i globally declared the hyphenation of a word like this \hypenation{dis-tri-bu-tion-point-objekt} The Word is a mix of english an german (the last part objekt is in german language). But the word ...
3
votes
1answer
80 views

Luatex does not compile with Junicode

With \documentclass{article} \usepackage{fontspec} \usepackage{lipsum} \setmainfont{Junicode} \begin{document} \lipsum[1] \end{document} my compiler (0.80.0) stops at (/usr/local/texlive/2015/...
28
votes
5answers
3k views

Which is the best editor for LuaTeX?

Many (La)TeX editors support the LuaTeX engine. However, which one offers the best support for writing LuaTeX? Which editor or plugin supports features such as syntax highlighting and auto-completion ...
8
votes
0answers
451 views

lualatex and polyglossia with \setdefaultlanguage{german} does not work after recent texlive update

Here is a minimal example: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{german} \begin{document} Hallo Welt! \end{document} And here is the error message: (/mnt/software/...
9
votes
1answer
139 views

How can I define my own ligatures in lualatex?

Why are my ligatures not working? \documentclass[12pt,a4page]{article} \usepackage{fontspec} \setmainfont[FeatureFile=pytanie.fea, Path = /usr/share/fonts/dejavu/, Extension=.ttf]{DejaVuSerif} \...
3
votes
0answers
87 views

Is there any way to suggest to ConTeXt to take advantage of multiple cores?

I have access to a relatively slow, but hugely (12) multi-cored machine. My 200+ page document has compile times in the 400 second range. Are there any flags or hints that I can give to the mtx-...
0
votes
0answers
33 views

How to exclude ligatures from hyphenation, if their constituent characters have non-zero lccode?

Is there some trick to make LuaTeX hyphenate ``xxaaxx'' in the following example? \language255 \righthyphenmin=2 \lefthyphenmin=2 \hyphenation{xx-aa-xx} \parindent=0pt \hsize=1pt \hfuzz=100pt \lccode`...
4
votes
0answers
64 views

Callback to be run at the end of the job

My Lua initialization script opens some files that are written to in the course of the run. I would like to additionally write some last bytes to them when LuaTeX is done processing all code. It ...
2
votes
0answers
54 views

Why does Babel cause an error when used with PSPicture and LuaLaTeX?

The MWE showed below only compiles if the line \usepackage[greek,brazilian]{babel} is removed. \documentclass[a4paper,10pt]{book} \usepackage{auto-pst-pdf} \ifpdf\else \usepackage{pst-...
2
votes
1answer
58 views

User UTF-8 string in ConTeXt

I need to use input from a JSON inside my text. Sometimes it contains UTF-8 code. For example: Belgi\u00e cre\u00ebren How can I use such string in ConTeXt LuaTeX, so the result is a correctly ...
0
votes
0answers
62 views

Cannot compile old luatex code

I can't compile the answer given here: In LuaTex is it possible to change font/language according to the script/glyphs used? Is it because it's old? My compiler says that \luatexdirectlua is ...
3
votes
1answer
52 views

unicode-math and redefine a built-in math command

I'm trying to redefine a math command (let's say \int) so that it will always do more (let's say \int lol) using the following trick: http://tex.stackexchange.com/a/47353/15659 BUT, now I want to use ...
6
votes
3answers
258 views

LuaLaTeX and TeX Gyre Pagella in pdflatex for arXiv

Since arXiv still doesn't seem to support LuaLaTeX, I need to make my document work with pdfLaTeX instead. The only LuaLaTeX-specific stuff is \usepackage{fontspec} \usepackage{unicode-math} \...
4
votes
1answer
97 views

Use libertine numbers in math mode and with siunitx

I am here again to seek your help. I would like all numbers in my document to be the same (in text or math mode). Now I have Please note also the size difference. What is the way to have all ...
0
votes
0answers
186 views

Having trouble using fontspec package with LuaLaTex in TexWorks

I am trying to compile the following code in TexWorks with LuaLaTex: \documentclass{article} \usepackage{fontspec} \begin{document} Hello \end{document} It works without the line: \usepackage{...
5
votes
1answer
112 views

Layered Graph from Tikz Manual

I suppose I have quite some experience with vanilla latex (which I have used to write several documents), but I am making my first baby steps with tikz. In particular, I am trying to reproduce the ...
3
votes
1answer
61 views

best way to know bottom-line height of a pdf

For some project, I need to make a PDF of one page, with no margin whatsoever. The left, right and top margin are easy to set to 0, but I also need the pdf to have the exact height of what's inside, ...
0
votes
0answers
99 views

Cannot load hyphenation patterns

I installed today the latest version of Texlive 2015 on Windows 10 LuaTeX Version beta-0.80.0 TeX Live 2015/W32TeX (rev 5238) but when I compile (I use LuaLaTex) I receive the following ...
2
votes
0answers
47 views

superscripts and footnotemarks break in nested \import with realscripts

I managed to produce strange interference between nested \import and superscripts, made accessible for LuaTeX by realscripts.sty. My document organisation depends on the comfortable, path-agnostic ...
5
votes
1answer
137 views

How to set Overleaf to compile with `lualatex --shell-escape <file>`?

I'm trying to use the solution given by the accepted answer in How to have \psframe working with LuaLatex? but I don't know how to enable the option --shell-escape there. Overleaf explains that it ...
1
vote
1answer
68 views

LuaLaTeX comma issue in math mode [duplicate]

I am having an issue compiling math equations. I got a weird comma symbol with lualatex. Here is a MWE and the result : \documentclass[french]{report} \usepackage{fontspec,luatextra,xunicode} \...
8
votes
2answers
183 views

Modifying fraction macro for in-line text and exponents

There's an amazing fraction macro here* for FontSpec with LuaLaTeX (*: that would be the second macro in that answer, called \unifrac, which I like better than the first "macro"/ using the frac ...
2
votes
1answer
930 views

Error when compiling with lualatex file “ltluatex.tex”

In many cases, when compiling with lualatex I have this error (c:/texlive/2015/texmf-dist/tex/latex/base/ltluatex.tex File: ltluatex.tex 2015/10/03 v1.0f LuaTeX support for plain TeX (core) ...
1
vote
1answer
44 views

How to have \psframe working with LuaLatex? [duplicate]

When I try to compile the code below in Overlef, I get an error if I set LuaLaTeX as LaTeX Engine, but no error if I set Choose Automatically. \documentclass[a4paper,10pt]{book} \usepackage{pst-...
3
votes
2answers
488 views

Media9 compiles but embedded video gives “Unable to connect to content” “TypeError - Error #1009”

I have a beamer presentation that I am creating and I'm trying to embed a video clip. I'm using the media9 package and having a ton of issues with it. I've gone through the documentation with a fine-...
7
votes
2answers
246 views

Extract data from excel file with lualatex

I have an Excel file that I use as a database. Of course, there are a lot of entries (more than 4000) and I don't want to use all the data to create my PDF. So I was thinking of using LuaLaTeX to ...
6
votes
0answers
113 views

lualatex with package unicode-math does not work after texlive update [closed]

After the recent TeX Live update (tlmgr update --all), LuaLaTeX together with unicode-math does not work any more! Here is a minimal example: \documentclass{article} \usepackage{unicode-math} \...
0
votes
0answers
38 views

LuaLaTeX æquivalent to ucharclasses [duplicate]

I am using the XeLaTeX ucharclasses package to switch language and font features on transition into the Greek and Latin unicode ranges. Is there a LuaLaTeX compatible alternative?
2
votes
1answer
140 views

LuaLaTeX and mathspec

It seems that, if I want to use the letters and digits from a system font that is not especially designed for mathematics in math mode as well, I need mathspec and XeLaTeX; and cannot replace XeLaTeX ...
12
votes
1answer
226 views

Misplaced Accents in Cyrillic Text

In educational material for the Russian language and linguistic literature the need to put accents on Cyrillic vowels often arises. However when I tried to do this with luaLaTeX the accents where ...
7
votes
3answers
6k views

Command \texteuro unavailable in encoding T1

I want to know how does LaTeX figures out if the Eurosymbol (€) is a glyph of a given T1 font. I tried \iffontchar but it seems the value is not unique. AFAIK it's not a standard symbol of the 256 ...
3
votes
0answers
30 views

Problem with hyperref, sidewaysfigure and LuaLaTeX

I have a landscape figure inserted in a sidewaysfigure environment with a reference in the caption. If I compile the document with pdfLaTeX all works well but if I compile with LuaLaTeX the red square ...
8
votes
1answer
113 views

siunitx 'detect-all' does not honor fontspec's math font in Beamer

Problem statement The \sisetup{detect-all} option of the siunitx package does not work for me as expected in a Beamer presentation, which I would like to typeset as follows: Text in Latin Modern ...
2
votes
2answers
87 views

How to set hyphenation parameters automatically in LuaTeX?

In the following example we need to hyphenate "aa-aa", but not "bbbb". How to set righthyphenmin=2 automatically if all letters of a word are "a", and keep it default for all other cases? \...