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
44 views

Translate TOC data to a Lua data-structure, and create custom table of content style

Given nested loops & data-structures are more elegant in Lua (than in TeX), I think plurality of table of contents style would be easier to write in Lua. For that to work, two things would be ...
0
votes
0answers
39 views

What is about in my MWE Thumb

He latex team, In my MWE below I have some problem first I would like control not Thumb before mainmatter it's OK second I would like have Thumb inside mainmatter with shift It's almost OK except ...
0
votes
1answer
34 views

Error using mcode for importing Matlab code into LaTeX

I want to import import matlab code into my latex document: Consider the following code: \documentclass[bibliography=totoc,toc=sectionentrywithdots,DIV=10, parskip=half, 12pt, captions=...
1
vote
0answers
28 views

Fixing the position of math accents when using unicode-math in lualatex with a text font for letters and digits

for a document, I am forced to use an otf font that has no math companion. For consistency reasons, I thus need to use my text font for operators and digits. So far I have: \setmainfont{Source Serif ...
0
votes
0answers
98 views

Animated trigonometric functions

I need to plot the main 6 trigonometric functions in an animated manner similar to the one shown in Draw an animated gif of trigonometry function However, I need the circle to be the same one shown ...
0
votes
0answers
43 views

Variable declaration, substitution and automated calculations with luatex in math environment [duplicate]

I am trying to perform automated calculations with latex using lualatex. I need to be able to printout calculations like "M = a+b" while maintaining all functionalities and options wihtin ...
1
vote
1answer
27 views

Usage of \Umathaccent

can someone clarify how to use \Umathaccent. The luatex manual is very terse on the topic and trying to quickly replicate examples such as \Umathaccent 0 0 "020D7 {example} leads to an error just ...
1
vote
1answer
45 views

Unicode-math: substitute \perp for \bot

Using unicode-math with LuaTeX. The font Fira Math is missing some glyphs that I use, notably the symbol for \bot. I know that I can grab it from a different font: \setmathfont[range={"022A5}]{...
0
votes
0answers
20 views

Unicode-math: subscripts work with Bitstream Vera Sans, but not with DejaVu Sans

I'm trying to typeset some slides with text in either Bitstream Vera Sans or DejaVu Sans and maths in Fira Math using LuaLaTeX and unicode-math. When using Bitstream Vera Sans, everything works fine (...
0
votes
1answer
38 views

To Remove Enter marks (\n) in Lua

I have using LuaLaTeX Version : 1.12.0 and i have converting XML to LaTeX using Lua Script. I have need to remove enter marks in Lua Scripts. How to achieve this. \documentclass{article} \begin{...
0
votes
0answers
33 views

Unwanted spacing between text and tikzpicture caused by “non-visual” code lines

I want to show some subgraphs of a certain graph. I want them side by side and labeled. This is what I've got: I can't provide working LaTeX-code, since I have implemented the graphdrawing ...
0
votes
1answer
43 views

Text font maintain in math mode

I have using LuaLaTeX Version 1.12.0. I have need to maintain same text fonts in math mode (only alphabetic, numbers). All the Alphabetic characters (like A to Z, a to z) need to maintain same \...
0
votes
1answer
90 views

Again: ! TeX capacity exceeded, sorry [save size=500000] (LuaLaTeX, MikTeX)

I'm getting the following error message compiling my PhD-file (used: LuaLaTeX, MikTeX 2.9): ! TeX capacity exceeded, sorry [save size=500000]. <to be read again> \relax l.90 \include{...
0
votes
1answer
54 views

luaotfload always being invoked

Every time I run lualatex, luaotfload-tool is being invoked. As a trivial example, \documentclass{ltjsarticle} \usepackage{luatexja} % ltjclasses, ltjsclasses を使うときはこの行不要 \begin{document} \section{...
1
vote
1answer
72 views

how to set mathfont using lualatex-math - lualatex

I have using LuaLaTeX Version 1.12.0 and i want all the display-math font should be in STIX fonts. How to achieve this. I have need to achieve this when using lualatex-math font. \documentclass{...
0
votes
0answers
21 views

How customize Glossarie display/print?

I am using bib2gls to create a glossary. I defined new keys to the glossary using the command \glsaddstoragekey, but I have trouble to get these keys printed by the command \printunsrtglossary, e.g., ...
0
votes
2answers
31 views

mainmatter starts at previous page

I have a problem when I use \mainmatter. When I use it before a chapter, as shown on the code below, the mainmatter page numbering and style starts on the page before the chapter page i.e. the page ...
0
votes
1answer
44 views

\hbox issue in RTL context (vmode)

Consedering this example \hbox in RTL context appears on the left isn't it supposed to appear on the right side with \pardir TRT!? \documentclass{article} \usepackage[showframe]{geometry} \...
1
vote
1answer
26 views

extract all the xtables in to the one .tex file from r

I have two xtables in my R script and I would like to extract them the same .tex file then I can call them to my main.tex with \newcommand print(xtable(head(mtcars), digits =2, caption = "...
0
votes
2answers
45 views

Global Regular Expression in Lua Script

I have the below LaTeX coding in whole my document and want to do convert globally: \author{Bronnikov Kirill A{$^{1}$}{$^{2}$}{$^{3}$}} \author{Santos N O{$^{4}$}{$^{5}$}} \author{Wang Anzhong{$^{6}$...
0
votes
0answers
38 views

Aligning equal sign with sum

Consider following example: ` \documentclass[bibliography=totoc,toc=sectionentrywithdots,DIV=10, parskip=half, 12pt, captions=tableheading]{scrartcl} \usepackage{amsthm,amsmath,...
0
votes
1answer
24 views

How to check whether the fields of \maketitle command is empty

As some people know,i insert tags for command \maketitle and it fields ()@author,@date,\thanks and \title). All works ok,but for @thanks it show,that variable is empty,but it is not empty. I tryed to ...
2
votes
1answer
129 views

TikZ, Japanese babel, and LuaLaTeX clash

Apparently, there are several issues with https://ctan.org/pkg/babel and https://ctan.org/pkg/pgf. I could not resolve the following issue with the solutions I found on similar problems on TeX.SE. ...
1
vote
1answer
44 views

Is it possible to use l3build to extract (working) lua source from dtx?

I have created one dtx containing both tex/latex/expl3 code and also lua code. When running l3build doc on the dtx I obtain what I need with one problem which I don't see how to solve: the lua file ...
0
votes
0answers
21 views

How to replace prop_map_function to prop_map_inline in \maketitle command

I have a code,which do autotagging of all fields of \maketitle command. This code do iteration via \prop_function,but i want to do it via prop_map_inline,to decrease volume of code,but i get an error: ...
2
votes
2answers
70 views

MathML as well need LaTeX coding in tex4ht

I would like to convert the below file to MathML format as well need the LaTeX coding in MathML Semantic tag. MWE: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \article{Article ...
3
votes
0answers
150 views

LuaHBTeX: \copy contents behave differently from \box for copy-paste — by making contents tofu 􀈽 for reordered glyphs or by adding spurious space

Here's an example of a tex \vbox with some devanagari text in it. My code adds contents of \vbox to document twice, first its copy (using \copy), and later itself (using \box). Both copies look ...
0
votes
1answer
45 views

environnement remarque don't work with lualatex

Could you help me to solve my problem. please look the MWE below It's running ok with pdflatex compiler You have to compile twice to have a good result \documentclass{book} % test_remarque.tex compile ...
2
votes
1answer
33 views

lualatex: change font for specific characters (IPA) [U+0250 , U+02AF] globally

Im using lualatex. My tex file contains the character ɛ as well as: \newfontfamily\ipafont{Doulos SIL} \DeclareTextFontCommand{\textipafont}{\ipafont} Now I can do s.t. like: \textipafont{ɛ} to ...
1
vote
0answers
45 views

Fresh install of MacTeX 2020. Fatal error When typesetting minimal ConTeXt file [closed]

I just installed MacTeX on mac. created the code below code in TeXShop: \starttext minimal ConTeXt file \stoptext Selected "ConTeXt (LuaTeX)" from dropdown menu. Clicked on "Typeset&...
2
votes
2answers
65 views

How to pass macro arguments (#1, #2, ..) to Lua variables

This question is probably trivial, but I started exploring Lua(La)TeX a couple of hours ago so bear with me. The MWE is the following: test.tex: \documentclass{article} \directlua{require("test....
0
votes
0answers
21 views

XML is IN and Coverting to TeX using LuaLaTeX - Speed Problem

Previously we are used XMLTEX, but it will take more time in our production. We have plan to using LuaLaTeX, because LuaLaTeX is supporting direct UTF characters. And many more modern technology is ...
7
votes
2answers
448 views

LuaTeX/PdfTeX: Incorrect transparency for fonts with overlapping glyphs — achieve effect similar to Adobe InDesign/Tikz in text mode

Update-1: This issue affects all fonts that assume glyph overlap. The 3 broad categories affected are: 1) All fonts for non-Latin scripts that inherently require glyph overlap, 2) Handwriting (cursive)...
1
vote
0answers
77 views

Missing number error with LuaLaTeX and standalone under LaTeX 2020/10/01 [closed]

I have troubles using TikZ externalize and standalone. It seems that the required PDF is not generated. First, I suspected the recent PFG update (https://github.com/pgf-tikz/pgf/issues/932) but after ...
1
vote
1answer
46 views

Using chain substitution to add alternative characters contextually in LuaLaTeX

I'm trying to add some contextual alternatives to Linux Libertine using fonts.handlers.otf.addfeature. I can add these characters correctly using an ordinary substitution, but they are not recognized ...
2
votes
1answer
80 views

LuaTeX: Is there a way to define new named tex box purely on lua side (with desired checks)?

So far in my dealings with named tex boxes in luatex, I am able to set/get/copy its contents in lua code, but don't know how define new tex box in lua. The manual doesn't have a method explicitly ...
1
vote
0answers
34 views

LuaTeX: Method equivalent to node.id(“<type_name>”) for subtypes, and reverse mapping

Is there a method in luatex distribution that provides an equivalent of node.id("<type_name>") for subtypes? A method like node.subtype_id("<type_name>","<...
1
vote
0answers
68 views

How to make accessible pdfs with ConTeXt/LuaTeX and open-source tools

I recently watched this talk about PDF accessibility in LaTeX, and I was wondering how well it was supported by ConTeXt/LuaTeX. From what I've gathered, LuaTeX makes it easier by using UTF8 and TTF ...
0
votes
1answer
74 views

LuaTeX: Glyph property table doesn't get copied upon vbox copy

When I copy a vbox, its glyph's property table isn't copied. Is there a way to make it work? The property table might sound uninteresting for Node renderer,[*] but is quite valuable (for its ...
0
votes
2answers
82 views

Two dimensional scatter plot using latex

I have a two dimensional array of integers. I want to draw a scatter plot with the data like this: for(i=0, i<length(row), i++) for(j=0, j<length(column), j++) if data[i][j] is positive put a ...
0
votes
1answer
63 views

How to format a document so it compiles with tex.exe?

I have a distribution of TeX installed, which does not include LaTeX. So compiling even trivial examples of documents gives "Undefined control sequence" errors even for something like \...
1
vote
0answers
79 views

LuaTeX: Devanagari glyph order is reversed in tex's internal nodelist, how to recover the correct order while traversing glyph nodes?

Note: The problem discussed in this question might affect not just Devanagari, but also other scripts that have character (logical/typed) & glyph (presentational/typeset) order reversed/reordered ...
1
vote
2answers
48 views

Luatex pass variable amount of arguments from tex to lua (comma separated and escaped)

How can you pass multiple arguments from a tex command to a lua function, whilst also escaping them Or how do I modify (imports) \usepackage{luacode} \newcommand{\example}[1]{ \directlua{ ...
3
votes
0answers
71 views

Issue breakable box (tcolorbox package) with babel (layout=graphics)

This example with option layout=graphics produce breakable box out of page ( the non breakable one is ok). is there a solution for this issue. \documentclass{report} \usepackage[paper width=5cm,paper ...
3
votes
2answers
174 views

Lulatex - Unicode character error

I'm using a \LaTeX document using both Devnagari and Latin fonts. The command used is: lualatex -shell-escape -interaction nonstopmode However, despite selecting the appropriate fonts. The minimal ...
4
votes
2answers
181 views

Devanagari UTF-8 text extraction code produces lua error while using HarfBuzz renderer

Devanagari UTF-8 text extraction code doesn't produce lua error while using fontspec's Node renderer, but still doesn't produce correct result due to a possible bug in Node renderer. I have filed that ...
1
vote
0answers
57 views

Renderer=HarfBuzz, Renderer=Harfbuzz throw Unkown option error for lualatex, lualatex-dev texlive 2020 [closed]

For the code in question asked here, I get error ! LaTeX Error: Unknown option `Renderer=HarfBuzz' for package `fontspec-luatex' when I pass option Renderer=HarfBuzz or Renderer=Harfbuzz to package ...
2
votes
2answers
149 views

\textlangle and \textrangle, with kpfonts-otf, not displayed with lualatex but displayed with xelatex

As shown by the following MCE, \textlangle and \textrangle are correctly displayed with pdflatex + kpfonts but not with lualatex + kpfonts-otf. The latter case is not so unexpected since Daniel Flipo, ...
1
vote
0answers
82 views

LuaTeX: UTF-8 character extraction, is one way more accurate and/or preferable than another

While experimenting ways to extract UTF-8 character strings from TeX boxes, I found a post from user micahl-h21 here: UTF-8 text extraction. After looking at the way glyph data is stored in the ...
3
votes
1answer
52 views

Troubles with indentfirst packages with xelatex and lualatex

In theory, the indentfirst package allows us to modify the usual behaviour in the standard classes without having to manually add an \indent command after each heading. It's an extremely brief and ...

1
2 3 4 5
60