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

1
vote
0answers
24 views

How to add a key for glossaries which mirrors \glssymbol?

At the moment i'm writing a text with lots of equations and not less variables. So 'Thank God' for the glossaries-package. To minimize the actual code i added an extra key 'derivative', which resulted ...
5
votes
2answers
2k 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-...
1
vote
2answers
90 views

How to understand which control sequence in undefined in “Undefined control sequence.” message?

I got "Undefined control sequence." message, but from ...sdir{\directlua{tex.sprint(lfs.currentdir())} I do not understand, on which control sequence LuaLaTeX refers: How can I explore it? The MWE ...
1
vote
1answer
32 views

X-4 option of PDFX does not show hyperlink color with the PDF/X option (x-4)

It is indicated in the pdfx manual To produce a validating PDF/X document,pdfx overrides internal macros while keeping colors associated with link anchors. I can see the same claim in the answer ...
2
votes
1answer
33 views

How to use 'lfs' library in LuaLaTeX preamble?

I need to define absolute path of .tex file, and I already learned how to do it: \edef\currfileabsdir{\directlua{tex.sprint(lfs.currentdir())}/} What I don't know is how to include lfs library to my ...
30
votes
1answer
937 views

microtype error with lualatex: “attempt to call field warning a nil value”

no answer needed, I'm adding the question as reference After todays update of luaotfload microtype gives an error when used with lualatex: \documentclass{article} \usepackage{microtype} \begin{...
5
votes
0answers
67 views

Excessive memory use with unicode-math/Fira Sans and xfrac

When trying to use the Greek symbols in the font Fira Sans with unicode-math, I noticed that running lualatex on my document uses up enormous amounts of RAM. I have distilled my problem to a minimal ...
2
votes
1answer
61 views

Mixing Icelandic, German and Ukrainian glyphs in the same PDF

This is more or less a followup to a previous question which I asked with pdflatex in mind and regarding another document class (letter-classic). Right now I am struggling to be able to mix German, ...
2
votes
1answer
68 views

Fontspec isn't changing digits in math mode

I had been using the following in my preamble: \documentclass{article}[12pt] \usepackage[lite,subscriptcorrection,zswash,slantedGreek,nofontinfo]{mtpro2} \usepackage{fontspec} \setmainfont[Ligatures={...
0
votes
1answer
59 views

How to add compilation parameters -shell-escape with arara

I am having trouble using compiling argument lualatex -shell-escape as mentioned in this question using arara. I cant get the right syntax, and I am failing to find it in arara user manual. I tryed ...
11
votes
2answers
507 views

LuaTeX and em dashes

LuaLaTeX is not inserting em dashes unless there is space around the triple dash. It works fine when using a unicode em dash, or explicitly using the \textemdash macro. Here is a MWE: \documentclass{...
0
votes
0answers
33 views

How can I get LuaLaTeX to turn three hyphens into an em-dash? [duplicate]

For some reason, LuaLaTeX is outputting an en-dash for both -- and --- for me. MWE: test.tex: \documentclass{article} \begin{document} blah-blah blah-...
0
votes
1answer
33 views

How to complete these side borders in Beamer? [duplicate]

There are some great answers here and here about the same issue but different code samples, in this case I am using a new package beamer-rlCTAN with last update of Babel package, it solves problems ...
0
votes
0answers
33 views

Automatical graph layout with high number of connections using TikZ package

While learning to work with LaTeX, I have found out (also in this question) that TikZ is able to create very good automatic graph layouts. In my work, I had assignment to create pretty large ...
1
vote
1answer
67 views

LuaLatex and bidi (Hebrew/German)

Using polyglossia or babel/bidi with LuaLatex seems to cause different problems. In my case I am totally helpless. I need to use the \texthebrew and \RL commands, but I can't get it run. Also, I don'...
3
votes
1answer
35 views

Feynman diagram: sides switched

In my t-channel Feynman diagram (with tikz-Feynman), the lower two particles of the t-channel are switched. It appears that for s-channel, the right hand side particles are switched too. Code for t-...
5
votes
2answers
207 views

Index in KOMA-Script layers does not work

Background. I would like to replace the intentionally blank pages or vacat pages in scrbook with a page which shows a new quote on every new blank page. Thanks to scrbook and LuaTeX this is not ...
0
votes
0answers
47 views

How to print data in pdf in callbacks?

Give me please at least one example that,how i can print some data in document in callbacks using pdf.print or help me please,how i can insert information in any part of document during callbacks? For ...
0
votes
2answers
48 views

Extension of `rotating` package to set PDF rotation

I am trying to extend the rotating package to also show the respective pages properly rotated in the PDF output by setting the PDF page attribute /Rotate. I have a working version for XeLaTeX, however,...
3
votes
2answers
87 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 ...
10
votes
1answer
134 views

What is the least resource intensive way to generate the luatex font cache for a new font?

When a font is first used with lualatex, luaotfload does some magic to produce font cache files. For large fonts (e.g., Noto Sans CJK) this can take a lot of time and a lot of memory. I have an old ...
3
votes
2answers
187 views

fontspec no-math option changes the math bold alphabet

I have a setup that works well with pdflatex and that I would like to carry it over to xelatex or lualatex, but fontspec seems to be changing the math-bold alphabet -- even if called with the [no-math]...
1
vote
0answers
36 views

Unicode glyph not displaying in LuaTeX [duplicate]

I need to use some unicode glyphs relating to greek metric, namely ⎯ ⏑ ⏒ ⏓ ⏔ ⏕ ⏖, but I can't make them display on the document. I've got \documentclass{beamer} \usepackage[ngerman]{babel} ...
0
votes
0answers
37 views

How to accurately set the font size for different lines?

I need to create the cover page for my thesis. The university provides the specifications like this: ‐ Univerity logo. ‐ Faculty name: Palatino Lynotipe, 16pt, capitalized. ‐ Department: Palatino ...
2
votes
2answers
94 views

Error during using callback start_page_number in lualatex

I updated miktex and all packages and now i have an error,when i try use callback start_page_number in my document. The error appeared even in very small document,for example in this document: \...
1
vote
2answers
574 views

\includegraphics with spaces, dots and underscores

I've already tried 10 billion advices like using \usepackage{grffile}, wrapping the filename into {} and/or "" (in any combination). Nothing is working! So, I have a file with path plots/task-1/...
0
votes
0answers
56 views

What callbacks i must to register,to catch start and end of paragraf and any other structures in lualatex

Help me please,what callbacks i must register to catch starting and ending of structures in lualatex such as paragrafs,lists,items of lists,tables,sections,subsections,sub...subsections,ETC. How i can ...
4
votes
1answer
1k views

How to build a Makefile that builds a LaTeX document with dependencies in one run

I am trying to create a Makefile for my paper where I can type just make and it will compile everything in one go. The paper has several figures which are generated from scripts. However, everything I'...
2
votes
1answer
35 views

semantic package: Floating premises with nested \inference

I am typing setting some big step semantics using the package semantic and its command \inference. I use the LuaLaTeX compiler. However, when I compose more inference commands, and one of them ...
3
votes
1answer
129 views

Building a token list in lua

In TeX, a 'write' node is inserted with, say: \write1{\string\doit{\the\lastypos}} With pure luatex, a node could be created with: local n = node.new(8, 1) n.stream = 1 n.data = <token-list> ...
4
votes
1answer
177 views

Microtype package produces warning when using LuaTex

I am receiving the following warning message whenever I include microtype: Module microtype Warning: overwriting function `keepligature' on input line 59 Here is a minimum working example: \...
0
votes
1answer
85 views

How to print mathematical object in text mode in lualatex?

In one of the callbacks of lualatex in lua (build_filter) i print the first argument of function. \begin{luacode} function f(a) tex.print(a) end luatexbase.add_to_callback("buildpage_filter",f,"...
2
votes
1answer
80 views

How to register callbacks in lualatex

Help me please,how i can register callbacks in lualatex. For example it need to me catch,when the page of my document started or ended and print number of this page*2. I found in luatex documentation ...
3
votes
1answer
84 views

luajittex ignores fonts luatex finds

With LuajitTeX, Version 1.10.0 (TeX Live 2019) and ConTeXt ver: 2019.02.26 20:04 MKIV beta fmt: 2019.3.1 I can run the following MWE: \setupbodyfont[postscript,sans,12pt] \starttext Test \stoptext ...
5
votes
2answers
59 views

Greek letters wiith continuing circumflex

I've noticed that LuaTeX seems to incorrectly render continuing characters (like a circumflex, U+0302) when they follow Greek letters. I'm particularly interested in getting this to work with a ...
3
votes
1answer
54 views

how create new command with formated string

When i try create new command,which contains formatted string, I get an error: \directlua]:1: unfinished string near <eof>. Help me please fixed my error. this is a code of my document and ...
1
vote
1answer
65 views

How can I use math.log10 function with the directlua?

I would like to know how I can use math.log10 function with the directlua, because I always get none from directlua. Following a minimal example: %Engine: LuaLaTeX; %Encoding: UTF-8; \documentclass[...
0
votes
1answer
81 views

issue on lualatex and mongo

I have an issue with lualatex and mongo % !config % arara: lualatex :{shell : yes , synctex : yes} % arara : tikzmake :{ jobs : 1, force : yes} \documentclass[12pt,a4paper]{book} \usepackage{Bibles} \...
2
votes
1answer
30 views

“Simple table” with differing alignments

I am facing an issues with tables. Currently my MWE looks like this: \documentclass[12pt,a4paper]{scrreprt} \usepackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.00cm]{geometry} \usepackage{...
3
votes
0answers
182 views

ℕ goes as N into the text layer?

Let's compile the following code with {xe|lua}atex: \documentclass{standalone}% or article, doesn't matter \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math}%% or TeX Gyre Pagella Math, ...
0
votes
1answer
87 views

miktex: forest tex capacity exceeded [save size=50000]

this is follows-up question to forest tex capacity exceeded [save size=50000] which receive two answers. both solve op problem with suggestion to upgrade op latex distribution to texlive 2018. i ...
3
votes
2answers
43 views

Create an environment to translate sentences

I'm trying to create a command to use when I need to translate the language or make examples to both languages. So far I have created a box around the text and two columns, one for each language. \...
0
votes
0answers
20 views

how to tell if I am using XeLaTeX, LuaLaTeX or pdfTex? What exactly are? [duplicate]

I have installed LaTeX on Ubuntu 18.04 using sudo apt-get install texlive-full How can I tell if I am using XeLaTex, LuaLaTeX or pdfLaTeX? What are they exactly? I edit my tex files with the ...
1
vote
0answers
36 views

Indextools package and custom index. (Section and any counter)

My problem is that I need to create a custom index that shows more than the page. Like this: Word, s.5,o.6,p.9 , where s. is section, o. a dummy counter, and p. page. My MWE: \documentclass{book} \...
1
vote
2answers
49 views

Is there a standard way to assert the engine used or similar and cause an error otherwise?

Is there something analogous to the assert command offered by various programming languages to assert certain conditions? In particular I am looking for a way to outfit my .tex files with assertions ...
4
votes
2answers
109 views

Different fonts inside and outside math-mode

When processing the simple file: \documentclass{report} \begin{document} 1234567890 $1234567890$ \end{document} with pdflatex one get a PDF with one font only (CMR10), but when processing with ...
0
votes
1answer
35 views

Manually sort entries without glossaries-extra package

since none of my issues could be solved yet ( Define special sorting for Lualatex glossaries in Japanese? ) ( Bib2Gls doesn't compile CJK characters correctly ) and I won't be able to turn in my ...
3
votes
1answer
108 views

Disable smart (contextual) quotes for entire document?

Is it possible to disable smart (contextual) quotes for an entire document? If yes, how? In particular, can the single quote ', double quote ", and backtick ` be left as-is by some option or method ...
0
votes
0answers
99 views

Very common question: Feynman Diagrams in LaTeX

I know about a lot of solutions how to draw Feynman diagrams in LaTeX. Unfortunately, noone of them is perfect. I know about TikZ-Feynman and it is the best variant (may be) but I do not understand ...
3
votes
0answers
35 views

Luatex and system luarocks mismatch problem

I've been working on using lua to read a yaml file and print out a nice latex table but I've hit a snag. My lua code uses lyaml installed using luarocks, but luarocks only sees my system lua, which is ...