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
0
votes
0answers
6 views

How to set up a new RTL language for babel using ini files?

How do you set up a new RTL language for babel using the new locale ini file system? e.g., consider trying to set up support for Classical Syriac. I started with babel-ar.ini and modified it to what ...
0
votes
0answers
68 views

How do I compile an extremely large PDF?

I am using LuaLaTeX to compile a file that will have estimated 4,000 pages. Quite obviously, though for Lua engine itself there are no complications in the file, my system runs out of memory on Page ...
5
votes
0answers
55 views

Spacing, delimiter, and Libertinus Math

I would like to have a command that stretches the common delimiters according to the content. The standard \sin\left( is known to have a bad spacing, the packages https://ctan.org/pkg/mathtools and ...
4
votes
0answers
55 views

Why xelatex renders arrows in tikz figures differently than lualatex?

My document can be produced with the following code: \documentclass{beamer} % only frames ...
0
votes
1answer
37 views

Changing the size of the mathfont, except for the numbers

I need to use Tex Gyre Adventor as a font in my documents. This font has no math font, so I'd like to use the numbers of that font in math mode. I managed to do it using \setmathfont[range=up/{num}]{...
0
votes
0answers
15 views

How get catcode of $ character during using process_input_buffer callback

I wrote parser,which replace $ and $$ for every line. But,as i understoode,i mustn't do it,if $ have not standart catcode. So,how i can get catcode of $ using luacode for each line because,for example,...
4
votes
1answer
34 views

\unhbox of arabic text cause an uncorrect result

Consider this example, why the result is uncorrect and how to fix it \documentclass{article} \usepackage[bidi=basic-r]{babel} \babelprovide[import=ar-DZ, main]{arabic} \babelfont{rm}{Amiri} \begin{...
0
votes
1answer
12 views

Processing luatex callback functions when creating glossary with bib2gls

In my project, I am looking for simple, but automated string replacement. For that I have hit upon this question and its answer: What packages provide text/command substitution for LaTeX, XeTeX and ...
3
votes
1answer
57 views

How to get \backprime if the main math font is Cambria Math?

Running xelatex on \documentclass{standalone} \usepackage{unicode-math} \setmathfont{CambriaMath.ttf} %\setmathfont[Ligatures=TeX,range={\backprime}]{TeX Gyre Termes Math} %\setmathfont[Ligatures=TeX,...
0
votes
0answers
17 views

Fontspec cannot find OpenType features [duplicate]

And I’m back with more fontspec trouble. Recently, I asked a question about how to access a particular character variant using fontspec (here). Ulrike Fischer’s solution — to put a newer version of ...
0
votes
0answers
30 views

How to compile a plain LuaTeX file

How do I write and compile a .tex file with plain LuaTeX? I use LuaLaTeX to compile some .tex files but how is an example of a plain LuaTeX file and how do I compile it? In the reference manual I did ...
1
vote
1answer
78 views

Proper kerning of \{f\} \sigma_0 in TeX Gyre Termes Math

Continuing https://chat.stackexchange.com/rooms/97632/discussion-between-marcel-kruger-and-mdayq6, running lualatex on \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} % \...
42
votes
8answers
39k views

FontAwesome font not found?

I'm using the latest version of MacTeX 2013 on OS X 10.8.4. All of my Tex Live packages are fully up-to-date. Tex Live also lists the fontawesome package as installed. I'm trying to use the ...
1
vote
1answer
37 views

line of text preceding equation breaking over page using Lyx

I'm in the process of implementing copy-edit comments on a book that has lots of math and lots of single lines before equations in a displayed equation environment. LaTeX likes to break pages between ...
6
votes
1answer
197 views

Erroneous text layer. Mismatch between kerning in fontforge and in {xe|lua}latex

Running xelatex (or lualatex) on the input \documentclass{standalone} \usepackage{unicode-math} \setmathfont[Ligatures=TeX]{texgyretermes-math.otf} \begin{document} \(\{f\}\) \end{document} should ...
0
votes
0answers
32 views

Define fallback font for a large character set (e.g. Simplified Chinese)

I've been asked to integrate Chinese characters into a mainly-English LaTeX template. Although I found different options, such as ctex, I stumbled with its integration (mainly because the ...
0
votes
0answers
24 views

Lualatex print \\par stopped producing the result

The \par option stopped working in lualatex in 2019. tex.print(-2,x .. "\\par") produces only \par in the final text, no paragraph break. File.txt may be any text file with ^ and & to mark the ...
1
vote
1answer
689 views

Pgfplots axis x line = bottom changes plot content

I'd like to disable the top border of the plot. To do so, I used axis x line = bottom. However, this changed the plots content (the left most and right most bar are now hidden). How can I achieve this ...
89
votes
6answers
29k views

Why choose LuaLaTeX over XeLaTeX?

There are questions on TeX.sX already about what the differences between LuaLaTeX and XeLaTeX are (Differences between LuaTeX, ConTeXt and XeTeX), what one should be keep in mind when going from ...
1
vote
1answer
39 views

How to correctly set x,y of nodes within a custom lua layout

I am trying to understand how I can place nodes within lua at correct x and y coordinates. I have this code mainly from the pgf/tikz manual: -- This is the file RectangleTreeLayout.lua local declare ...
0
votes
0answers
8 views

References to institutions in article authors [duplicate]

I'm using the article class (with LuaLaTeX) and trying to do write a author reference to its institution and e-mail address (as commonly seen in many papers) like this one https://impa.br/wp-content/...
0
votes
1answer
23 views

Format a number/pageref range according to Oxford (OUP) elision rules

The Oxford style guide rules say this about abbreviating ranges of numbers and page references: For a span of numbers generally, use an en rule, eliding to the fewest number of figures possible: 30–...
0
votes
0answers
36 views

Using LuaLatex, can I produce an output image where all the text maps to “pure black”? [closed]

I am creating a pdf with lualatex then trying to convert it to an imagefile (.jpg or .tiff or .png, probably .tiff). There is a lot of text in there. I am also working with a manufacturer/printer ...
3
votes
1answer
115 views

Calling Julia from Lua

This example code previously appeared on a blog posting by Aditya, with one minor adjustments. I tried to run it on Debian 10 (buster), but it failed with the following error. texlua julia.lua ERROR:...
0
votes
1answer
41 views

Option Numbers=Lining not working any more with font Constantia after MikTek Update

I need to use the font Constantia and thus compile my document with LuaLaTeX using \usepackage{fontspec}(Editor is TeXStudio). As I do not like the OldStyle numbers, I use \setmainfont[Numbers=Lining]{...
0
votes
1answer
78 views

Ignore part [^\\] in Lua pattern

I want to find, using lua features, char $, but only if it is no char \ before char $. For this I create the pattern: ([^\\]?)%$ However, Lua ignores the first part of my pattern and find only %$. ...
0
votes
1answer
52 views

Reference 'last page' undefined, only running latex twice shows wanted result

If I run lualatex on a .tex file I only get ?? as a result from 'lastpage' in my document. Then if I run lualatex a second time, the correct result (2) is shown in the document footer. Main ...
1
vote
2answers
122 views

How rewrite tex file using lua

As you know, I try to solve problem with $ and $$ in formulas, to do automatic tagging of this formulas, including adding it in structure tree. Variant with \grabinline or \grabdisplay does not work ...
0
votes
1answer
40 views

Undefined control sequence using pdfx and Lualatex

Compiling a simple example on PDF/A with Lualatex returns the following error: ! Undefined control sequence. l.660 \ifnum\shellescape Or, for a PDF/X: ! Undefined control sequence. l.333 \...
0
votes
1answer
58 views

Difficulty accessing character variant with LuaLaTeX and fontspec

I’ve already asked a similar question previously, but it seems the same trick doesn’t work. I am using the Junicode (1.002) font available at this link. I want to access the character variant for the ...
1
vote
1answer
34 views

Avoid Pagebreak In Appendix

I am trying to get the headings on the same page and have already tried using /nopagebreak and samepage, however it will still break the page. As to my understanding, the pdf size should be small ...
4
votes
0answers
379 views

latexmk: “file not found” even though custom dependency should add it

I am working on a large document, that contains descriptions of several technical components. I have written several macros that trigger the automatic creation of ".uml" files during a lualatex-...
0
votes
0answers
66 views

{xe|lua}latex + svmono + newfloat + biblatex = ↯

Running xelatex or lualatex on \documentclass{svmono}%%% V 5.6 from http://www.springer.com/gp/authors-editors/book-authors-editors/resources-guidelines/rights-permissions-licensing/manuscript-...
0
votes
1answer
15 views

Change font in baposter package

I tried to change the font to garamond in baposter.cls using the following code: \usepackage{bm} % bold stuff \usepackage{bbm} % bold stuff \usepackage{fontspec} \usepackage[T1]{fontenc} \...
2
votes
1answer
23 views

Why can't I center my table using xtable and lualatex in rmd

Can anyone help me solving my issue with xtable, please ? I create a table using xtable, based on data that I processed Rstudio. The main R code runs a Rmd script who generates a pdf with that table....
21
votes
3answers
765 views

Aligning a text in 3d diagram

This question led to a new library in TikZ: perspective (PGF manual, chapter 63) I have a 3d object created with inkscape as shown below: Now I am trying to place a text in the same orientation as ...
0
votes
0answers
31 views

Force recto and verso pages to be the same height or number of lines

I'm using memoir for typesetting a novel and the nowidow package to control widows, running with lualatex. To prevent widows the nowidow package will leave empty lines at the end of the page, but I ...
1
vote
0answers
37 views

Moving luacode to Lua file, accessing glyphs by name

I have a package that includes (basically) the following code (provided by a contributor after asking this question on tex.stackoverflow). \begin{luacode} documentdata = documentdata or { } ...
15
votes
2answers
755 views

Different answers of calculations in LuaLaTeX on local computer, lua compiler and on overleaf

Here is the code. It makes use of the file matrix.lua available at the following link. https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua The following code is to be run by matrix.lua ...
0
votes
1answer
25 views

LuaLaTex, TeXstudio, biber - Do not compile bibliography when using Compile command

I'm trying to compile a document including a glossary and a bibliography. For adjustment purposes, I need to compile it every few lines I write. For this I use the TeXstudio command "Compile" (F6 in ...
1
vote
1answer
132 views

TexLive 2019 lualatex doesn't compile document

I have a document that compiles fine under pdflatex. But when I use lualatex the compilation process ends without doing anything. The log file has just these line: This is LuaTeX, Version 1.10.0 (...
1
vote
0answers
30 views

Turkish.ldf and font substitution with lualatex

Referring to this tread: Xelatex vs Lualatex and font substitution the following code \documentclass[a4paper,12pt]{article} \usepackage{ifxetex,ifluatex} \usepackage{fontspec} \ifluatex \usepackage[...
6
votes
1answer
119 views

Xelatex vs Lualatex and font substitution

As is known, in the Turkish language the i exists as distinct letters in two versions, with and without a dot (with very different pronunciations): the dotted couple i / İ and the dotless couple ı / I....
7
votes
2answers
191 views

Achieving better kerning in text mode italics

In the font I'm using to set italics, the apostrophe / right single quote is outputting poorly kerned: The kerning of the first apostrophe in 'n' and the apostrophes in they've and they're is ...
1
vote
1answer
1k views

FontAwesome is not working in Friggeri resume?

\documentclass[]{friggeri-cv} % \documentclass{article} \usepackage{unicode-math} \usepackage{FontAwesome} \definecolor{light-gray}{gray}{0.55} \definecolor{skype}{HTML}{12A5F4} \definecolor{html5}{...
0
votes
0answers
146 views

Want to add the different icons in Friggeri Resume like email, phone, mobile, skype etc [duplicate]

Want to add the different icons in Friggeri Resume like email, phone, mobile, skype etc. \documentclass[]{myfriggeri-cv} \addbibresource{bibliography.bib} \begin{document} \header{friggeri}{friggeri}...
7
votes
0answers
103 views

Map all ASCII characters in document to Nemeth Braille

My goal is to type regular LaTeX input, and remap the fonts to produce Nemeth Braille. One answer to the question LaTeX to Braille was to download the font http://www.searchfreefonts.com/free/braille....
3
votes
0answers
57 views

How to apply a LuaLaTeX function to only a specific font?

In the italic font I am using, the apostrophe appears too far right in its bounding box, and therefore a space between an apostrophe and a glyph appears smaller than a space between two glyphs. I ...
0
votes
1answer
45 views

LuaTex parse LaTeX to variable

I am currently working on a template to be used by our consultants. For this I have make a set of functions that automatically generate and calculate certain parts of the report. And example of the ...
2
votes
1answer
3k views

Want to add the Skype and LinkedIn Icon on the left side of Friggeri Resume?

\documentclass[]{myfriggeri-cv} % Add 'print' as an option into the square bracket to remove colors from this template for printing \usepackage{unicode-math} \usepackage{fontawesome} \definecolor{...