Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

List of `to do's` with chapter AND section, and skipping ch/sect without to do's

I have defined a command for the to do's: \documentclass{book} \usepackage{graphicx} \usepackage{hyperref} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \...
1
vote
0answers
51 views

Using fontspec (which requires exp3-code.tex) makes lualatex slow

I recently tried luatex (TeX Live on Mac) and found that if I use fontspec to load a font, it really slows down the compilation. My test document: \documentclass{article} % \usepackage{fontspec} % \...
2
votes
0answers
93 views

Load System Fonts in Fedora 28 Texlive 2017* ConTeXt? [to be closed] [closed]

The example from font-sel.mkvi fails to load system fonts: \definefontfamily [dejavu] [serif] [DejaVu Serif] \definefontfamily [dejavu] [sans] [DejaVu Sans] \definefontfamily [dejavu] [mono] [...
2
votes
1answer
53 views

Why luajitlatex is not available by default settings of TeXLive?

I uses luajitlatex because it is faster than lualatex but it is not enabled by default. Why isn't it available by default settings?
0
votes
1answer
45 views

Get cropped pdf with luatex [closed]

Is there a good way to automatically crop the pdf document with luatex, in order to get the same result as using pdfcrop after luatex but in one operation and without pdfcrop ?
0
votes
0answers
39 views

LaTeX fonts with math and utf8 support [duplicate]

Although I like Computer Modern font families I'd like to be able to make documents look like they were made by "normal person" and still be able to benefit from the TeX powers*. In short the solution ...
0
votes
2answers
77 views

Underfull \hbox (badness 10000) in paragraph at lines 36--37

I get warning which I can't understand. This is my latex code: \documentclass[a4paper,10]{article} \usepackage[zw32010,crossmark]{ticket} \usepackage{graphicx} \usepackage{fontspec} \usepackage[...
0
votes
0answers
54 views

Is there any LaTeX tokenizer and/or normalizer?

I'm deep learning scientist and I'm wondering if there is any LaTeX tokenizer and/or normalizer? For example, there are non-normalized tokens below: \frac12 \frac 12 \frac1 2 \frac 1 2 \frac{1}2 \...
1
vote
1answer
40 views

How to use previously downloaded fonts with lualatex engine and python to create pdf file

How and where to install .ttf fonts which I've already downloaded from web. I've created latex file using online overleaf. Inside same directory I put all my .ttf fonts and LuaLaTeX engine and ...
7
votes
1answer
404 views

Drawing many random paths in TikZ

I'm trying to draw a diagram in TikZ that helps visually explain an analogy I'm trying to make in a paper. Basically, I want to start with a plane that contains many random paths of different lengths, ...
4
votes
1answer
135 views

Lightning symbol with LuaTex

I'm trying to use the lightning symbol ↯ in my document. I use luatex. If I understand correctly I do not need the command \unicode{x21af} but I can write ↯ directly in my document. My problem is ...
0
votes
1answer
33 views

lualatex running a single command with popen (and showing its output in the document)

On Linux/Debian/Sid, inside any git repository, the following pipeline gives some git commit id: git log --format=oneline -1 --abbrev=16 --abbrev-commit -q | cut -d' ' -f1 for example, in one ...
1
vote
0answers
54 views

Insert LaTeX code at line break (follow up)

This is a follow-up question to David Carlisle's answer here (Insert LaTeX code at line break). In addition to glyph nodes, is there a way to insert (almost) arbitrary LaTeX commands with the help of ...
4
votes
1answer
65 views

amsmath intlimits option doesn't work with STIX2 fonts when compiling usinf XeLaTeX or LuaLaTeX

\documentclass{minimal} \usepackage[intlimits]{amsmath} \usepackage{unicode-math} \setmathfont{STIX Two Math} \begin{document} \[ \int_{a}^{b}\qquad% doesn't work \int\displaylimits_{a}^{b}% ...
0
votes
1answer
75 views

Error with LuaTeX and pgfplots

This question is strictly related to a previous one: I have tried to test the code in this answer, which uses LuaTeX and pgfplots. Using TeXstudio 2.12.6 with Qt 5.9.5 on Linux Ubuntu 18.04, before ...
0
votes
0answers
31 views

Deporting the content of an environnement using lualatex

Using lualatex, I'm looking for the best way to automatically deport answers inside a solution environment, just following an exercise environment. Here is the content of the source tex file. \begin{...
2
votes
1answer
70 views

ConTeXt passing current counter value to lua

I've been experimenting with ConTeXt and have been trying to create an exam using it. I would like to have an array in lua that holds the weight of each question, and a custom enumeration called "...
2
votes
2answers
99 views

Luatex paper size

I am looking into plain luatex (no latex). The following definitions change the size of the paper, but don't change the physical paper size. What am I missing \newdimen\pagewidth \newdimen\pageheight ...
2
votes
0answers
109 views

Examples of luatex callback with lualatex [closed]

This is my first steps with luatex, and I have tried to learn from this site how to add "luatex callback" the problem is that I find only a few examples on post_linebreak_filter or ...
4
votes
1answer
87 views

LuaLaTeX + unicode-math results in wrong \mkern and \mskip

In a personal package I tested \mkern and \mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using \mkern0mu and \mskip0mu seems to leave a negative space of -1.1mu....
2
votes
1answer
94 views

Adobe Fonts (formerly Typekit), LuaLaTeX, and Optical Sizes

I’ve been having trouble using fonts that make use of Optical Sizes from Adobe Fonts (formerly Typekit) in LuaLaTeX. 1 · Adobe Fonts As Adobe Fonts uses a clever injection mechanism to inject its ...
0
votes
0answers
62 views

Using multilingual fonts and multiple languages in [Lua]LaTeX and XeLaTeX at KIle, TeXStudio and VSCode with LaTeX Workshop

I have many difficulties with setting and building my thesis in [Lua]LaTeX, Lua and XeLaTex, using Kile, TeXstudio and VSCode with LaTeX Workshop.I want to use Georgian fonts and language and write in ...
1
vote
1answer
46 views

Command in lua table key fail

Considering this example, why a tex command inside tab key do not work, and how can I solve this issue. \documentclass{article} \usepackage{luacode} \begin{document} \def\tempA{foo} \def\tempB{...
0
votes
1answer
373 views

LuaLaTeX not recognised as a VS Code tool

I've been trying to adopt VS Code as my LaTeX editior of choice, since it has all of the features Atom has but more, once the extension LaTeX Workshop has been installed. My only gripe with it is that ...
0
votes
0answers
35 views

Possible to get included file path?

I know that I can check if a file exists with \IfFileExists{}{}{}. Is it also possible to get the absolute path to that found file? The reason I am asking is that I have a custom documentclass that ...
0
votes
0answers
47 views

LuaLaTeX doesn't update the PDF file in TexMaker

I started working today a pre-existing document in TeXMaker using LuaLaTeX, but there seems to be an issue with some restrictions inhibited. More specifically, I get the following message when I tried ...
0
votes
0answers
59 views

Custom Lua feature for CID-keyed font

fonts.handlers.otf.addfeature in luaotfload can be used to create custom features for fonts. The unicode values of glyphs can be used for CID fonts in the same way as for GID fonts, but some fonts ...
1
vote
1answer
61 views

LuaLaTeX set a path in lua

I have defined a command \newcommand{\mypath}{/Documents/Myfile/additionalresources/} that contains the path to some external files that I need in my main file. I need to use the \mypath command to ...
2
votes
1answer
200 views

Collect numbers a,b and c from equation $ax^2+bx+c=0$ with lpeg (luatex)

This is my first attempt to create macro with luatex. the macro \solveq to solve quadratic equation ax^2+bx+c=0 here my code \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{luacode} ...
3
votes
1answer
298 views

Updated lualatex vs. tikz-feynman

ORIGINAL QUESTION: I have major problems compiling Feynman diagrams produced with the tikz-feynman package with lualatex. To make it less likely that I am just sloppy, I copied the example from this ...
12
votes
4answers
958 views

Calculating the value of a formula without duplication, using LuaTeX or similar

If I have a numerical equation (i.e. no unknowns) in LaTeX, is it possible to have the equation typeset and evaluated in one go? I know calculations can be done relatively easily by embedding Lua ...
0
votes
1answer
81 views

How can I do this Feyman diagram with tikzfeyman in latex?

So I was wondering if anyone could provide input as how i can do this diagram in latex with tikzfeymann package. Thanks! this is pretty much what I got \feynmandiagram [large, layered layout, ...
0
votes
0answers
55 views

Is there any way to specifiy which tex compiler is used with pylatex?

I am trying to generate an automate report with pylatex and since I goofed up my pdflatex installation, I want to use lualatex. Is there any way to specific the complier used. If not, I can just ...
12
votes
2answers
541 views

Presentation that shows how to use lualatex to make a presentation

In my presentation, I would like to have a listings environment that shows how to make a presentation. So far I have found that, when using listings in a presentation, we should pass the option ...
1
vote
1answer
59 views

Extra vertical space at end of last column when loading adjustbox (only luatex)

I have noticed some odd extra vertical when placing boxes in a twocolumn layout: \documentclass[a5paper]{article} \usepackage{calc} % issue only happens with adjustbox loaded \usepackage{adjustbox} ...
2
votes
1answer
103 views

\setmainfont works with XeTeX but not with LuaTeX

I'm trying to use LuaTeX with Adobe's Garamond Premier Pro, but it doesn't work, saying that: ! error: (type 0): cannot find file '' ! ==> Fatal error occurred, no output PDF file produced! ...
4
votes
2answers
190 views

LuaLaTeX: define a macro that stores data to an external file

I would like to implement a macro that allows me to give two arguments and and see this two arguments be saves on an external file ‘data_file.lua’ in a table, something like data[key] = value. ...
1
vote
1answer
80 views

Replace string in .tex file then compiled by latex

The document is created from different file and included using \input{filename.tex}. In all these file I want to replace a string by a new string but not losing grammar and pulling checking provide by ...
5
votes
1answer
106 views

Noto CJK font not usable with ConTeXt?

Noto CJK font is an OpenType CJK font developed by Google and Adobe. In ConTeXt, if I write \definefontfamily [myfamily] [serif] [Noto Serif CJK SC] then context will hang on loading the Noto font. ...
7
votes
1answer
543 views

Fresh install of TL2018: no tikz graph drawing libraries found

On a fresh install of TL 2018, on Linux, no tikz graph drawing libraries can be found. The files, e.g. texlive/2018/texmf-dist/tex/generic/pgf/graphdrawing/tex/pgflibrarygraphdrawing.trees.code.tex ...
2
votes
1answer
247 views

Getting fontspec Fonts with pdfLaTeX

I have to make a document, which was originally written in LuaLaTeX, compatible for both pdfLaTeX and LuaLaTeX. Everything works except that the fonts differ. How can I force pdfLaTeX/fontenc to use ...
0
votes
1answer
62 views

LuaLaTeX packages for bold math symbols [closed]

I am writing a document, and this is my preamble: \documentclass[11pt]{article} % Packages dealing with fonts \usepackage{mathtools} \usepackage{amssymb} \usepackage{unicode-math} \usepackage{...
4
votes
1answer
68 views

LuaTeX: \fontfeature{Fractions=On} turns first digits into superscripts

With LuaTeX, all of a sudden the first digits of any numbers outside $math$ (and siunitx's \num) are turned into superscripts if I set \defaultfontfeatures[\rmfamily,\sffamily]{Fractions=On} -- ...
3
votes
1answer
96 views

How to mark soft wrap lines?

Is there a way to mark all lines which have been wrapped automatically (i.e. places where LuaTeX decided there needed to be a line break)? Something like \localrightbox but which is only active at ...
2
votes
2answers
68 views

Mayan Numerals in math mode

How to use Mayan Numerals from 'BabelStone Mayan Numerals' font in math mode, with LuaLaTeX?
1
vote
0answers
41 views

Compound word hyphenation problem (bug?) with LuaTeX 1.07.0 (TeX Live 2018)

As stated in this answer from 2014 and this one from 2016, LuaTeX should allow arbitrary hyphenation points for compound words already separated by hyphens through: \hyphenation{short=tem-pered} I'm ...
1
vote
1answer
91 views

Equal line height with Libertinus Math?

This inline formula increases the line height. How to prevent? % !TEX TS-program = lualatex \documentclass[12pt]{scrreprt} \usepackage{amsmath} \usepackage{unicode-math} \usepackage{blindtext} \...
4
votes
2answers
99 views

Insert LaTeX code at line break

Is there a way to insert arbitrary (La)TeX-code at the line break of a typeset line? I am aware that this isn't really possible with (La)TeX as such. But looking at all the interesting chickenize-...
2
votes
1answer
67 views

Degree symbol on Japanese system

I am trying to write a degree symbol for an angle on a Japanese computer running an English version of Windows 7. Consider the following MWE compiled with LuaLaTeX 1.0.4 on TeXLive 2017: \...
2
votes
0answers
89 views

Lua Table or XML as Bibliography File in LuaLaTeX

According to the ConTeXt Wiki in ConTeXt you can use the bibtex format for bibliographies but are not limited to that filetype. Since lua and XML are a little more universal but i can‘t (yet) switch ...