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)

1
vote
0answers
80 views

Why am I getting this xunicode.sty error in Ubuntu 14.04 LTS?

So, I am trying to convert a file into PDF using the LuaLatex package. I am attaching the .tex file as well here. On running the command, lualatex abc where abc is the name of the .tex file, I get the ...
6
votes
1answer
57 views

csquotes: pdflatex vs. lualatex/xelatex

The following test document \documentclass[english]{article} \usepackage{babel} \usepackage{ifxetex,ifluatex} \ifluatex\else \ifxetex\else \usepackage[utf8]{inputenc} \fi \fi ...
2
votes
0answers
56 views

What do the various values of the Ligatures= option of fontspec do?

The fontspec package has a Ligatures option, usually encountered with the value Ligatures=TeX. This enables traditional TeX ligatures (or typing conventions) like mapping --- to an em dash. But what ...
4
votes
2answers
51 views

How do I get the XITS font to work with unicode-math and hepnames in lualatex

I have been trying to get the XITS font, hepnames and unicode-math to behave correctly together for quite some time now, but I have been unable to find a solution to my problem. Perhaps, I have been ...
42
votes
1answer
359 views

How to keep a “rare” ligature from interfering with a “common” ligature?

In ligature-rich Opentype fonts which feature both "common" and "rare" ligatures, it can happen that a "rare" ligature is applied first to one character pair, pre-empting the use of a "common" or ...
0
votes
0answers
85 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
0answers
52 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 ...
2
votes
1answer
43 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} ...
4
votes
1answer
40 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 ...
4
votes
1answer
63 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 ...
3
votes
0answers
26 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 ...
3
votes
2answers
67 views

No accents and ¿ ¡ in pdf bookmarks

I'm doing a book with LateX in spanish language and I'm having some problems with spanish accents and symbols ¿ and ¡. Here's my preamble, sorry, it's very huge: ...
3
votes
1answer
60 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 ...
10
votes
0answers
107 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} ...
1
vote
2answers
49 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 = ...
0
votes
1answer
93 views

Modern TeXes handling of Unicode [closed]

I just may be misinformed, but roughly: Is still true that PDF is in principle able to use only 8bit encoding vectors? If not, how do LuaTeX/XeTeX handle larger glyph sets?
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
89 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 ...
2
votes
2answers
35 views

Extra space by polyglossia

The LuaLaTeX code... \documentclass{article} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{german} \begin{document} English/\textgerman{German} \end{document} ...results in ...
9
votes
1answer
124 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} ...
0
votes
0answers
31 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 ...
4
votes
0answers
60 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
1answer
115 views

LuaTex doesn't open installed packages with openin_any=p options

I plan to launch online LuaTeX compile service. I installed LuaTeX using TexLive 2015 in CentOS 7. For security concerns, I want to restrict opening files. Therefore, I set openin_any=p. But, it also ...
2
votes
1answer
53 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
47 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
46 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 ...
3
votes
1answer
82 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
147 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: ...
5
votes
1answer
85 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 ...
0
votes
0answers
80 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 ...
3
votes
1answer
60 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, ...
7
votes
0answers
324 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: ...
2
votes
0answers
50 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 ...
4
votes
1answer
80 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
58 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} ...
3
votes
0answers
76 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 ...
1
vote
1answer
38 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} ...
3
votes
1answer
76 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 ...
10
votes
1answer
347 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} ...
1
vote
1answer
468 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) ...
6
votes
0answers
87 views

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

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
37 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
108 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 ...
2
votes
1answer
120 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 ...
8
votes
2answers
169 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 ...
3
votes
0answers
24 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
75 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
1answer
51 views

LuaLaTeX output from tex.print not interpreted

This is a follow-up from my previous answer to Automated Creation of Questions and Solutions for a Worksheet/Exam. I realised, that the macros I created like this ...
2
votes
2answers
66 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? ...
0
votes
0answers
56 views

A couple of compiling errors (possibly LuaLatex/chemnum/chemstyle related)

I'm having a few problems with a document that was originally compiling fine. I am using Texmaker, MikTex 2.9. The first is relating to the auto-pst-pdf package which now pulls up the error: ! ...