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
1answer
118 views

microtype: \texls has no effect

I use microtype's \textls in combination with fontspec to change the tracking of text, and until recently, this worked as it should. Recently, it seems to have stopped to work with fonts other than ...
2
votes
1answer
53 views

Endless compilations when SourceCodePro is loaded, target PDF absent but aux file present

For some time now I witnessed latexmk compiling my documents 5 times in a row. I thought that was because I was doing very complicated things with beamer. But consider the following code : \...
0
votes
1answer
95 views

I can't find file `luavlna'

For some reason, the package luavlna doesn't seem to be working. I am using MiKTeX and have the luavlna package installed. When I try the following example: \documentclass[a4paper, 12pt]{article} \...
3
votes
1answer
50 views

Which libraries are available via ffi for texlive luatex with no other installation?

Recent versions of luatex (≥ 1.0.3) come with ffi. That means that one can call a C library from lua inside a TeX file. Some (very) recent examples on TeX.sx have proven its power. Assuming current ...
1
vote
2answers
68 views

remove “./” of “\currfileabspath” when using lualatex

I have a small problem with the package currfile and the command \currfileabspath. When compiling the file using (pdf|xe)latex I get the expected result, but if I use lualatex it adds ./ to the ...
1
vote
1answer
86 views

Use different font “file” for numbers in the text with fontspec

I'm trying to use a different font file just for the numerals in the text (that is, NOT in math mode), while keeping the rest of the text as is. The typeface I'm using lacks old-style numerals, so I ...
9
votes
3answers
353 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 ...
2
votes
1answer
43 views

luatodonotes package: note appears in Todo list, but not shown in the text

Using LuaLaTeX and the luatodonotes package, I can't see any of the notes I added by \todo{}. Nevertheless they are shown in the Todo list. Other features of the package, like the \missingfigure{}, ...
1
vote
0answers
104 views

LuaLateX vs XeLaTex Myriad

When I typeset this code: \documentclass{article} \usepackage{fontspec} \begin{document} \setsansfont{MyriadPro-BoldSemiCn} \sffamily Hello world ! \setsansfont{Myriad Pro} \sffamily {\bfseries ...
1
vote
1answer
62 views

Redefining standard font size commands when using LuaLaTeX and fontspec

How can I redefine the standard font size commands (\small, \normalsize, \large, etc.) when using LuaLaTeX and fontspec? From what I read after searching online, I did the following: \documentclass{...
9
votes
2answers
549 views

LuaTeX C API as Lua C API

I'm writing a Lua Module for LuaLaTeX. Does a LuaTeX C API exist? For example, how can I use the C version of tex.print into my C code? Thanks in advance
12
votes
1answer
616 views

svg output and LuaTeX

Trying to find some ways to automate generation of svg output for TeX math formulas, I thought about two possibilities with luatex. Use lua inside a callback to parse the node tree and output svg (...
2
votes
1answer
62 views

Install cryst font on macOS 10.14 for pdflatex and lualatex

I want to use following font in my current document with pdflatex and lualatex https://ctan.org/tex-archive/fonts/cryst Following MWE compiles successfully \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
54 views

Make icon fonts in PDF searchable by name

Nowadays, icon fonts are quite popular on the web. There have been latex bindings to these icon fonts through packages such as academicons, fontawesome5 and fontmfizz. This brings in new ...
3
votes
1answer
48 views

Histogram in pgfplots: Count the total number of data values

I'd like to make a histogram with pgfplots showing percentages on the y-axis instead of the number of points falling into the bins, like so (the example is taken from the manual): \documentclass[11pt]...
2
votes
1answer
94 views

pdfx: incomplete CIDset in some fonts

I try to compile a document as pdf/x and pdf/a with pdfx under LuaLaTeX, and I am already quite successful. One thing still poses problems though: With some fonts I get the following error if I check ...
4
votes
1answer
126 views

Can luatex export coordinates of “glyph boxes”?

Consider the following sample LaTeX file: \documentclass{standalone} \begin{document} Test $x^2$ \end{document} When processed by one of the TeX engines, one gets a pdf with glyphs that are ...
2
votes
0answers
73 views

Data input in LaTeX possible?

For my next project, I want to check my options. I would like to create a lexicographic book with genealogical data as a PDF, probably in XeLaTeX but I am open for suggestions. The book shall contain ...
3
votes
1answer
66 views

Epicycle and deferent with Tikz - Function syntax

I want to build an epicyclic graph and found a useful trigonometric function on the web (URL is in comment in my MWE). My personal issue is that I can't write a complex function as a "plot" argument. ...
1
vote
0answers
51 views

What might be preventing Unicode characters from displaying?

When I insert the reference mark character and compile the following MWE, the character shows up in the compiled output: \documentclass{article} \usepackage{fontspec} \begin{document} ྿ \end{...
1
vote
0answers
207 views

Changing to custom font on overleaf [closed]

I was trying to use a different font for my resume in LaTeX and after some search the following code seems to be the answer: \documentclass{article} \usepackage{fontspec} \setmainfont{Calibri} \...
3
votes
1answer
60 views

Parsing links via epdf library with luatex

I'm trying to get links and their destinations from external pdf. Using TL2018 luatex version 1.07. Documentation points to getAnnots and getLinks but in this version they are undefined. <Object&...
1
vote
0answers
57 views

What may cause bookmark accented letters not working on a specific computer? [duplicate]

I'm using package hyperref to write a book in Portuguese. Appendices should appear in TOC as in Apêndice A Title of the appendix. When I compile it with LuaLatex on a computer with Ubuntu 16.04, I ...
2
votes
1answer
42 views

Coerce LuaTeX into outputting a newline character

I encounter a problem when I wish to output a text file using a \directlua directive. There where I wish a newline character to be, I run into TeX problems. My solution is to invoke the dofile ...
2
votes
2answers
110 views

Displaying a character in math mode from its Unicode encoding

Can someone tell me what I am doing wrong or simply tell me how I can use the coptic letter "Me" in math mode? I want to use a coptic letter in a mathematical expression in my TeX document. From my ...
43
votes
2answers
2k views

How to adjust font features in LuaTeX?

As of version 2.7 of luaotfload the support for font feature files (.fea) has been dropped. On the ConTeXt mailing list Hans showed how to make font substitution work through Lua. More examples are ...
42
votes
7answers
37k views

FontAwesome font not found?

I'm using the latest version of MacTeX 2013 on OS X 10.8.4. All of my Tex Live packages are fully up-to-date. Tex Live also lists the fontawesome package as installed. I'm trying to use the ...
6
votes
2answers
115 views

ConTeXt does not load png file given by lua code

This is my code: \defineexpandable[1]\background{ \directlua{ local cases = { "noise-blue.png", "noise-yellow.png", "noise-red.png", "noise-green.png" } tex....
6
votes
2answers
1k views

Andika fractions

I have hand made the exercise with svg. See attachment. It was very cumbersome. If I could write the étude in markdown and then do pandoc magic I could perhaps learn how to create a library of basic ...
1
vote
1answer
2k views

Using APA style referencing in elsarticle class document?

Ive just had my paper sent back to me by the editor of a journal I submitted to and was instructed to change the referencing system of my paper to APA ver. 6 style. Text: Citations in the text ...
5
votes
2answers
250 views

Kerning against word space in LuaTeX

AFAIK word space in TeX work more or less like a glue instead of a real character. So it is not possible to kern a character with the space, e.g., to make the pair such as f<space>T to stay ...
1
vote
1answer
94 views

microtype - pdftex 1.40 required - but installed

I have the following MWE \documentclass[a4paper,11pt]{report} \usepackage[english, ngerman]{babel} \usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=...
1
vote
0answers
63 views

Babel / LuaTex support for .otf features

Referring to this thread: Xetex support for .otf features, following the indications obtained I modified the code adopting Babel and compiling with LuaTex. In effect this way the Contextual Alternates ...
16
votes
3answers
573 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 ...
65
votes
1answer
3k views

What are the incompatibilities of pdftex, xetex and luatex?

[Please correct me if my statements are wrong] TL;DR: pdftex, xetex and luatex exhibit different behaviour. What are these differences and why are they present. I know of three engines, which ...
2
votes
1answer
39 views

Lualatex code to select enclosed text from another file

I am trying to write a function that would select a text delimited by some symbols (*) from another file and print it. The following gives an error. What is the right way to pass 'text' to string.gsub?...
9
votes
2answers
198 views

Glossaries links with non-latin labels in LuaLaTeX refer to wrong place

I want to make a glossary with glossaries-extra package and use Cyrillic characters as entries labels. Everything works fine with XeLaTeX. Clickable links refer to exact glossary entry. But in ...
1
vote
1answer
112 views

Inline conversion of graphics

I'm using luatatex 1.0.4 on Linux. I read several articles about directly converting image files within the LaTeX process. But somehow I fail to use it properly for converting gif-files on the fly. I ...
1
vote
1answer
89 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 ...
4
votes
3answers
175 views

LuaLaTeX + fontspec + IM FELL not providing long s

I'm attempting to get a font (any font) which automatically switches s for ſ in the middle of words. Following a number of suggestions I've found on StackExchange, I'm using IM FELL DW Pica PRO (from ...
1
vote
0answers
60 views

Problem with prime and unicode-math package

Here is a minimal code sample. \documentclass{article} \usepackage{fontspec} %\usepackage{unicode-math} \begin{document} \[ E'_1 \] \end{document} Without unicode-math package, I get this (good ...
6
votes
1answer
79 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
103 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
3answers
80 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 * ...
1
vote
0answers
937 views

Beamer metropolis theme issue [closed]

So I am trying to get metropolis beamer theme work. For some reason, it worked on my El Capitain mac with no problem using LuaLaTeX. But the exact same file does not work on my Yosemite mac. Here ...
3
votes
2answers
1k views

beamer-lualatex: Option clash for package fontspec when setting up its encoding

When compiling a beamer document using lualatex, I use fontspec package without problems. However, when setting up its encoding as in this MWE, I always get this error Option clash for package ...
0
votes
0answers
36 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
87 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. ...
6
votes
3answers
301 views

`ccmp` in Lua(la)TeX/ConTeXt, with Source Han serif font

Google and Adobe released a new CJK font Source Han Serif recently. One of the amazing feature is that, using opentype ccmp feature, it becomes possible to type the chinese character biang, as ...
7
votes
2answers
4k views

fontspec – sans-serif as main font? [duplicate]

fontspec defines the commands \setmainfont{font name}[font features] \setsansfont{font name}[font features] \setmonofont{font name}[font features] to set the document’s default fonts. However, if I ...