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

Arabic, Greek & Hebrew in LuaLaTeX [memoir]

I have read this and looked at the babel package (link) and tried running the small Hebrew example (p. 24) in LuaTeX with document class memoir without any luck. Here is a simple example where I try ...
22
votes
2answers
1k views

Why do I need Lua or LaTeX3 in a plain old technical document?

I wrote and maintain a couple hundred page computer related technical spec in XeLaTeX. I use tables, figures, bitfields, algorithms and other typical trappings. I'm intrigued by LuaTeX and LaTeX3, ...
32
votes
6answers
8k views

Reading data from a relational database into a LaTeX table

I'm using Tex Live 2009 on Debian squeeze. I can upgrade if I really, really have to, but I'd rather not. I was wondering if it would be possible to do the following. Given some data in a (...
2
votes
3answers
50 views

Table with vertical aligned header text [tabularx]

In LuaTeX with document class memoir and use of tabularx, how do I go about making a table (linewidth) layout similar to: Note: Table head is center bottom align Table body is right align A group of ...
1
vote
1answer
37 views

LuaLaTeX doesn't execute plantuml with Cyrrilic-name file

It's derivative from my previous question: \DeclareGraphicsRule for plantuml doesn't work with LuaLaTeX I have this MWE: \documentclass{article} \usepackage{graphicx} \DeclareGraphicsExtensions{...
2
votes
0answers
56 views

XeLaTeX and PDFLaTeX give different outputs for Tikz in TeXLive 2019 [on hold]

Consider the following code: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(0,1) node[midway,sloped]{ABCD}; \end{tikzpicture} \end{document} When I ...
3
votes
3answers
109 views

Enumerate list with each item in a new row

Q: How can I create a table which contains a continuous numerating list with each item in a new row. So I can insert content for the other columns in that row. I use luatex. The result should look ...
5
votes
3answers
86 views

Resources for learning Lua programming

I saw power of LuaLaTeX through several examples on the TeX Stack Exchange site. Could you suggest some books or other resources to learn Lua programming? I want to learn about variables, loops, ...
6
votes
3answers
252 views

Arithmetics in LuaLaTeX

I have the following code. \documentclass{article} \usepackage{luacode} \begin{luacode} function fact(n) if n == 0 then return 1 else tex.sprint ( n * fact(n - 1) ) ...
1
vote
1answer
59 views

Conditional string replacements in LuaLaTeX

I want to process whole tex file content with string replacements using lua. The following are the conditions F, G, H should be replaced by P, Q, R respectively. However if they aren't followed by a,...
1
vote
1answer
21 views

Loading fontspec makes Greek maths styles vanish

If I load fontspec, without unicode-math or mathspec, in LuaLaTex or XeLaTeX, I can no longer use \mathsf{\Phi}, \mathbf{\Phi}, and maybe other variants. Demo: \documentclass[a4paper]{article} \...
0
votes
2answers
48 views

Can anyone explain to me that why `\def` is used together with @ in this cls file

Recently, I have found a CV template class here in GitHub In the file awesome-cv.cls, there are some definitions confuse me, like: % Define writer's name % Usage: \name{<firstname>}{<...
5
votes
2answers
110 views

How to use Noto Color Emoji with lualatex?

I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex? \documentclass{article} \usepackage{...
1
vote
1answer
73 views

Constant word spacing

is there a way to achieve constant word spacing in paragraph using latex/ luatex/ xelatex/ context? I came across posts that mention Tex applies glue between words, but am not sure how to exactly ...
0
votes
2answers
37 views

3 columns with top-align and bottom-align [tabularx]

I'm trying to put together a three column table (in tabularx) that have the following layout (in full line width): Section Description Page 1-5 text text text ...... 7 5-12 ...
0
votes
1answer
23 views

How to change column separation of two column footnote [memoir]

With the document class memoir and use of the built-in footnote setting \twocolumnfootnotes, how do you: Change the size of the column seperation to e.g. 0.2cm? LuaTeX MWE: \documentclass[twoside]{...
2
votes
1answer
52 views

Pattern syntax using luacode

How can I find characters that are not curly braces? If I use this pattern "[^}]" in string.gsub I get an error. EDIT: This is the part of the code that doesn't work: \usepackage{luacode} \begin{...
2
votes
1answer
35 views

Colorize text using LuaLaTeX doesn't work

I need to colorize all occurences of certain symbols/words and so I followed the steps of this answer. This is a test code I have written in TeXstudio: % !TeX program = lualatex \documentclass[11pt]{...
9
votes
3answers
392 views

Issue with Burmese and LuaLaTeX

I am working with a project which requires LuaLaTeX (TeX Live 2018) and the Noto Serif Myanmar font. I need a few words of Burmese only. The MWE works well with XeLaTeX. But LuaLaTeX has a problem ...
8
votes
2answers
157 views

Tipa not working

I'm trying to type the phonetic transcription of some words with tipa but it's not compiling correctly and the glyphs don't show up. Here's a MWE of my code compiled with LuaLaTeX: \documentclass[...
0
votes
0answers
35 views

Whitespace in \includegraphics in combination with lualatex

When including a graphics file from a different directory than the current working directory having whitespace in its path, I usually put the path in double quotes like this: \usepackage{graphicx} .....
2
votes
0answers
43 views

Hyphenation exception syntax for LuaLaTeX

I want to hyphenate some German words. As an example, for the word Erb-b2-Familie, I want the first hyphen sign to be non-breakable the second hyphen sign to be breakable the rest of the word (...
1
vote
0answers
87 views

Can't execute jar from directory with umlaut

Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here. I have written a Java program that I am calling from inside ...
0
votes
1answer
38 views

Justify footnote text in two column footnotes [memoir]

The documentclass memoir provides a default option for two columns footnotes with the setting \twocolumnfootnotes, however the text in the footnote per default are aligned left and not justified. How ...
5
votes
2answers
139 views

Troubling glyphs

To type arabic with the same keyboard layout I used to use on Windows 10, I've created a .mim file (key mapping file) and put it in /usr/share/m17n to make it work with ibus-m17n on Ubuntu 18.04 LTS ...
3
votes
1answer
66 views

MacTeX 2019 gives “! LaTeX3 Error: Control sequence \not= already defined.”

I have a document, that compiles fine on MacTeX 2017, which is installed on my desktop machine. I now installed MacTeX 2019 on my laptop and get this cryptic error: (/usr/local/texlive/2019/texmf-...
0
votes
1answer
40 views

Package showkeys, switch off/on key display

Is there a trick (I have seen no option for that) to switch on/off the printing of the keys? Switch off would be enough. Because at the end of my draft document I have toc's that help me in my work, ...
0
votes
1answer
21 views

Manipulating page number in table of content

I would like to add a new line to the toc, but with full control of the page number on the right. That is, in the following picture I would like a 17 instead of a 5. Below is my attempt, that I do ...
1
vote
2answers
62 views

How do I get the first page number of the currect chapter/section?

I would like to get the page number of the first page of the current chapter the page number of the first page of the current section Is it possible? The goal is to add the chapter/section to a ...
0
votes
0answers
48 views

What are to differences pros/cons for Latex, Luatex, Context, etc? [duplicate]

I have used Latex several times for small papers and thesis' for University. So I know a bit about how to create formulars, tables and stuff. However, I still consider myself a newbie, who barely ...
1
vote
0answers
43 views

Generate pdfx a-b1 with Lualatex

update since pdfx and hyperxmp is not copatible I try to use lualatex to generate pdf a-b1 compatible files without creating and xmp file. My attempt does not work. The pdf is generated but adobe ...
2
votes
1answer
53 views

syntonly: warning (font): lua-loaded font '16' with name 'dummy' has no characters

I get this warning when compiling a document which uses syntonly with LuaLaTeX. Does every font have an ID and 16 links to the 16th font which was loaded? Where is the dummy font and why do I get this ...
9
votes
0answers
166 views

How to select the right index tool for LuaLaTeX in 2019?

There are several tools for indexing: luaindex (one release from 2011, written in Lua, "This is an alpha version!", by Markus Kohm) makeindex (1987-1993, written in C, by L. Lamport, P. Chen et al.) ...
5
votes
1answer
84 views

lualatex: too little space inside f\Bigl(

Consider the following example: \documentclass{standalone} \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math} \begin{document} \(f\Bigl(\Bigr)\) \end{document} If you compile it with ...
7
votes
2answers
110 views

Choose columnsep depending on page

I wish I could set a different columsep on the page if it is the title page of the chapter. So far I've tried using a conditional ifchapterpage with the code within makeatother found in here (by @...
0
votes
0answers
40 views

Put each text on each column

How can I put texts from different languages in each column on a two column book class? I tried the paracol package but it doesn't look good for my entire file. I put here a MWE of my code (compiled ...
2
votes
1answer
48 views

Custom columnsep in twocolumn book

I'm trying to customize the column separator for my two columns book class. I made a simple Tikz line to put between them but I find no way to do so. Here's a MWE of my code (I'm compiling it with ...
3
votes
1answer
57 views

pgfplots with LuaLaTeX - totally different results

Here's my code: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16,colormap/blackwhite} \begin{document} \begin{tikzpicture} \begin{axis}[view={-60}{40}, hide axis=true, ...
2
votes
1answer
67 views

Using otf files in the TEXMF tree with lualatex

I'm trying to use an otf file that is in the TEXMF tree, but another file with the same name is used instead. I run lualatex from a locally installed TexLive 2019 on this file: \documentclass{...
10
votes
1answer
97 views

How do I define a new TeX register with arguments in LuaTeX?

Some time ago I tried to implement the \pdfadjustinterwordglue from pdfTeX in LuaTeX using a callback. Getting the callback to work is pretty simple, but there is another major problem in the way ...
5
votes
1answer
166 views

LaTeX Make Word Appear

I want to introduce words in Beamer slides one at a time. I learned to do this using itemize but what if I have simple plain words? I do not want the word from each segment to repeat I just want the ...
2
votes
1answer
44 views

When passing TeX code to Lua and back to TeX, the # symbol doubles

Consider the following MWE. If I pass some TeX code to Lua (via \directlua) and Lua tries to pass it back to TeX (via tex.sprint), the following problem becomes apparent. The code below prints text ...
17
votes
3answers
2k views

Avoid just nearly filled last lines

Old school typesetters never allowed the last line of a paragraph to be just nearly filled. Either it would be clearly shorter than the other lines or it would be stretched to align with the right ...
6
votes
3answers
220 views

Inserting full stops between letters with a macro

I was thinking recently that it would be really useful to have a macro that would fill in full stops between the letters of an acronym, say \acr which would take an input \acr{WHO} and spit out ‘W.H.O....
6
votes
1answer
91 views

Xelatex vs Lualatex and font substitution

As is known, in the Turkish language the i exists as distinct letters in two versions, with and without a dot (with very different pronunciations): the dotted couple i / İ and the dotless couple ı / I....
0
votes
1answer
58 views

Accents misaligned with unicode-math and STIX2

While using STIX2 with LuaLaTeX and unicode-math, I found out that accents such as \hat or \bar aren't aligned properly with the letters: I haven't noticed any similar problems with XITS with the ...
0
votes
0answers
96 views

TexLive 2019 lualatex doesn't compile document

I have a document that compiles fine under pdflatex. But when I use lualatex the compilation process ends without doing anything. The log file has just these line: This is LuaTeX, Version 1.10.0 (...
1
vote
1answer
44 views

Organization in Online Sources Biber

I am currently facing some obstacles concerning bibliography layout (again). My institute's formal rules require adding the organization to online sources, if available in capslock in front of the ...
3
votes
1answer
489 views

ConTeXt: How to typeset Arabic text?

I am new to ConTeXt world, however what I need to achieve is simply to be able to typeset Arabic/Hebrew text along with English text (Bidi) in ConTeXt. I came across this part of the context garden ...
1
vote
1answer
55 views

How to use AutoFakeBold and AutoFakeItalic with fontspec?

The font, Kalpurush, doesn't have any Bold, Italic, BoldItalic etc. features in it. \documentclass{article} \usepackage{harfload, fontspec} \setmainfont{Kalpurush}[RawFeature={mode=harf}] \parindent ...