Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [luatex]

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}.

6
votes
2answers
251 views

fontawesome does not show symbols - xelatex, lualatex

I am trying to use fontawesome package with BasicTex distribution with the following code: \documentclass{article} \usepackage{fontawesome} \usepackage{fontspec} \defaultfontfeatures{Mapping=tex-text,...
3
votes
2answers
166 views

Minimal Babel and LuaLaTeX Hebrew bidi example

I've noticed that Babel's bidi support is gradually improving, and this means that I'm keen to see when I can move over from XeTeX to LuaLaTeX (mostly because of the extra microtype features it will ...
0
votes
1answer
60 views

Fontspec changes the bold math

I wish the A, B and C of the matrices defined as follow were written using the default computer modern font. I'm using the fontspec package with LuaLaTeX, but when I set the main font it also changes ...
8
votes
2answers
372 views

Install an Updated Version of an Open Type Font for the Use with LuaLaTeX in TeX Live 2018

In my TeX Live 2018 installation on Linux, I want to replace the Libertinus fonts shipped with TeX Live by their latest GitHub build. If they are used in LuaLaTeX e.g. via \usepackage{fontspec} \...
2
votes
2answers
124 views

Is it OK to use packages like newtxtext or babel in LuaTeX and XeTeX?

I usually use newtxtext for most of my documents, but I'm trying to switch to XeTeX from pdfLaTeX. The Unicode characters ¿ and ¡ show up as £ and ą when using newtxtext on LuaTex and XeTeX, so I just ...
1
vote
0answers
48 views

macro to produce special quote marks (e.g. /word/) [closed]

I have a large text (> 300 pages) to edit in which words are often used as "word x" and not with their regular meaning. It is customary to mark such uses (often with ordinary quote marks or with /word/...
2
votes
0answers
65 views

Wrong characters highlighted in .pdf

I'm trying to create a resume using latex. But when I highlight some text, the wrong characters are parsed/selected in various different pdf readers (adbobe, chrome, firefox, etc.) Here is a picture ...
3
votes
1answer
56 views

Standalone doesn't place properly the content

I'm trying to create many small pdf graphics such as this one: \RequirePackage{luatex85} \documentclass[11pt,a4paper]{article} \usepackage[margin=0cm]{geometry} \usepackage[dvipsnames]{xcolor} \...
1
vote
0answers
70 views

LuaTeX: matrix in equation trows “missing number, treaded as zero” Error [closed]

Solved: I had declared an algorithm just before this equation, in it I did set \SetKwArray{array}{array}. I changed it to \SetKwArray{arraq}{array}, works fine now. This is my document. It throws ...
2
votes
0answers
270 views

setting up lualatex paths with local texlive

I have two installations of texlive: the one provided by my distro (gentoo linux) and the "full" texlive distribution installed to a subdirectory of /home/[user]/. I'm working on a project that ...
0
votes
0answers
49 views

Library to get the struction of a latex document

I'm looking for a library that returns a structure (perhaps OO) of a latex document. For instance Chapter 1 Section 1.1 Definition 1 Lemma 2 Ref to ... Section 1.2 Definition 3 Lemma 4 Ref to ...
6
votes
1answer
180 views

British hyphenation in plain LuaTeX

In plain LuaTeX, how do I get British rather than American hyphenation? \input eplain \beginpackages \usepackage{showhyphens} \endpackages In plain TeX, how do I get British rather than American ...
2
votes
2answers
104 views

Xelatex and LuaLatex incorrectly rendering formula

The following formula is incorrectly rendered in XeLatex and LuaLatex. \documentclass[]{article} \usepackage{fontspec} \begin{document} \begin{equation} {\mathbf{\dot y}},\mathbf{\tilde y} ...
0
votes
0answers
67 views

Fixing bad kerning in an Adobe font

I own a couple of "professional" fonts from Adobe that shipped with the Creative Suite that I purchased some years ago. In my search for a nice text font for use in correspondence and longer texts, I ...
1
vote
0answers
144 views

“cannot-use-pdftex” even with “xelatex” and “lualatex” [closed]

\documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Times New Roman} \newfontfamily\arabicfont [Script=Arabic, % to get correct arabic shaping ...
2
votes
1answer
118 views

Babel and 'polytonic' Greek in plain LuaTeX

Is it possible to use Babel with 'polytonic' Greek in plain TeX with LuaTeX? I tried \input greek.sty \begindocument hullo \bye but that generated an error.
1
vote
1answer
51 views

Custom hyphenation for words containing accented letters with LuaTeX

Prenote: I know, that there are already some questions regarding the hyphenation of words containing accented letters with LuaTeX. However, I couldn't find one, that really targets my problem. Using ...
0
votes
0answers
32 views

How to use Freight Sans Pro in TexMaker? [duplicate]

I know that there are loads of questions like this, but I'm such a tex-rookie, I haven't been able to find an answer. I need to use the font Freight Sans Pro in my Tex-document. I have the font ...
1
vote
1answer
55 views

Font symbols displayed in squares characters

I wanted to use a custom arabic otf font symbols, which you can find a table of the characters here \documentclass{article} \usepackage{fontspec} \newfontfamily\arbsym{arabic_symbols.otf} \begin{...
2
votes
2answers
166 views

Lualatex: Change the colour of a specific character

This is similar to Change the color of capital letters and the MWE below is modelled on egreg's answer. It works up to the point of correctly changing the first character in the input string. What I ...
1
vote
1answer
49 views

Csvsimple with colored rows gives black cell in the next table

What is wrong with: \documentclass[12pt]{article} \usepackage{fontspec} \usepackage[american]{babel} \usepackage{libertine} \usepackage{xcolor} \usepackage{colortbl} \usepackage{csvsimple} \...
9
votes
3answers
303 views

Issue with Burmese and LuaLaTeX

I am working with a project which requires LuaLaTeX (TeX Live 2018) and the Noto Serif Myanmar font. I need a few words of Burmese only. The MWE works well with XeLaTeX. But LuaLaTeX has a problem ...
2
votes
1answer
171 views

LuaTeX: Call a Lua function with two optional arguments

I've read More than one optional argument for newcommand and I chose the answer with xargs. I would like to pass a second optional argument to the Lua function. But the first of the two commented \...
2
votes
1answer
58 views

Included lilypond files being processed by lualatex can't contain % symbol comments

My MWE below shows two files working together to create a document containing music using the lyluatex package. Unfortunately, I've observed that if I add any comments to the contents anywhere in the ...
3
votes
1answer
57 views

Non-trivial nested environment expansions with lualatex dependent packages

In the following MWE I have an environment that needs lualatex to compile. In brief, I'm trying to create an environment that creates a very specific instance of another environment, i.e. with a ...
0
votes
1answer
134 views

Why does lualatex have problem with a .ttf that xelatex accepts?

This document works fine with xelatex, but not with lualatex: \documentclass{article} \usepackage{fontspec} \setmainfont{Berling Roman} \begin{document} Hello123 \end{document} With lualatex it ...
8
votes
1answer
288 views

Why the version of e-TeX extensions in LuaTeX is different?

Here is the very simple MWE: % Plain \number\eTeXversion\eTeXrevision \bye But the results differ by TeX engine (in TeX Live 2018): pdfTeX, XeTeX: 2.6 LuaTeX: 2.2 Considering only e-TeX ...
8
votes
2answers
293 views

Minion Pro and breve under accent

I am having a problem with Minion Pro and breve under accent (via semtrans package or via ḫ). How can I adapt this solution by @egreg to this case? \documentclass{article} \usepackage{fontspec} \...
1
vote
1answer
20 views

\hyphenation{…} conflict with TIPA

Hyphenation exceptions defined with \hyphenation are not taken into account if the string to be hyphenated contains TIPA diacritics. However, manually inserting hyphenation points produces the ...
1
vote
1answer
92 views

luamplib Multiple beginfigures

I'd like to include a METAPOST file that contains multiple beginfig blocks in my LuaLaTeX document. I'm including the file using input filename ; within a mplibcode environment, but this just places ...
2
votes
1answer
73 views

(Lua) LaTeX & HeVeA with partly generated things

Context of my question I am developing bismon (temporary name), some kind of persistent domain specific language for static source code analysis tied to GCC (to become a successor of my late GCC MELT)...
1
vote
0answers
97 views

Use Custom Made Font [closed]

I created my own font but I am having trouble to use it in latex. I am using luatex, fontspec and book class. This is my test file: \documentclass{book} \usepackage{fontspec} \setmainfont[Path=C:/...
0
votes
0answers
75 views

Unicode-math with LuaLaTeX (but not XeLaTeX) destroys spacing of my binary operator

Consider the following code: \documentclass{article} \newcommand{\tensor}{\otimes} \newcommand{\comptensor}{\mathbin{\hat{\otimes}}} %\usepackage{unicode-math} \begin{document} \[ V \...
1
vote
0answers
63 views

table of contents empty if compiled with LuaLaTex [duplicate]

I have a weird problem with LuaLaTex. The following minimal example works fine with either pdflatex and xelatex, as the contents page is filled with all the chapters. If I compile the same example, ...
2
votes
1answer
139 views

How much memory does LuaTeX use?

I've had issues compiling documents this week using LuaTeX on my laptop, where LuaTeX seems to gobble up as much memory as it can, totally crashing the laptop—i.e. requiring a hard reset as it's ...
1
vote
1answer
113 views

Is there a common preamble for all TeX engines?

I know that there is the iftex package that allows you to do specific actions depending on whether the engine used is PDFLaTeX, XeLaTeX or LuaLaTeX. I also know that LuaLaTex forbids using the ...
1
vote
0answers
57 views

Correct braille font [closed]

Have a Ubuntu 16.04 OS. I installed Braille font from here http://www.fontspace.com/philing/braille-normal. I want to compile this code gotten from here: \documentclass{article} \usepackage{braille} ...
5
votes
3answers
100 views

Difficulties obtaining math (italic) style in mhchem aligned equations with unicode-math

This looks like a unicode-math bug to me, but perhaps an expert here can confirm this. I am presently using the Libertinus math font family with luatex for my PhD thesis. For chemical equations, I am ...
3
votes
1answer
98 views

Weird arrows with mhchem - Bug in package, font or LuaTeX?

I am using the mhchem package with the Libertinus font family in my PhD thesis. When typesetting with LuaTeX, there are some weird issues with arrows depicting reactions. Here is the MWE to ...
4
votes
1answer
158 views

Lualatex crashing after compiling large document

I am using Lualatex because it has the property to dynamically extend its own memory. Currently I am using longtabu like that \setlength{\tabcolsep}{1mm} \begin{longtabu} to \textwidth {| p{30mm}| ...
0
votes
1answer
62 views

Merge in manual TOC entries in a LuaLaTeX document

I am working on a document generation infrastructure with LuaLaTeX and a Lua package. One part of the process is including an externally generated multipage PDF which includes multiple sections. My ...
1
vote
1answer
133 views

\micro in package siunitx stopped working

Using the \micro command in siunitx worked fine some months ago. But suddenly, maybe caused by software updates, some fellows and me aren't able to use \micro in siunitx. There is no error, the \mu ...
0
votes
0answers
56 views

Generate tex file from lualatex

Consider the following tex file, which compiles fine with lualatex. \documentclass[preview]{standalone} \usepackage{luacode} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) ...
4
votes
2answers
108 views

\chemgreek + \fontspec + Lucida.otf = missing greek characters

I am using LuaLaTeX with an Open-Type version of the Lucida font (from tug.com) along with \chemmacros with the latest version of TeXLive 2017. I think, that I have set up everything correctly but \...
10
votes
2answers
383 views

\savepos=\savepos in lualatex. Why?

I use LuaLaTeX. Today I decided to try the gridset package. To my surprise, \usepackage{gridset} produced an error, telling me that the \savepos command was already defined. MWE: \documentclass{...
4
votes
1answer
64 views

Kerning of pairs with LuaTeX for babel shorthands

I want to make use of the pairwise kerning of this answer: https://tex.stackexchange.com/a/370469/75284 using fonts.handlers.otf.addfeature to adjust the kerning of character pairs with the hyphen -. ...
1
vote
0answers
32 views

Combining unicode and normal font styles [duplicate]

I'm typing a document which quite heavily relies on script math fonts and a double-stroke 1 for the identity operator, however, text is in Spanish, so I'm using LuaLaTeX for maximum versatility, ...
0
votes
1answer
36 views

Trying to get the right arrow head on my Feyman diagram

So this is the code that genreates the image below. I am trying to get the pointed arrows on the fermions but I have no idea why is not working wit particle. Any help will be appreciated. \...
2
votes
1answer
50 views

When is \if executed in a class file

I have a custom class file, myclass.cls, which contains the following snipped: \usepackage{totcount} \newtotcounter{hintcounter} \newtotcounter{draftcounter} \usepackage[printwatermark]{xwatermark} \...
4
votes
3answers
191 views

Advanced macro with character recognition

I would like to code an advanced macro that would look like \begin{exercise}[....] bla bla bla \end{exercise} In the brackets [....], I would put strings like : FFFHHC F HHF CCH ? etc. The ...