Skip to main content

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

How to write out multiple text files from multiple instances of LaTeX environments for Literate Programming

Did find: Different approach to literate programming for LaTeX but it's focused on writing out LaTeX .cls and .sty files --- I would like a simple solution which: typesets the code writes out the ...
WillAdams's user avatar
  • 7,237
0 votes
0 answers
17 views

mathastext missing characters

I am using mathastext package (and lualatex or xelatex) but it misses to use some characters from my personal font. My code is just using: \documentclass[12pt]{article} \usepackage[no-math]{fontspec} ...
javier lazaro's user avatar
1 vote
0 answers
49 views

Composing a letter with LuaTeX

In this YouTube video https://www.youtube.com/watch?v=E7Xfocy40wg, BamDone showed how to compose a simple letter using Typst. I reproduced their document in LuaTeX in the following way. % Page layout ...
Ronald's user avatar
  • 11
2 votes
0 answers
35 views

Adjust kerning for garamond math

I would like to adjust the kerning between some glyphs, since imo e.g. '(' and 'f' are typeset way too close. % !TEX program = lualatex \documentclass{minimal} \usepackage{fontspec} \usepackage{...
JoN's user avatar
  • 354
1 vote
0 answers
45 views

Variable Font Weight Doesn't Change Font Weight

I am having trouble getting a variable font to work in Overleaf. For context, I downloaded the EBGaramond Font from Google Fonts. After adding the corresponding files to my Overleaf Project, I ran the ...
BOSSrobot's user avatar
0 votes
0 answers
22 views

LuaTeX & citeproc: attempt to concatenate a nil value

I am working with LuaTex and citeproc to generate formatted references using a custom CSL file. I have tried to compile both locally via my texlive installation (and using Kile) and online via ...
Elliot Perviz's user avatar
0 votes
0 answers
30 views

How to reconcile literate and \lst@BeginAlsoWriteFile?

I am currently trying to write the source code in the lstlistings environment to a file and read it using luaLatex. However, I found that the characters specified for literate in the language styling (...
博ノ助's user avatar
3 votes
1 answer
129 views

LuaLaTeX: change font id does not work with a non default font

I try to change the font from the Lua side. I tried to change to small caps (see Obtain small caps font from OpenType font when diffining a `\font`, thanks to egreg's code) but, whereas everything ...
Maxime Chupin's user avatar
1 vote
1 answer
38 views

Make Lua print more precise errors in non-interactive mode

This is a similar problem to that in this question but the solution there does not always work well enough. With -lua=batchmode.lua which takes into account the Lua script below, this \RequirePackage{...
scriptfoo's user avatar
  • 283
1 vote
2 answers
55 views

luaotfload fails during compilation but luaotfload-tool doesn't

Goal: compile a document with Arabic symbols in MLA style document. There is a known issue with luaotfload-tool --find. I applied the fix to the directory indicated by kpsewhich luaotfload.sty and ...
AvidSeeker's user avatar
3 votes
1 answer
91 views

xfrac reverses numerator and denominator in align environment with babel

I use the xfrac package to make nice-looking fractions and I encountered a problem with it. I use the babel package to write my documents in Hebrew, and I found that using xfrac inside an align* ...
Shai Avr's user avatar
  • 909
1 vote
0 answers
65 views

Change number style with mathastext

I'm using a commercial font (Fleischman BT Pro) which contains different types of numbers (old style proportional and tabular). This font does not contain a math font, why I'm using the package ...
Dieter's user avatar
  • 127
0 votes
0 answers
60 views

Personal .sty and .cls files creation

I have recently been more and more interested in the LaTeX dark side (i.e. developping commands, packages, globally playing and trying stuff for fun and knowledge - so jk I know it is not that dark (: ...
Marck's user avatar
  • 167
4 votes
1 answer
258 views

Mersenne prime numbers with Lua and LuaTeX

I had a table of Mersenne numbers. As I needed to do some more stuff with Mersenne numbers later on. I used Lua to capture the values from the table and then defined two commands \mersennefromrange ...
yannisl's user avatar
  • 118k
0 votes
1 answer
74 views

Encoding Glowing Stars into a Tikzpicture with Fadings

The following code is based on the answer of @Tom posted here: Extending the Features of the Glowing Star Posted by User Sandy G which produces: I would like to add some of these glowing stars into a ...
DDS's user avatar
  • 9,768
6 votes
2 answers
187 views

Conflict between `\setmainfont` and `\mainmatter`

I compiled this MWE \documentclass{toptesi} \setmainfont[Ligatures=TeX]{TeX Gyre Termes} \begin{document} \mainmatter This is a sentence. \end{document} with /usr/local/texlive/2024/bin/x86_64-...
miticollo's user avatar
  • 367
2 votes
1 answer
71 views

Define strings representing macros in lualatex

I am using trying to define a variable in LuaLaTeX which holds a string representing a macro. The idea is (eventually) to pass that string to a tex.print and have the macro called. For example: \...
Nate Ackerman's user avatar
2 votes
1 answer
154 views

LuaLaTeX : Error loading module 'ssl.https'

I'm in the middle of migrating a document (my CV/Resume) from xelatex to lualatex. After setting up my environment, I cannot build a simple document containing Lua code for testing. Here is some ...
Skaÿ's user avatar
  • 185
2 votes
0 answers
18 views

Unable to externalize pgfplots with lualatex [duplicate]

I am working on a long document with a lot of PGF plots and want to externalize the plots to reduce the execution time. As far as I understood the docs, see here and here, externalization requires the ...
albert's user avatar
  • 1,017
0 votes
1 answer
29 views

Using Latex with two plots next to each other error with subfigure

i am running the following code: \begin{figure}[htbp] \begin{subfigure}[b]{0.48\textwidth} \centering \begin{tikzpicture} \begin{axis}[ axis lines=left, ...
SebNik's user avatar
  • 101
0 votes
0 answers
48 views

Compiling multi-script unicode LaTeX documents

I'm trying to write a latex document that supports arbitrary utf-8 encoded scripts. This is turning out to be surprisingly difficult. A key point is that I want to get this working without specifying ...
ketil's user avatar
  • 101
0 votes
0 answers
46 views

Change the indentation before the title

I use a development environment with custom libraries (https://github.com/Korogodin/NSLReport ). I need to change the indentation from the top of the page to the chapter title, but when I add a ...
Fidelity's user avatar
0 votes
0 answers
19 views

Splitting lines on comma in pgfplotstable

I use pgfplotstable like this: \pgfplotstableset{ every even row/.style={ before row={\rowcolor[gray]{0.9}}}, every head row/.style={ before row={\hline \rowcolor[gray]{0.7}}, after row=\hline }, ...
Nicolas Goy's user avatar
0 votes
0 answers
30 views

applying stylistic sets on parts of an arabic word (in xelatex/lualatex) causes words to split in the middle

I bought the beautiful Arabic font that supports many stylistic sets. One of these has to do with the two forms for the kaaf: When I apply the relevant stylistic set to an entire word, it renders all ...
Mayer Goldberg's user avatar
0 votes
2 answers
251 views

How to typeset Dijkstra choice with TeX Gyre Termes and STIX Two Math? Other font suggestions are welcome

Continuing How to draw the box of Dijkstra's Guarded Command Language?, let's try to retypeset EWD's programs. Let's test STIX Math, with ⫾ (Dijkstra choice, U+2AFE), the same symbol in \...
AlMa1r's user avatar
  • 541
4 votes
1 answer
138 views

pdfx workaround breaks itemize [closed]

I compiled this MWE \RequirePackage[2024-05-01]{latexrelease} \documentclass{article} \usepackage{pdfx} \begin{document} This is NOT an item. \begin{itemize} \item This is an item. \end{itemize} ...
miticollo's user avatar
  • 367
3 votes
1 answer
59 views

different behaving of ligaturing callback with LaTeX

I am trying to reproduce the TeX following example (Paul Isambert, TUGboat,https://tug.org/TUGboat/tb32-1/tb100isambert.pdf): \directlua{ local GLYF = node.id("glyph") function show_nodes (...
Maxime Chupin's user avatar
0 votes
0 answers
41 views

tex compiler yield spurious timezone

I am in Timezone GMT+02, Germany. SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1 lualatex test means that lualatex runs with time 0 seconds since 1970-01-01 midnight. To be more precise, it is the time when ...
user2609605's user avatar
1 vote
1 answer
28 views

Index changed from \thepage to \theenumi and alike

This is a sequel of An Index for an Enumerate Document. I tried to replace \thepage by \theenumi or \theenumii with no success. Here is a NWE : \documentclass{article} \usepackage{makeidx} % \...
user1771398's user avatar
3 votes
2 answers
241 views

LuaHBTeX with bold small caps

Am using LuaHBTeX and want to write Vinkel in the caption using bold small caps, but the command \sc{\textbf{Vinkel}} won't do it. \documentclass{article} \usepackage{graphicx} \begin{document} \...
Vinkel's user avatar
  • 1
1 vote
1 answer
65 views

On the Display of Quotation Marks When Using the EB Garamond Font

Consider the code: \documentclass[12pt]{article} \usepackage{fontspec} \begin{document} \fontspec{EB Garamond} ``This is a quote.'' {\scshape{``This is a quote.''}} \end{document} which produces ...
DDS's user avatar
  • 9,768
1 vote
2 answers
47 views

pass dimens or macros as parameters to a lua function

I have this Lua function: -- ratio of dimensions function ptLuaGetRatio(val1, val2) local ratio = val1 / val2 tex.print(string.format("%0.5f", ratio)) end In LuaTeX I want to call it ...
coonlight's user avatar
  • 137
0 votes
2 answers
47 views

How to implement a multiline split when using chemmacros, chemformula & chemfig with LuaLaTeX

I've explored how to use \begin{split} and \begin{multline} to break the following long equation when using \ch. None have worked. I've assembled a not-so-short (apologies) MWE that will compile as is,...
RosesBouquet's user avatar
2 votes
1 answer
228 views

Add noise to Font Glyphs and specify Multiple Appearance for same character sequence

I want to render pdf just like the old presses used to do in past. The impression differs from document to document due to varying force applied to the dye. Suppose we try to apply the same effect in ...
Debanjan Dutta's user avatar
0 votes
0 answers
64 views

How to link URL without using packages (in Lua(La)TeX)?

How could I link a URL without using any packages (i.e. either in plain TeX or using Lua(La)TeX)? I am compiling with Lua(La)TeX.
fsr_j's user avatar
  • 75
1 vote
1 answer
41 views

Use datatool variable for including a pdf

I'd like to generate a bulk letter with datatool and include a different pdf for each row. Can this be done with pdfpages? \documentclass[paper=a4]{scrlttr2} \usepackage{fontspec} \usepackage{...
tobidope's user avatar
  • 111
0 votes
0 answers
21 views

Two bibliographies of different styles in one document separated after one another [duplicate]

I have a book-document where I write a lot of chapters and have a bibliography of a certain style at the end of the chapters. Then I add an appendix. After some sections in the appendix, I have a new ...
edgar's user avatar
  • 21
1 vote
0 answers
59 views

Tikz externalize doesn't work in overleaf with LuaLatex

I have a big project with multiple folders and files in overleaf and I want to externalize my tikz figs. I have followed this tutorial but this doesn't work. I get the following error for all the figs ...
Jean's user avatar
  • 11
1 vote
1 answer
54 views

Enhancing Line Connections and Text Alignment in TikZ Diagram

I'm working on creating an image using the TikZ package in LaTeX. The current output is close to what I want, but there are some areas for improvement: Line Connection: I need all the lines from the ...
Constantinos Pisimisis's user avatar
1 vote
1 answer
43 views

Usage of polyglossia breaks lettrine drop caps

I'm facing an issue with the usage of polyglossia and lettrine packages on the same document. Setup: MiKTeK on Windows 10 lettrine 2.60 polyglossia 2.1 Tried with both LuaLaTeX and XeLaTeX When I ...
Jorge Raimundo's user avatar
0 votes
0 answers
31 views

(VSCode/LaTeX Previewer) Can someone help me figure out why my installation of the plugin doesn't work?

Posted on the VSCode Stack Overflow but since this is a latex plugin I am having trouble with, this should be allowed here. I have the following LuaLaTeX code that I want to be able to have coupled ...
Felix Maldonado's user avatar
6 votes
2 answers
135 views

Package lua-ul: Marginal notes are (only) partially colored

I'm commenting a LaTeX file using the highlight command from the very nice lua-ul package. There is a strange side effect: the coloring in my margin notes is only partially. MWE: \documentclass{...
Keks Dose's user avatar
  • 31.3k
3 votes
2 answers
195 views

Italicizing a Lettrine on an Ad Hoc Basis

Consider the code: \documentclass[12pt]{book} \usepackage{lettrine,xcolor} \renewcommand{\LettrineFontHook}{\color{red}{}} % for the initial argument. \renewcommand{\LettrineTextFont}{\scshape} % for ...
DDS's user avatar
  • 9,768
1 vote
1 answer
50 views

how to get consistent linespacing between footnotes when using linespread (I know of setspace, but this is not an option)?

I use KOMASkript classes (but I also experience the problem with the standard classes): When I set the linespread greater 1 (in my example \linespread{1.09}) the baselineskip from one footnote to the ...
Andre's user avatar
  • 121
3 votes
1 answer
73 views

Why latexmk doesn't ignore certain input files as dependencies (again)

(This is a follow up of How to make latexmk ignore certain input files as dependencies, and Avoid latexmk rerun forced by new timestamp of lualatex cache where @JohnCollins asked for the work flow ...
Denis Bitouzé's user avatar
5 votes
2 answers
488 views

Is DVI used as an intermediate format by pdfLaTeX and LuaLaTeX?

As I understand it, the LaTeX ecosystem has been gradually inching toward PDF as the default output format for a while. However, DVI is indispensable for a workflow I've been experimenting with to ...
steve's user avatar
  • 2,256
1 vote
1 answer
44 views

Font ebgaramond-maths cannot be found with lualatex and fontspec

For processing pdf printable files with my projects I just switched from pdflatex to now lualatex and need to use the following font ebgaramond-maths with the following MWE getting an error for not ...
Thomkrates's user avatar
1 vote
0 answers
54 views

Plantuml in overleaf is not working with Lualatex

As I understand this answer: https://stackoverflow.com/a/76482628/3960850 the approach of using plantuml in overleaf should be quite easy. It should be enough to switch to Lualatex and it should work. ...
matousc's user avatar
  • 109
0 votes
1 answer
118 views

LuaScript/LuaLaTeX for reproduceable hex random numbers

Edited and shortened For my documentation, I want to have/draw a memory layout with random hex numbers - so that it doesn't get so boring with multiple images. To this end, I created a Lua script that ...
olStckEx's user avatar
  • 449
2 votes
0 answers
73 views

colortbl package with lualatex-dev problem multicolumn

I have using This is LuaHBTeX, Version 1.18.0 (TeX Live 2024). When using colortbl package with lualatex-dev for creating accessibility PDF multicolumn values are print in the PDF (Example : \...
Balaji's user avatar
  • 149

1
2 3 4 5
87