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

Filter by
Sorted by
Tagged with
1
vote
2answers
43 views

Backslashes in macros defined in lua code

TeX file: \directlua{require "foo"} \show\foo \bye and the contents of foo.lua: token.set_macro("foo","\\a\\b\\u\\z") Here is the result: > \foo=macro: ->BADa\b \u BADz. l.2 \show\foo Why ...
4
votes
1answer
46 views

Using Lua functions with mplib and mpgraph

This question has reference to the question Error with Lua, Luamplib and Mpgraph I am trying to use lua functions inside mplib. The detailed code is here. \documentclass{article} \usepackage{luacode}...
0
votes
0answers
32 views

Force lualatex to **not embed** fonts [duplicate]

Referring to this tread: Does lualatex embed fonts for compatibility? I read there: Fonts are always embedded, unless explicitly forced not to But how can I force lualatex to not embed fonts ? ...
1
vote
1answer
44 views

Set TrimBox to geometry's layout area

\documentclass{article} \usepackage{geometry} \geometry{ paperwidth=10cm , paperheight=10cm , layoutwidth=5cm , layoutheight=5cm , layouthoffset=25mm , layoutvoffset=25mm , ...
6
votes
2answers
202 views

Load extra fonts with lualatex

I am preparing a document, which facilitates package fontspec to define the main- and the sans-font. In that document, I'd like to compare that main font with Computer Modern or—to be precise—it ...
4
votes
1answer
63 views

Error with Lua, Luamplib and Mpgraph

The following code works fine. \documentclass{article} \usepackage{luamplib} \begin{document} \begin{mplibcode} input graph ; beginfig(0) ; draw begingraph(5cm,3cm) gdraw (0,0) for x = 1 ...
1
vote
1answer
37 views

How to set up a conditional loop that chooses which compiler to use within the same document?

I have a TeXlive 2019 installation with an unsolved problem that so far prevents me from compiling on this computer with LuaLaTeX, so I thought I could add to the preamble of the document that I'm ...
0
votes
0answers
52 views

Lambert Conformal Conical Map

I want to draw a map with TikZ and as a starter this map should be in Lambert Conformal Conical projection. However to make it convenient, I would like to include some geodesic calculations, so that ...
0
votes
0answers
88 views

Font native and applied kerning with Lualatex [closed]

Using Lualatex it's not so clear to me if the option kerning = off turns off only kerning applied by Lualatex or the native font kerning too. My goal is for the text to be applied only and ...
0
votes
0answers
28 views

How to embed ttf fonts as type 1 font by using LuaLatex or XeLatex

When using Latex compiler engine I got PDF with embedded type 1. How I get the same in LuaLatex. Lualatex: Latex: Advance thanks for the help..
5
votes
2answers
258 views

Microtype expansion gets disabled when fontsize is changed! (lualatex)

It seems like microtype's expansion gets disabled when fontsize is changed from default fontsize. Here are two pieces of code, in the first one expansion does work, in the second one it does not (as ...
2
votes
0answers
22 views

lyluatex on Windows — “The score doesn't contain any music”…but it does

I'm trying to use the lyluatex package. I made a document that contains only one of the examples from the Latex For Musicians guide, with a few additional package options: \documentclass{article} \...
1
vote
1answer
49 views

TikZ externalize + LuaLaTeX + Output Dir + Precompile Preamble = Fail

How can I externalize TikZ in such a configuration? There is my MWE: preamble.tex: \documentclass[a4paper, 10pt]{article} \usepackage[left=30mm, right=10mm, top=15mm, bottom=25mm]{geometry} ...
0
votes
0answers
27 views

Unexpected RTL English paragraph alignment with initial Hebrew word in lualatex and polyglossia

When an English paragraph begins with a Hebrew word, the whole paragraph is aligned right to left. I expect a left to right paragraph with indent. I am on the latest TeXLive and mac OS catalina. %!...
1
vote
1answer
82 views

Module 'pdftexcmds' not found after update

Yesterday I updated my distribution (tlmgr update --all) and now I cannot use TikZ with lualatex anymore. Minimal working example: \documentclass{article} \usepackage{tikz} \begin{document} a \end{...
4
votes
2answers
91 views

pdflatex fonts in lualatex

My company provides a pdflatex template for documents I edit. In particular, certain headings use a font that Adobe Reader calls URWGroteskT-Bold. That effect is produced as follows (standalone ...
4
votes
2answers
125 views

Increasing memory

I am working on a document which produces ~4000 pages, each with at least 30 graphics per page. There is a lot of font switching and colouring different characters different colours. I am able to ...
3
votes
2answers
175 views

How to get number of pages of external pdf file in Lualatex?

I tried all the answers I could find about this topic, and can't get something to work. This MWE works OK, but only in pdflatex, since \pdfximage do not work in lualatex. \documentclass[12pt]{...
4
votes
3answers
203 views

Disable copying text from minted listing

I want my minted listings not to have copyable text. I've found this: Is it possible to produce a PDF with un-copyable text? But after a few hours of trials I am not able to integrate it with my ...
2
votes
0answers
54 views

lualatex / babel / fontspec: **Package babel Warning: The following fonts are not babel standard families** and other warnings

Aim and Problem I want to generate an English document that contains some single (simplified) Chinese characters. I also want to use the famous Noto fonts (from Google), see https://www.google.com/...
1
vote
0answers
14 views

Emdash in LuaLaTeX [duplicate]

Can someone explain the differences in how an emdash is rendered by LuaLaTex from this code? \documentclass{article} \usepackage{fontspec} \setmainfont{TeX Gyre Pagella} \begin{document} Lorem ipsum--...
1
vote
1answer
58 views

fontconfig.conf file with texlive on Microsoft Windows

I have the texlive 2019 distribution installed on Microsoft Windows 8.1. I have some Opentype fonts that I would like to use in my LaTeX documents with xelatex and lualatex. I have followed the recipe ...
0
votes
1answer
47 views

How to catch,when paragraph breaks by something

Maybe there is a way to catch when the paragraph breaks by something, for example a formula to insert some code after the break of the paragraph. The command \everypar allows us to catch when the ...
3
votes
0answers
32 views

Wrong font scaling using when groupplot, tikzscale and fillbetween, maybe a bug (?)

Situation: I am trying to place one bigger pgfplot at the left side of a figure and four small plots (2x2) on the right half, like this: |--------|----|----| | | P2 | P3 | | plot 1 |----|-...
5
votes
1answer
112 views

lualatex: slow and tex capacity exceeded on large document

My original problem statement started like this: I'm having trouble compiling a large document (.tex file is 4.4M) with lualatex. This is just an experiment, not a document I need to produce. There ...
4
votes
1answer
67 views

RTL constructed script can't be typeset properly in LuaLaTeX?

I have a grammar for one of my constructed languages, which uses its own right-to-left script. In my font for this script, I have the glyphs mapped to the Private Use Area and rely on wrapping text in ...
1
vote
1answer
65 views

Differing return values for os.execute when called directly from Lua or from LuaTeX

Consider the following LuaTeX file. ################################# foo.tex ################################# \documentclass[12pt]{article} \usepackage{filecontents} \begin{filecontents*}{foo.lua} ...
3
votes
1answer
60 views

Using Lua in tikzpicture

I am currently exploring ways to generate TikZ code using LuaTeX. Using the luacode* environment seems to be smooth sailing. But sometimes it seems to make more sense to just inject small fragments ...
0
votes
1answer
34 views

An alternative way of processing asymmetrical en-rules

-- is changed into an en-rule, by some mechanism. In Lua(La)TeX, would it be possible to use the same mechanism to change -- (space on the left) into –~ (space on the left) and -- (space on the ...
5
votes
2answers
104 views

Polyglossia v1.46 modifies font family in header

This is my first question, please let me know if I am doing something incorrectly! After updating polyglossia to version v1.46 (from 2019/11/15) there seems to be a clash with memoir to version 2019/...
1
vote
0answers
43 views

Pandoc LuaLatex error: cannot find image file

I've recently started having a weird error when converting a file from markdown to PDF using Pandoc with LuaLatex as the PDF engine when including PDF images. Running pandoc -i 1384e7d0c2.md -o test....
3
votes
0answers
128 views

Compiling error when updated to last version of LaTeX

This error appear when trying to build the document: ! Undefined control sequence. l.20 \IFTEX@let {vtexdvi}{false} How can I work around this problem ?
0
votes
1answer
41 views

How to use arphic-ttf with luatex?

I was previously using the arphic font package with cjk for Chinese in pdftex. For LuaTeX CJK, I understand luatexja is the package to use. I also see arphic-ttf. So, I'd like to try to use these. It'...
3
votes
1answer
189 views

LuaTeX or pdftex for new project?

I'm starting a new writing project and want to use LaTeX, and need to decide on whether to go with luatex or pdftex for the engine. A few of my considerations: Personal project -- no limitations and ...
2
votes
1answer
39 views

Latex command inside metapost label

This is a minimal code example. \documentclass[12pt]{article} \usepackage{luamplib} \begin{document} \begin{mplibcode} beginfig(1) label(btex A-\textbf{B} etex,origin); endfig; \end{mplibcode} \end{...
0
votes
0answers
60 views

\includegraphics: with Luatex

I am want to insert an image with the graphicx package using LuaLaTeX with this poster template, but I receive an error that the file cannot be found; Package luatex.def Error: File `A.png' not found: ...
1
vote
1answer
28 views

BibLatex -> group multiple citations by the same author

As some of you know, my university is very strict regarding their citations guidelines. So I come to thee again for some custom formatting hacks. For those who can read Dutch, you can find the ...
1
vote
0answers
80 views

SyncTeX jumps to pgflibraryfadings in TeXstudio with todonotes

If I ctrl + mouse click on the output text in TeXstudio with the code below then it takes me to pgflibraryfadings.code.tex which is not what I would expect/like. What can I do to fix this? (LuaTeX ...
2
votes
1answer
67 views

Where does ffi.load look for dynamic libraries by default in TeXLive?

Failing to compile an amazing piece of code by Henri Menke, he pointed me out in comments that ffi was maybe not able to find the right dynamic library on my system. Here is a MCE to work with (must ...
5
votes
3answers
194 views

How to correctly use newtxtext and newtxmath with luatex

I know I must be doing something silly here, but I do not know what. \documentclass[12pt]{article}% \usepackage{amsmath} \usepackage{fontspec} \usepackage{newtxtext,newtxmath} \begin{document} This ...
1
vote
1answer
70 views

How to properly use metapost in plain LuaTeX

I'm trying to run some metapost code inside a plain LuaTeX file, but I don't know how to properly use it. In my example the text compiles fine, however the metapost code returns an error. How do I ...
3
votes
1answer
77 views

pst-asr does not work with LuaLaTeX/ConTeXt

When I try to compile the following code: %LuaLaTeX \documentclass{article} \usepackage{pst-asr} \begin{document} \asr \4ki:p\endasr \end{document} I get this: ! Undefined control sequence. \c@lor@...
3
votes
1answer
90 views

How to write exactly LaTeX commands in a PDF stream?

I try to write LaTeX formula in PDF stream and it almost works for me, but after \begin and \end I have a space, so for example instead of \begin{multline} I have \begin {multline}. The same situation ...
5
votes
2answers
106 views

Define fallback font for missing glyphs in LuaLaTeX

I want to use "Hack" as the default font for source code. Unfortunately the font is missing some glyphs I use. If I use a glyphs that is missing in "Hack", I want it to be displayed automatically in ...
0
votes
1answer
69 views

TeXLive 2019 (MacTeX): Lualatex can't find any image with \includegraphics

Running MacTex 2019, all packages updated, and suddenly every \includegraphics instance returns the following error: Package luatex.def Error: File 'path/to/file' not found: using draft setting. I ...
0
votes
0answers
30 views

Bold Italic \i without dot or i with different accent (or jmath, or other unicde symbols)

I use a special sans-serif font for vectors (in the provided example, Libertinus as main math font and Clearsans for the sansserif bold italic stuff). However, I am not able to access special unicode ...
4
votes
1answer
97 views

Undefined control sequence error after TeX Live update

After the latest TeX Live update, I'm getting the following error while compiling my book draft with lualatex: ! Undefined control sequence. \@begindocumenthook ...yrr \cyri \cyrl \cyro \ETC. I'm ...
1
vote
0answers
33 views

Polyglossia \setotherlanguage french breaks autospacing [closed]

I'm writing a German (main), French paper with lua and polyglossia. After I use a local French \textfrench{} or \begin{french} - \end{french} the French punctuation spacing continues, even in a German ...
1
vote
0answers
31 views

No update for externalized tikz figure because of font change?

There is something fishy going on here and i have no clue why. So please, help me to understand the issue and thx in advance. My problem: no update for tikz figure (see MWE) with specified font by ...
9
votes
1answer
128 views

Calculating with \directlua in Plain LuaTeX

I have never used Lua before, so I have some questions about the calculations: How can avoid appending .0 if the result is an integer? How can I achieve that the right number of zeros is appended ...