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
1answer
34 views

LuaLaTeX + luatexja + beamer: Serif vs. Sans-Serif

I wanted to create a beamer presentation in which Japanese and English are mixed. According to my Google-Fu, the luatexja package is good for that. In principle, it was surprisingly easy to use. I ...
1
vote
0answers
35 views

Font works with LuaLaTex but not with XeLaTeX

I have the following MWE. When I compile it with LuaLaTex it works fine, but when I compile it with XeLaTeX I get the error ! Package fontspec Error: The font "GFS Artemisia" cannot be found....
1
vote
0answers
59 views

LuaLaTeX: ctex and microtype together produce errors “Missing font identifier”

Compile the following MWE with LuaLaTeX: %! TEX program = lualatex \documentclass{article} \RequirePackage[fontset=fandol]{ctex} \usepackage{microtype} \begin{document} {\small\scshape Some text} \...
0
votes
0answers
24 views

Insert external pdf page(s) with unknown number of pages with LuaLaTeX [closed]

I am going to stitch together several external PDF files. Some are single paged and others are multi paged. Is there a general way of including external PDFs independent on the number of pages. I was ...
3
votes
1answer
60 views

Pass a tex value to lua in context

I have the following code \startluacode company = context.env("company") patch_file = "public/" .. company .. "/patch-english.json" \stopluacode where I pass the company ...
1
vote
0answers
34 views

Can TikZ-Feynman be used in a document compiled with pdfLaTex?

I'd like to use TikZ-Feynman to have some nice Feynman-Diagrams in my paper. I have no experience with LuaTex, which TikZ-Feynman needs (and i currently don't really have the time to get used to ...
2
votes
1answer
37 views

Create Separate File using LuaLaTeX

My Input LaTeX FileName is Article05.tex. I would like to find the text <stepn number>(.-)</stepn number> and store the text is individual file like name is Article05-step.tex. How to ...
1
vote
0answers
44 views

LuaTeX, \discretionary, and tcolorbox

The following MWE renders differently in XeLaTeX and LuaLaTeX: XeLaTeX has a line break, but LuaLaTeX doesn't. pdfLaTeX produces the same result as XeLaTeX. \documentclass{article} \usepackage{...
0
votes
2answers
27 views

matplotlib pgf backend with lualatex - non-math font does not change

When using Python's matplotlib to produce plots, I sometimes require the lualatex engine using the pgf backend for matplotlib when producing "heavier" plots like hexbin, otherwise the TeX ...
2
votes
2answers
61 views

Simplifying luatex expression in ConTeXt

I use lua in ConTeXt as described here. I have this code which simply prints $a x + b = 5$ where a and b substituted \startitemize[a, columns] \startluacode context.startitem() context.startimath()...
0
votes
0answers
49 views

Colors and luacolor

When I run my sample this works as expected. When I add the package luacolor the color remains black - not red any longer. \documentclass{article} \usepackage{pdfpages,xcolor} \usepackage{eso-pic} \...
1
vote
1answer
32 views

Problem with \rowcolor command in nicematrix package

I am having problems with the \rowcolor command in nicematrix package. Here is a MWE. \documentclass{article} \usepackage{nicematrix} \begin{document} We define the product \(AB\) by %Example 1 \...
0
votes
1answer
50 views

How can I input Cyrillic extended letters with \newunicodechar?

I'm trying to write Tatar (a language with some Cyrillic extensions әөүһңҗ) with \newunicodechar in LuaLaTeX like this (example with Ә): \documentclass[a4paper]{article} \usepackage{newunicodechar} \...
0
votes
1answer
30 views

How to use \lastnamedcs?

Please look at this short MWE: % Plain LuaTeX \ifcsname b@selineskip\endcsname \else \expandafter\newdimen\lastnamedcs \lastnamedcs\normalbaselineskip \fi \expandafter\the\csname b@selineskip\...
0
votes
1answer
56 views

Why aren't dageshes aligned in Hebrew in LuaLaTex?

I'm trying to typeset a single line of Biblical Hebrew, in which some letters have a dagesh diacritic, which is no problem in my text editor in my chosen font (designed for Biblical Hebrew), but for ...
1
vote
1answer
75 views

Can I make a macro behave like \numexpr?

For example I define \fpeval in Plain LuaTeX: \begingroup \catcode`\%=12 \directlua{ function math.round_int ( x ) return x>=0 and math.floor(x+0.5) or math.ceil(x-0.5) end function ...
4
votes
2answers
258 views

In 2021, does anything beat pdflatex? [closed]

It's 2021. I want to write a book in LaTeX, no restrictions from any publishers. I do not want to write packages. I read the terms LaTeX3 (now part of LaTeX itself?), XeLaTeX, LuaLaTeX, ..., but ...
0
votes
1answer
38 views

Problem issuing \egroup (“}”) from Lua

I would like to define a command using Lua that will start and end a \savebox depending on if it is starred or not. Let's call this command \switchcolumn. Here is the code (the first \switchcolumn ...
0
votes
0answers
31 views

Wrap CJK Languages Text with LuaLatex

I have the following tex file: \documentclass{article} \usepackage{libertine} \overfullrule=0pt\newcommand{\cvspace}{\vskip 1.2em}\directlua{ \directlua { luaotfload.add_multiscript("cjk"...
0
votes
0answers
24 views

How to update LuaLatex on Debian to use 1.10.0 and 2019.20200218-1

I have two WSL2 distros running and whilst testing my LaTeX file via the command line, it seems to generate the PDF whilst using Ubuntu. \documentclass{article} \usepackage{libertine} \overfullrule=...
1
vote
1answer
46 views

Error with lualatex in TeX Live 2021 when using LetterSpace feature in combination with \emph and -

The following example compiles on a TeX Live 2020 system (This is LuaHBTeX, Version 1.12.0 (TeX Live 2020)), but fails on a most recent TeX Live 2021 (This is LuaHBTeX, Version 1.13.2 (TeX Live 2021) ...
0
votes
2answers
53 views

Drawing small square box [closed]

I am trying to draw / create a empty box I found an old answer , but the problem is , it is not aligning to text / line Help please
0
votes
2answers
69 views

Missing characters for CJK languages in one document but work without applying commands for LuaLaTex or XeLaTeX 2018 version (latest stable version)?

I know you can apply something like \ch{...} to render specific language such as Chinese, however, is there a way to have it render the content without applying commands to the content but also work ...
0
votes
0answers
20 views

CV template stopped working after updating package

I recently updated all my packages since it had been a while. I noticed that my CV now produces errors when compiling (I am using LuaLaTeX). The same file compiled just fine right before the updates. ...
1
vote
0answers
62 views

Tikz external handling optimization

Since I have many and elaborate diagrams (PGFPlots) as well as Tikz images in my document, I have come across a limitation of Tikzexternalize. It takes a long time to compile the document if I make ...
1
vote
1answer
45 views

The \overrightarrow doesn't work

The \overrightarrow for vectors doesn't work. Here is a mwe. \documentclass{article} \usepackage{xfakebold} \usepackage{firamath-otf} \setmathfont{TeX Gyre DejaVu Math}[range={\vdots,\ddots,\...
2
votes
1answer
44 views

Drawing disconnected diagram with tikz-feynman

I am trying to draw a disconnected diagram which consists of two propagators, however one of the propagators has a cactus loop. I have this code so far \begin{center} \feynmandiagram [horizontal = a ...
1
vote
0answers
47 views

How can I substitute an ampersand in LuaLaTeX?

I am trying to use Lua to substitute the default ampersand for a swashy one. Fontforge tells me the glyph's name is 'ampersand', and the swashy version is 'u0026.da'. However, I can't get the swash ...
0
votes
0answers
42 views

Why does substitution only work in italic in LuaLaTeX?

I am trying out this simple substitution in LuaLaTeX, after confirming for this font (using FontForge) that the right alternate glyph is Q.d in both the roman and italic. Yet, this MWE produces the ...
0
votes
1answer
22 views

error: (linebreak): invalid node with type whatsit and subtype 19 found in discretionary

When trying to build the following document with LuaLaTeX, it fails on my computer with the error in the title: \documentclass{article} \usepackage{hyperref} \usepackage{polyglossia} \setmainfont{...
2
votes
2answers
35 views

Footnotes from nested multicols not displayed

I have a document that uses multicols inside multicols for a section but when I define a footnote in the inner multicols environment, it is not displayed. Footnotes defined outside of multicols or in ...
6
votes
1answer
93 views

Combining a diactritics with dotted circle in Hebrew text

I want to demonstrate various diacritics in Hebrew. Unicode contains a Dotted Circle U+25CC symbol for that purpose. However, when I try to combine them in \texthebrew the characters do not combine (...
2
votes
0answers
69 views

What are the pros and cons of using microtype or LuaTeX's inbuilt microtypography features?

Both the microtype package and LuaLaTeX appear to offer the ability to use protrusion and expansion for microtypographic improvement. However, as a recent convert to LuaLaTeX, I'm quite confused as ...
1
vote
0answers
60 views

How to make sure LuaTeX write all that is supposed to?

I have a file \documentclass{standalone} \begin{document} \( \mathaccent"7017 c \) \end{document} that prints what is supposed to, a C-with a circle on top in math-mode, just fine. Suppose now ...
0
votes
0answers
24 views

! Package PGF Math Error: Unknown function `zeta' (in '{zeta((-10.0))}').See the PGF Math

\documentclass[10pt]{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \usepackage{mathrsfs} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{ffqqqq}{rgb}{1.,0.,0.} \...
0
votes
0answers
22 views

Monospaced Garamond-Number in Section Heading

I have a problem regarding a section and its corresponding TOC entry, for which I couldn't find any solution. In my scartcl using Garamond as required font, I have several section headings \subsection{...
1
vote
1answer
59 views

How do I get more ligatures to work in Luatex via Lyx?

I came across the question "Ligatures for fi, fl, ffl do not work for Times New Roman (XeLaTeX)," and it had two solutions; but neither works completely for LuaTex. The first is Xetex/...
2
votes
1answer
56 views

How do I get lualatex+babel to use the “classic” TeX font families?

I'm getting (re)acquainted with babel and lualatex for multi-lingual documents. I know I can set individual font families with, say: \babelfont[english]{rm}{Latin Modern Roman} but how do I tell ...
0
votes
2answers
90 views

How to get a system font which works with xelatex to work with lualatex?

I'm trying to convert a document from using xelatex+polyglossia to luatex+babel (following a suggestion here). The relevant code is: \usepackage[english, bidi=basic]{babel} \usepackage{fontspec} \...
0
votes
1answer
62 views

Plain LuaTeX unicode letters with PiTeX

I'm trying to isolate fonts.ptxlua from pitex to access Open/True-Type fonts with the YaX interface. I can load the font correctly; however, as I tried to typeset some proofs, I found that now LuaTeX ...
0
votes
0answers
27 views

Biber version in MikTex (2.16) doesn't match version applied for compiling (2.12) [duplicate]

I am using LuaLatex and have a pretty strange problem for me regarding Biber and Biblatex. MikTex tells me my installed versions for Biber and BibLatex are: biber-windows-x64 (2.16) biber-doc (2.16) ...
0
votes
0answers
18 views

PDF/A-1u validation failure due to incorrect “CIDSet stream” from CJK fonts [duplicate]

This document... \documentclass{article} \usepackage[a-2u]{pdfx} \usepackage{babel} \babelprovide[import=zh-Hans]{chineseS} \babelfont[chineseS]{rm}{AR PL UMing CN} \begin{document} what \...
0
votes
0answers
42 views

Smashoperator with unicode-math and luatex

Consider the following MWE \documentclass[11pt,oneside,openright,a4paper]{memoir} \usepackage{fontspec} \usepackage{unicode-math} \usepackage{mathtools} \begin{document} \[ L(x)= \smashoperator{\...
0
votes
1answer
35 views

Scaling of parentheses and brackets with unicode-math and kpfonts fails

The problem I use unicode-math and lualatex and for beamer presentations, I want a fully compatible OTF sans serif font (that looks good with Myriad Pro unlike GFSNeohellenicMath). Kp-Math-Sans works ...
2
votes
1answer
69 views

Generating jpg images of Questions and Options in Exam Document Class through any method

The following is a code of TeX file. \documentclass{exam} \begin{document} \begin{questions} \question Sample Question \begin{choices} \choice choice 1 \choice choice 2 \...
1
vote
1answer
51 views

LuaTeX does not find liga OpenType feature

I created a custom font in FontForge and generated an OTF of it. It contains the usual ligatures fi, fl, ff, ffi, and ffl. I use the font like this: \documentclass{article} \usepackage{fontspec} \...
3
votes
2answers
72 views

LuaLaTeX and hyphenation / left/right hyphenmin

This is my code (run with LuaLaTeX): \documentclass{article} \usepackage{fontspec} \usepackage{libertine} %\usepackage{polyglossia} %\setmainlanguage{german} \usepackage[ngerman]{babel} \begin{...
1
vote
1answer
123 views

Using Adobe Fonts with (Xe/Lua)Latex

Motivation Although Adobe Fonts is proprietary software (and that's probably the whole issue here...), I think it's also really tempting to use some of the Adobe Typefaces (e.g. Minion Pro, Arno Pro, ...
1
vote
1answer
44 views

Automatically warning when I fail to use acronym package

I would like to get a warning if I define an acronym using the acronym package and then use the long or short form of the acronym without using the acronym package's facilities. For example, in this ...
1
vote
1answer
34 views

Print caron using biber [closed]

I am trying to cite a paper with the following authors: author={Flaj{\v{\s}}manov{\'a}, Jana and {\v{S}}iler, Martin and Jedli{\v{c}}ka, Petr and Hrub{\`y}, Franti{\v{s}}ek and Brzobohat{\`y}, Oto ...

1
2 3 4 5
66