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

4
votes
1answer
94 views

Mathematical Operators such as \lim are set in wrong font after changing mainfont

In my document I need to use Constantia as main font and Arial for different parts of the document. Therefore I use LuaLaTeX to compile the document. Furthermore I need siunitx and unicode-math. The ...
3
votes
4answers
79 views

Pass value from newcommand to siunitx

I have the following MWE \documentclass{standalone} \RequirePackage{luatex85} \usepackage{fontspec} \usepackage{siunitx} \usepackage{datatool} \usepackage{filecontents} \begin{filecontents*}{myfile....
3
votes
1answer
83 views

Why user-defined whatsit kicks out kerning?

I ran in to trouble marking math content (in this example I'll be talking about simple superscript) with user-defined whatsit. Font kerning does not appear if whatsit is in between characters where ...
1
vote
1answer
72 views

Error when using dvipng: “+tlig; source file could not be found”

I am trying to use dvipng to compile .tex files to .dvi and then to convert it to .png. Here is the test.tex file that I am using as a minimum reproducible example: \documentclass[]{article} \title{...
1
vote
0answers
41 views

Printing an index without running makeindex

I have a complex program that makes an index seqB.idx and the corresponding seqB.ind. I'd like to be able to use a much simpler LuaLaTeX program to process this and produce a PDF. So I tried the ...
1
vote
1answer
71 views

Gregorio - How to get 5 line staff

wondering if there's a way to get a 5 line staff output with Gregorio. Default is 4 line staff, but I have read all the documentation and seems possible but they didn't mention how.
0
votes
2answers
85 views

Numbering index entries

This is a follow-on from a question answered by Marcel Krüger. I need a custom sort, so I generate a sort key that is prepended to the index entry. This works very nicely, but I'm wondering what is ...
3
votes
1answer
78 views

\hline does not produce anything

I am trying to create a simple table with visible lines and columns separators (horizontal and vertical lines). The LaTeX code seems straightforward. To draw horizontal lines, you should insert the ...
1
vote
1answer
58 views

Indexing with custom sort order and subentries

I'm using LuaLaTeX to generate a sort key override the default sort order for bidding sequences. The simpler entries look like e.g. \index[seq]{1T-1K}, \index[seq]{1T-1C}, \index[seq]{1SA-2T} ...
2
votes
1answer
93 views

luatex fontloader virtual glyph table problem

I'm using Brill-Roman.otffont and with luatex I don't know how to access smallcaps glyphs from virtual fontloader.to_table returned table glyphs. There is no such index and I have no idea how to get ...
3
votes
1answer
98 views

How to access etoolbox toggle inside Lua

I'm creating a package that uses etoolbox toggles but a good amount of the package is written in Lua. Is there a way to access the etoolbox toggles direct in Lua? I know that etoolbox uses a ...
0
votes
1answer
105 views

Defining a replacement of a unicode character in lualatex

In the past I asked a question about a replacement character for a unicode character (FFFD) in case of and xelatex (Defining a replacement of a unicode character), this works nicely. Now I need it for ...
2
votes
2answers
98 views

How to modify main font?

I would like to define \textsb command for semibold text as I could not find a package providing one (I very much wonder why it’s not part of the standard commands). I’ve found a nice solution in ...
0
votes
1answer
68 views

How to use tfm font with “LAE” encoding with xelatex & lualatex

I have this example of writing arabic with tfm font which work fine with pdflatex, the font is provided from arabi package. https://ctan.org/tex-archive/language/arabic/arabi \documentclass{...
1
vote
0answers
133 views

Using start/stopxmlsetups with the ConTeXt Lua Interface

How could I write something like the following converter using only the Lua interface? \startbuffer[test] <html> <body> <p>Some stuff</p> <p>More stuff,...
1
vote
1answer
68 views

dot2texi fails to convert automatically due to “Shell escape not enabled.” not matter whether -shell-escape is specified to lualatex

The following document fails to compile properly/automatically because dot2texi fails to convert the dot specification and warns about it with Package dot2texi Warning: Shell escape not enabled. (...
0
votes
1answer
110 views

Error when compiling with lualatex

I was using the mimosis documentclass available at https://github.com/Submanifold/latex-mimosis. Compiling the default Thesis template with lualatex gives an error: Following is an MWE: % !TeX ...
1
vote
2answers
101 views

LuaTex setting locale

My Memoir section titles contain French accented characters and some suit symbols (e.g. \Ts). The former can be used directly in PDF bookmarks but I haven't found any reliable way of replacing the ...
2
votes
1answer
40 views

Spurious characters in Lua string

I'm trying to generate a section title programatically from some constituent strings. The simplified MWE just concatenates them (the live system will do more complex processing) but I get a leading ...
1
vote
1answer
62 views

How to change font style of numbers/caption label and pagenumbers in toc and listofs in Koma-Script?

maybe I am asking the wrong question, but I think what I want to do is to change the font style of the numbers / caption labels and the page number in the table of contents and list of tables/figures/...
2
votes
1answer
57 views

Adding user defined nodes to math NOAD

I'm trying to tag a math superscript using mlist_to_hlist callback. I imagine superscript noad like a head (or list having two noad lists nucleus and sup) where I can put my created noads. But I can't ...
8
votes
1answer
102 views

How to access \pdffeedback values in lua code?

I can access e.g. the object number of a page in luatex with \pdffeedback. Is there a way to get the same value in pure lua code? \documentclass{article} \usepackage{luacode} \begin{luacode} ...
2
votes
1answer
309 views

Load libertinus font with libertinus-otf package

I am trying to use Libertinus font with Lualatex. I have found so many different suggestions how to do it and finally decided to try the package libertinus-otf. It was not included in my texlive ...
4
votes
1answer
153 views

Unicode-math: Use several calligraphic fonts in parallel

I would like to use e.g. the calligraphic font from two different fonts conveniently in the same document. For example in the snippet below, how can I load in parallel e.g. the calligraphic fonts ...
11
votes
1answer
183 views

Querying the state of a boolean from lua

I can query and use the states of counts in lua without problem. But now I'm wondering how to at best do it with booleans. I have been looking at the token library but it seems not to allow to get and ...
1
vote
0answers
127 views

Why does the texlive version of (lua-)latex not have the `--aux-directory`switch? [duplicate]

On Windows (MiKTeX), lualatex has a --aux-directory switch. On Linux (TeXLive) it does not. Why is that? If it is a downstream patch only present in MiKTeX, why is it not in upstream lualatex? It ...
1
vote
1answer
30 views

Display of pages per glossary item in glossaries-extra

Update: I've found an adequate answer - see below. I have many occurrences of certain glossary items spread out over a 100 page document. My output has two entries per line GF Game force 14, 19, ...
0
votes
1answer
46 views

Package tabfigures adds a spurious word “tabular”

I ran the MWE with LuaTEX version 1.0.4TeX Live 2017/W32TeX on a Windows 10 machine with Minion-Pro V2.112 makeotf.lib 2.5.5900. I'm appending the file list! In the MWE, I have commented out the \...
4
votes
1answer
89 views

Math script size changed between unicode-math v0.8e and v0.8g?

I have just compiled an existing document using a more recent version of unicode-math and noticed that a lot of line/page breaks were different. The reason seems to be that the sizes of sub-/...
3
votes
0answers
74 views

Chessboard and LuaLaTeX/OTF fonts

I haven't used chessboard for a long time. I'm wondering how I can use it with LuaLaTeX and my own chess fonts. Can someone help me with an example file? I'm having especially troubles how to let ...
4
votes
0answers
86 views

\string-primitive works in unexpected ways in LuaTeX — Where can I find exact documentation of the \string-primitive in LuaTeX?

Where can I find exact documentation of the \string-primitive in LuaTeX? I ask this question because I encounter some unexpected (at least by me) behavior when compiling the example below with LuaTeX....
1
vote
1answer
65 views

TeXShop console (not log) contains entire LuaLaTeX file

I tried the example of "von" in the post Is direct utf8 input of combining diacritics in math mode possible with lualatex? regarding the use of a Lua script to allow TeX commands for combining ...
1
vote
1answer
58 views

Left quotation mark not showing in GFS Didot Classic

I don't get why the left quotation mark doesn't show here \documentclass{article} \usepackage{fontspec} \setmainfont{GFSDidot_Classic.otf} \begin{document} `ἄνθρωπος' \end{document} I've checked ...
1
vote
0answers
56 views

lualatex: pdfx and siunitx conflict on angstrom [closed]

I encountered a conflict between the siunitx and pdfx packages. I had a document working, but after I added the pdfx package I ended up with an ! LaTeX Error: Command \AA unavailable in encoding TU. ...
2
votes
0answers
50 views

How to add options to a graph from within a Lua layout algorithm

I'm working on a graph layout algorithm for use with the graphdrawing library in TikZ, and part of what I'd like to do is use the length of an edge label in calculating edge lengths. If the label is ...
9
votes
2answers
211 views

problem with string.format, \directlua and tex.sprint

I wonder if someone could explain to me why \documentclass{article} \begin{document} the standard approximation $\pi = \directlua{tex.sprint(math.pi)}$ \end{document} works all right, whereas \...
0
votes
1answer
53 views

Can compile with luatex in the command line but not in AUCTEX in emacs

As stated in the title, my document compiles successfully with lualatex file.tex in the command line but not when in emacs using AUCTEX, executing C-c C-c. I'm using a Mac; Tex Live; and auctex v12.1....
4
votes
1answer
57 views

How to get 'alternate 1' using XCharter with Luatex?

I am interested in using the XCharter font with oldstyle numerals and its 'alternate 1'. Using pdftex, this is simply achieved as \documentclass{article} \usepackage[osf]{XCharter} \usepackage[T1]{...
16
votes
1answer
131 views

L(a/ua)TeX kernel/package solution incorporating the globally optimised float placement/pagination

It was interesting to read Frank Mittelbach's articles on globally optimized pagination and float placement. https://www.latex-project.org/publications/ But, there is no mention of these proposed ...
1
vote
1answer
216 views

Synctex bug? Emacs/LuaLaTeX with Evince/Zathura on Ubuntu 18.04

I am having a problem similar to that one and already posted there, with emacs, LuaLaTeX, and two PDF viewers (evince, zathura) on Ubuntu 18.04. Problem: The forward/backward search has gotten really ...
3
votes
1answer
91 views

lualatex not correctly setting PDF page boxes? [closed]

I want to specify PDF page boxes using lualatex. But no version of Adobe Reader (9.5.5 04/26/2013 under Linux; DC 2018.011.20040 under Mac OS) or Acrobat Pro (8.0.0 under Windows) I have access to ...
6
votes
1answer
125 views

Implement a job queue in LuaLaTeX

I have a project depending on LuaLaTeX where the main document first generates one or more intermediate .tex files and then invokes lualatex in a loop to generate the final PDF results. This can ...
0
votes
0answers
32 views

Problems getting Tikz externalisation to work even on a simple file (LuaTeX) [duplicate]

I am out of my depths to understand what could be going wrong here. I am using luatex (TL 2018) to compile a simple pgfplot example. This is the error message I get example_surf.tikz:8: Package ...
0
votes
1answer
95 views

Loading tcolorbox with the minted option breaks tikzexternalize and results in compilation error with makeglossaries

I have a weird problem that has now been localised to either of the lines: \usepackage[minted]{tcolorbox} \makeglossaries{} in my preamble. I am using luatex with shell-escape enabled (for minted). ...
1
vote
1answer
35 views

Titlesec puts tikz drawing below the chapter's name

In an attempt to put two drawings before and after the chapter's name with the format options provided by the titlesec package, the second drawing goes to the line below the chapter's name. I tried to ...
8
votes
1answer
171 views

PDF layers don't show

I'm trying to show the watermark as a background layer so the reader may have the option to either see the background or not. I'm using the LuaLaTeX and the xwatermark package. When I compile the ...
6
votes
2answers
247 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
368 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} \...