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}.
3,136
questions
0
votes
1answer
19 views
Getting soulutf8 to work with luatex
Is it possible to get soul(utf8) to work with luatex? In the following
example only the first three lines are typeset.
\documentclass{article}
\usepackage{fontspec}
\usepackage{soulutf8}
\...
1
vote
1answer
67 views
Can I make \directlua understand unicode chars like ≥, ≤, ≠, ∙, and −?
MWE:
\directlua{%
local abs=math.abs
function gcd(x, y)
if y \csstring\~= 0 then
return gcd(y, x \csstring\% y)% I would like to write "≠" instead of "~=".
else
...
0
votes
0answers
172 views
new install of Miktex and luatex does no longer compile
I did a fresh install of my Windows and reinstalled MikTex and now I can no longer compile any document using luatex. This problem seems similar to this Lualatex produces no output (MiKTeX) and this ...
0
votes
1answer
39 views
Embed PDF metadata with Luatex
I'm trying to add metadata to the pdf generated from the compilation of my .tex document.
I understand that this is a functionality offered by the hyperref package but I am not able to make it work, ...
1
vote
0answers
17 views
Named overlay specifications in beamer?
I use beamer to create complex animations of program execution, where multiple parts change at each step. The final animation has 30 to 40 steps. Here is a simplified MWE:
\begin{document}
\begin{...
0
votes
0answers
22 views
Why does printing an array cause lualatex to freeze?
The following MWE sends lualatex into an infinite loop on my machine:
\documentclass{minimal}
\usepackage{luacode}
\begin{luacode*}
start = {42};
\end{luacode*}
\begin{document}
\directlua{tex....
0
votes
0answers
28 views
Foreign-Language support in \part, \Section, etc
I have a document with a lot of different languages, some of which appear in \part{}, \section{}, etc. blocks. For example, the following MWE:
\documentclass[12pt,a4paper,oneside]{scrbook}
\...
3
votes
0answers
68 views
Corrupt PDF with \includegraphics
I'm trying to include an image that is in .pdf format within my document. I am including lots of images in my real document with others displaying correctly: I need to retain their high quality hence ...
1
vote
2answers
46 views
Shifting curved line downwards in xymatrix
In the following MEW I have two problems
Only due to the MWE: stackexchange is having some problem highlighting my code (due to the back upper coma)
The real problem: I would like that the snake go ...
0
votes
1answer
33 views
Chinese text in English scrbook with luatexja-fontspec and polyglossia
I have the following document:
\documentclass[12pt,a4paper,oneside]{scrbook}
\usepackage{fontspec}
\makeatletter
\usepackage{csquotes}
\usepackage{luacode}
%\usepackage[UTF8]{ctex}
\usepackage{...
3
votes
1answer
65 views
Straight quote literals when using LuaTeX and fontspec
This is a similar question to How to get straight quotation marks?, but in my case, I want literal ' and " marks to stay that way, as I use Unicode curly quotes when I want curly quotes. Is there ...
0
votes
1answer
63 views
Fill page with text
With command \raggedbottom lines on pages are aligned. I need it, \flushbottom generate quite ugly book spread, but in result some pages have different height of text block. I tried play agound with &...
3
votes
1answer
65 views
Render difference between LuaLaTeX and XeLaTeX for thick lines
\documentclass{article}
\usepackage{xhfill}
\begin{document}
Foo \xrfill[0pt]{30pt}[black]
\end{document}
When rendered by LuaLaTeX, this produces a thick black line with clearly visible vertical ...
0
votes
0answers
65 views
Latex for telegram whatsapps and email
In the site of Quora we can write mathematics formulas with latex codes. It converts automatically the codes to Math. formulas.
can one do the same in "telegram", Whatsapp. or emails ...
0
votes
0answers
39 views
Tracking (microtype) causes different results within \makebox
Why is the tracking for small caps text different in \makebox and how can I get an equal result?
% !TeX TS-program = lualatex
\documentclass{book}
\usepackage{fontspec}
\usepackage[%
tracking=...
0
votes
1answer
29 views
Group separator issue using siunitx and unicode-math together
I wanted to use the unicode "π" symbol inside siunitx macros. As many other people, I ran into several issues and used TeX StackExchange to learn about and solve them one by one.
However, ...
0
votes
0answers
33 views
Include glossary and nomenclature with LuaTeX
I'm a Latex beginner and I'm trying to include a glossary as well as nomenclature section at the beginning of my thesis. As I'm using the fontspec.sty package I have to use either XeTeX or LuaTeX for ...
2
votes
1answer
55 views
Texlive-2020's lualatex fails to compile due to “no writeable cache path”. Texlive-2019's lualatex works fine
After upgrading my texlive distribution to v2020 on my linux machine lualatex stopped working altogether producing the same fatal error for all projects. Even compiling the following minimal source ...
0
votes
1answer
29 views
Inconsistent spacing around equation environments with EB Garamond
Problem
I have inconsistent spacing between text and equation (not ending paragraph). It doesn't seem to be related to large symbols like integrals or indexed sums. (see edit 2.) When using default (...
2
votes
1answer
58 views
Differences between .dvi-files created via LuaLaTeX and .dvi-files created via pdfLaTeX
System in use for experiments: Debian buster (i386), vanilla TeX Live 2020
Creating .dvi-files with LuaLaTeX currently appears to have no practical use to me as end-user as long as due to the lack of ...
2
votes
1answer
71 views
LuaLaTeX, Vollkorn and Math Symbols
A similar question was asked a few years ago here but since then, Vollkorn claims to have included support for a variety of math symbols, greek letters, and others. I have tried to use the .otf files ...
0
votes
0answers
40 views
Font features of EBGaramond don't work correctly
%% Fontspec provides an interface to system fonts and Opentype features
\usepackage{fontspec}
%% Load default features. An asterisk means they are supposed to be
%% enabled by default, but engines ...
0
votes
2answers
95 views
LuaLaTeX: How to speed up PDF generation?
With pdflatex, I used to write \pdfcompresslevel 0 and \pdfobjcompresslevel 0 before the \documentclass command. This would disable the PDF compression which in turn speeds up the generation of the ...
2
votes
1answer
89 views
Root index and subscript placement with STIX Two Math Font (Lualatex)
The index spacing is somewhat problematic in STIX Two Math (v2.1) font. It is most evident with the root index, but subscripts are a little to close to the main symbol in my opinion, too. Exponents ...
0
votes
1answer
46 views
How to adapt a per-line background to parshape?
I've been adding rules behind each line of text in LuaTeX by filling \localleftbox with a box whose width is set to 0 but whose contents are rules of length \textwidth. So long as I have standard ...
1
vote
2answers
171 views
Using post_linebreak_filter in LuaTeX to set height and depth of boxes
After reading this answer
Automatically prevent extra line spacing because of math
by David Carlisle, I experimented with the code to get grid typesetting. My approach: The height of a line is always (...
0
votes
1answer
35 views
Confusion around the tikz-feynman package
I know very little about LaTeX and TeX in general aside from how to actually write documents in it. I need to be able to make Feynman diagrams for a document I'm working on. However, when I use the ...
0
votes
1answer
24 views
Combination of \qedhere and \tag on the left
If I put a \qedhere in combination with \tag{2} but on the left I get an error:
Package amsmath Error: Multiple \tag.
The error also say to copnsult the documenation, thing I did and put a \mbox ...
3
votes
1answer
52 views
lualatex hyphenation issue in fancyhdr, with gregoriotex and multicols, latin text
The problem presents as each word in the header becoming hyphenated with each syllable on its own line, making the header unreasonably tall. The problem is intermittent, not occurring on every page.
...
1
vote
1answer
19 views
How can I get a line from an external text (input by `\lstinputlisting` of the listings package) into the table of contents?
I am just experimenting with a couple (about 50 or more) of simple text files, inputting them into a collection to be printed. My first problem, getting the first line printed as a heading in bold, ...
0
votes
2answers
52 views
Using degree symbol with lualatex and mathdesign package
I started writing my thesis with pdflatex, since this is what the template used. But I have some large tables, which just barely do not fit. By reducing the font size they become a bit small, still ...
3
votes
1answer
37 views
Vertical alignment of foreign language in table
I'm trying to have two texts parallel in a tabular environment.
My MWE:
\documentclass{standalone}
\usepackage[nil, main=german, bidi=basic]{babel}
\babelfont[hebrew]{rm}{Ezra SIL}
\usepackage{array}...
0
votes
1answer
48 views
Adding one or two Vietnamese words in lualatex
I'm using lualatex and I just need to have a couple Vietnamese workds. I'd like to be able to do the special characters like /^a but some of the letters have diacritics above and below, such as: ậ
I ...
1
vote
1answer
60 views
\Umath doesn't work in LuaLatex and OTF fonts
I have tried to change the vertical space in fractions using LuaLaTeX and STIX fonts.
I have used the following commands
\Umathfractionnumup\textstyle
\Umathfractiondenomdown\textstyle
\...
2
votes
0answers
36 views
Spacing issues with unicode-math in lualatex but not xelatex
I am getting a spacing issue on a document if I compile with lualatex but not with xelatex. If I input $Y \bigr]$, the top serif of Y collides with the bracket in lualatex. Xelatex is handling this ...
3
votes
1answer
42 views
Loading symbols iteratively from several packages
The following does not compile with LuaLaTeX:
\documentclass[a4paper, 12pt]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage[mathrm=sym]{unicode-math}
\...
3
votes
2answers
63 views
Show spacing, paragraphs and tab characters in PDF
I am writing my Masterthesis with Latex (lualatex). For the actual writing part I like to use showframe option of the geometry package. This helps me to find overfull hboxes.
Today I wondered if I ...
1
vote
0answers
66 views
LuaLaTeX: How to reduce the file size of the generated PDF on the fly?
I'm using LaTeX to generate a PDF that will have around 1500 - 2000 pages. The PDF includes a lot of pictures. Approximately 5000 photographs (JPG) that are each 2MB and a couple of hundred smaller ...
-1
votes
1answer
82 views
Help with drawing this diagram Tikz or any useful code to be rendered in latex
I need help with drawing this diagram in tikZ
1
vote
0answers
40 views
pdfcomment with LuaLaTeX
It seems, \pdftooltip (pdfcomment) does not work with LuaLaTeX, at least, this does not seem to work:
\documentclass{article}
\usepackage{pdfcomment}
\usepackage{xcolor}
\begin{document}
\...
1
vote
1answer
115 views
MiKTeX can't find stix2 font files
I want to use the stix2 fonts together with unocode-math. I was trying to load them as in the MWE below, which works fine with TeX Live, but fails with MiKTeX, telling me The font "STIX2Text-...
0
votes
0answers
34 views
LuaLaTeX ignoring newgeometry command
In using the newgeometry command in LuaLaTeX, the command does not appear to have effect.
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{luacode, lipsum}
\begin{document}
\...
0
votes
1answer
49 views
Last Word not break avoid automatically
I have need to avoid last word break. It must print in PDF before the line or break with previous word.
My MWE IS:
\documentclass{book}
\doublehyphendemerits=100000
\frenchspacing
\usepackage{...
1
vote
0answers
39 views
How can I change the font in latex Beamer (using LuaLatex) to Calibri font?
When trying to reproduce a slide in Powerpoint (with font Calibri) to Latex beamer, I've noticed that the font used by Latex beamer "takes more space": it uses a larger space between words ...
0
votes
0answers
45 views
TexLive: extra fonts for XeTeX and LuaTeX installed locally
I have a problem with XeTeX and extra fonts installed with TexLive 2020, which are required for XeTex and LuaTeX. I work on Ubuntu 2020.
The file name I am referring to is texlive-fontconfig.conf. ...
0
votes
1answer
48 views
Math Fonts Substitute Missing Glyphs
I have using LuaLaTeX V: 1.12.0 and how to do automatically missing characters in Math?
My LaTeX:
\documentclass{article}
\tracinglostchars=2 % Warn if the current font does not have a character!
\...
0
votes
0answers
26 views
lualatex: includegraphics and image resoulution
I have an automated import of images into my LaTeX file which will finally compiled via luaHBTex 1.12. I want to include the images as they are but they shouldn't exceed the pagesize (neither height ...
1
vote
2answers
209 views
Package latexalpha2 Error: WolframScript cannot be found, which is required to use latexalpha2
Although wolframscript is fully working on the command prompt of Windows 10, the package latexalpha2 gives this error
Package latexalpha2 Error: WolframScript cannot be found, which is
required to ...
1
vote
1answer
31 views
Problem writing to file through \directlua in a memoir class document
Below is a minimal example of some code where the memoir class seems to collide with Lua code, executed within a \directlua command, that writes to an external file.
Can anyone help me figure out the ...
0
votes
1answer
30 views
page width long table
Is there a better way to set this long table? something better than >{\raggedright\arraybackslash}p{6cm}? many thanks in advance.
\documentclass[11pt,authoryear,sort&compress]{report}
\...