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}.

13
votes
3answers
182 views

Are there cases where fontenc + luatex (or xetex) cause problems?

According to the luatex docs, you shouldn't use fontenc with luatex. People swear up and down that fontenc is incompatible, but I haven't been able to find an example where loading the package causes ...
0
votes
1answer
33 views

Help with MetaPost and Metaobj with latex

Kind help with two examples to do metapost and metaobj in latex running from Texicenter. what packages to include and program two examples I read through book not able to understand. First input ...
0
votes
3answers
71 views

An ellipsis with N dots

How might one define a lualatex macro \lip, taking optional arguments * and [N], such that, with no argument, the expansion is an ellipsis consisting of three dots, with [N] it has N dots, and with * ...
6
votes
1answer
48 views

Reverse direction of writing automatically with RTL script

A new interesting feature with latest release of babel a lua algorithm which detect the beginning and the end of Arabic sentences and revers direction of writing without adding explicit markup (\...
1
vote
2answers
74 views

how to emulate \message in LuaTeX

How do I emulate the \message primitive in Lua code in LuaTeX? I want something like texio.write('foobarbaz'), but without the line break within the word foobarbaz. Example with lualatex: \typeout{1}...
0
votes
0answers
27 views

May pstool call lualatex instead of pdflatex?

I'm working with a document containing huge bibliography. That forced me to switch to lualatex, because pdflatex generated errors: {\csname blx@nih@author\endcsname {{{hash=...
3
votes
2answers
71 views

Perfect alignment, LuaTex and sidebearings. Part II

I want to achieve a perfect alignment of the right (and/or left) margins of all the lines of paragraph (to the ink), among the lines themselves and eventually with other geometric elements of a page. ...
1
vote
1answer
41 views

German as main language + english and japanese

Hey @all (& a happy new year), I am currently facing the challenge of including 3 languages and 2 different writing systems in one document. These are: German as main language, English as an ...
4
votes
1answer
64 views

How to get the full filenames in the error messages?

I'm getting the following error message from lualatex: (/usr/share/texlive/texmf-dist/tex/luatex/luaotfload/luaotfload.sty...ive/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:176: attempt to ...
1
vote
2answers
76 views

How to convert all hyphenation patterns from Unicode to T1 in lualatex?

I'm trying to use lualatex with old, 8-bit, non-Unicode fonts: \documentclass[a4paper]{article} \usepackage[utf8]{luainputenc} \usepackage{t1enc} \usepackage{lmodern} \def\myhelvetica{\fontfamily{phv}...
1
vote
0answers
235 views

Problem with miktex-2.9.6942-x64 and lualatex/luatex

I am running MiKTeX 2.9 in windows 10 x64. After making an fresh basic install with basic-miktex-2.9.6942-x64.exe (to keep the old) I run into a problem with a lualatex program. (correction of ...
5
votes
1answer
110 views

How to speed up LuaLaTeX startup with fontspec?

As a novice user of lualatex and fontspec I've found it very slow (>1.3 seconds) to load on my Linux system: % This is file compact.tex \documentclass[a4paper]{article} % This is needed only for old (...
2
votes
1answer
36 views

\H{u} and \H{o} do not appear in the lualatex output PDF

The following .tex source file has been working fine for me for decades using pdflatex: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{t1enc} \usepackage{lmodern} \def\...
0
votes
0answers
29 views

Can't compile Lualatex on TexWorks [Kubuntu 18.04]

I'm totally newbie of LaTeX and Latex Editors, so I may be wrongly set up my environment. Anyway, if I try to compile my .tex with LuaLaTeX I get an error "Unable to read environment locale: exit now....
3
votes
3answers
56 views

what .bib files do for bibtex, is there something for \href?

I wasn't even sure how to formulate this question, nor the appropriate tags, so there may be some editing or even deletion if this is a stupid question... But I think it is a feature that people would ...
0
votes
1answer
54 views

How to make LuaLaTeX multithreaded when `--shell-escape` is enabled? [duplicate]

I found this thread: How to make pdfLaTeX multithreaded when `--shell-escape` is enabled? It works great. But when I change to LuaLaTeX there is still just 1 cpu active. So is there a way to achive ...
2
votes
1answer
35 views

String parameter passed to a class vanish the spaces between words

I created a class in which I'd like to pass some parameters in \documentclass[parameters]{}. The parameters I need to pass are pdftitle and pdfsubject to the hyperref package. I succeeded in doing so, ...
22
votes
1answer
287 views

TikZ graphdrawing differences between LuaTeX versions

What I will describe below is not yet a problem but will appear when TeX Live 2019 is released and LuaTeX will be upgraded to 1.09. MikTeX users might already experience this issue. It also affects ...
0
votes
0answers
53 views

Problem with LuaLaTeX and OTF font

I have a problem using a special symbol font in OTF format with LuaLaTeX. The font itself is correctly installed and found during compilation. But the LOG file states that chars are missing (in fact ...
10
votes
1answer
108 views

marking end of words in luatex - problem with math

I'm trying to mark the end of "words" (including punctuation) with luatex callbacks. (At the end I want to inject space chars at this positions, but the example uses rules for the visualization). ...
2
votes
0answers
35 views

\addfontfeature resets \prehyphenchar and \posthyphenchar

This question is similar, but applies only to XETEX. In LuaTEX, \prehyphenchar and \posthyphenchar supposedly affect the current language: All languages start out with \prehyphenchar=`\-, \...
1
vote
2answers
44 views

arabluatex: Underlining an Arabic text

How to fix the following underlined Arabic text? \documentclass{article} \usepackage[tuenc]{fontspec} \newfontfamily\arabicfont{Amiri}[Script=Arabic, RawFeature={+anum}] \usepackage{arabluatex} \...
0
votes
0answers
45 views

PGFPlots package does not show any graphs

As I told in my previous thread, I'm trying to find my way out with the PGFPlots package. The package is installed and I added \usepackage{pgfplots} in the Latex Preamble section. I pressed the TeX ...
4
votes
1answer
141 views

How can I select one No-unicode symbol from one font?

I am using Asea font http://users.teilar.gr/~g1951d/Textfonts.zip From http://users.teilar.gr/~g1951d/ And I want to pick some characters that are not encoded in unicode, but are present in the font,...
7
votes
0answers
185 views

Convert all all-caps words to small caps #2

A question very similar to mine was asked before, but I assume that there are others with the same issue and that there are other solutions. I know several academic publishers that don't like ...
3
votes
0answers
72 views

Wrong direction of vertices in tikz-feynman remains under macOS, using PGF 3.1 and luatex 1.07 [duplicate]

This question is originally from the discussion under github issue CTeX-org/forum#4. The similar problems raised by questions Fresh install of TL2018: no tikz graph drawing libraries found, and ...
3
votes
1answer
39 views

Cite a chapter not a page of a book

I'm trying to cite to a chapter of a in the .bib file specified book. How could I change my own cite style to change the default "p. 10" to a "ch. 10" (I only have to cite chapters)? MWE: \...
2
votes
1answer
61 views

How to achieve Arial Narrow in bold face

I am not quite understanding why I am not able to achieve bold face Arial Narrow font with the following mwe. \documentclass{article} \usepackage{titlesec} % N.B. typeset with lualatex.exe % ...
1
vote
1answer
27 views

Customizing biblatex “alphabetic” style

I'm trying to customize my citation a little, but don't know how to achieve my goals. MWE: \documentclass[ fleqn, fontsize=11pt, paper=a4, bibliography=...
3
votes
1answer
89 views

Let luatex output a list of glyphs and their positions

In the Python plotting library Matplotlib (https://matplotlib.org), text can be rendered using either Matplotlib's own text layout algorithm (which includes a parser for a subset of TeX-like mathmode ...
0
votes
0answers
37 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
0answers
27 views

“Undefined control sequence” error using \pagelayout command of sbabook documentclass

I am trying to build the example of the sbabook class which uses a line \pagelayout{\paperbackpage} I get an error when building this ! Undefined control sequence. l.3 \pagelayout {\...
6
votes
2answers
77 views

Weird Vertical Spacing of '*' with Fira Code in Listings

I am recently getting started with LuaLaTeX and I was trying to set up a custom listings style for C++. Consider the following MWE: \documentclass{scrartcl} \usepackage{fontspec} \usepackage{xcolor} ...
4
votes
1answer
40 views

token.set_macro: \directlua vs. luacode*

If I compile the following code with LuaLaTeX I get the word "RED" as output. The call of token.set_macro inside of luacode* seems to be noneffective. \listfiles \documentclass{minimal} \usepackage{...
2
votes
1answer
84 views

Margins in PDF document

I created a LaTeX document with a header and converted it to PDF with luatex. When I open the document with a PDFviewer (I tried Acrobat and pdf exchange editor) and try to print it, the PDF viewers ...
4
votes
1answer
70 views

LuaLatex: Difference between `dofile` and `require` when loading lua files

This is a small question related to the answer given here, https://tex.stackexchange.com/a/201742/17858 which computes the factorial of a number in an external lua file. \documentclass{article} %\...
13
votes
1answer
317 views

How to use lua code from external file in lualatex?

I am learning lualatex because of its abilities to use lua and make it easier for more sophisticated documents. I am using this document for running some introductory examples. https://www.unirioja....
2
votes
2answers
62 views

pst-node replacement for LuaTeX

I have code that uses pst-node package to draw overbrace. What package should i use to compile it with LuaTeX? \documentclass[preview,border=10pt]{standalone} \usepackage{amsmath} \usepackage{pst-...
3
votes
2answers
68 views

Collision of etoolbox and LuaLatex

I use a macro \mychoice{item a, item b, items c,…} that returns one of the items of the comma-separated-list determined by an external counter based on the \docsvlist macro from etoolbox. In simple ...
12
votes
3answers
218 views

How to preserve parskip in vsplit?

If I box something with non-zero \parskip and split it using \vsplit, the resulting split box will have the exact requested height. This is ususally more than I want, so I \unvbox the split box and ...
2
votes
1answer
78 views

ConTeXt graphics example compilation

Scratching my head to compile this example in the mkiv manual (p57). Example run: $ context file.tex. Am I missing something?? %engine=luatex \setuphead[section][style=\bfa] \...
0
votes
1answer
66 views

Plotting a curve using Lualatex within Standalone environment

I am trying to plot a curve as shown below: %&lualatex % !TeX program = lualatex \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \...
3
votes
2answers
65 views

How to turn on font features with Libertine and LuaLaTeX?

I'd like to get the Libertine fonts with the font features hlig, liga and onum, and also load the relevant mono font and Biolinum for the sans font. It seems I can simply use \usepackage{libertine} ...
12
votes
2answers
425 views

What is the best practice to pass spaces to Lua from expl3?

In LuaTeX, using the \directlua primitive (within a standard LaTeX2e setup) \directlua{tex.print("Hello World!")} will produce "Hello World!" to the output PDF. On the other hand, in expl3 code \...
1
vote
1answer
31 views

lualatex using vebatim package

This was working and I don't see what has changed, but the code below is now throwing a "Missing \endcsname inserted" error. If I just press Return, lualatex continues, reads the text file myfile.lua,...
3
votes
2answers
107 views

Warnings when using babel with LuaLaTeX

Recently I have started using LuaLaTeX over pdfLaTeX, without any real issue so far. When working on a project I have noticed some warning messages I have failed to decpiher after consulting Google ...
6
votes
1answer
158 views

How to make the switch from LaTeX to ConTeXt [duplicate]

I've heard and read much about ConTeXt and Metafun and there are tempting arguments to switch. But i still feel intimidated thinking about switching from my current LaTeX-environment, which includes ...
0
votes
1answer
49 views

Biblatex: brackets and no bracket

I would like to know whether it is possible with biblatex and pdflatex to automatically select the in-text look of the \cite command, with the author-year style. For instance, I would like citations ...
1
vote
1answer
74 views

Why is LuaLaTeX not picking up small caps glyphs?

I have a font, whose font table is as shown in the image. However, when I compile a basic document with LuaLaTeX, the text appears as lower case, though small caps is specified. I understand, from ...
2
votes
1answer
59 views

Making the left-hand side of a double spread always print the same within part of a document

I wish to print the actual running text* of part of a document only on the right-hand side pages of double spreads, while the left-hand side repeats the same every time because the reader will want to ...