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

learn more… | top users | synonyms (1)

2
votes
0answers
10 views

Unicode-math no bold math or greek letters [duplicate]

What could be causing this? I'm on Ubuntu 14.04 I've uninstalled the Ubuntu TexLive packages and installed TexLive 2015 directly, and just updated today with tlmgr I've tried a few different ...
3
votes
1answer
15 views

Can't get oldstyle figures in url with lualatex

The following works with xelatex: \documentclass{article} \usepackage{url} \urlstyle{same} \usepackage{fontspec} \setmainfont{Libertine Serif}[Numbers = {OldStyle, Proportional}] ...
2
votes
2answers
28 views

Typeset output from Maxima using input{}, specifically left justify

First of all, apologies if there is an answer for this already. I'm outputting symbolic results from Maxima using tex(<output>,"filename")$, which leaves me with an expression with $$ on each ...
3
votes
0answers
51 views

Unable to change font with ModernCV

I've been trying to change the font with modernCV for quite a while now, but nothing seems to work. I'm using LuaTex. To start with, I tried changing it from sans to roman, although the font changes, ...
1
vote
1answer
59 views

Which flavor of latex to use? LuaTeX, XeLaTeX or LaTeX? [duplicate]

When I started using TeX, it was easy to build. Today I discovered that I can use different flavor of LaTeX to build my (La)TeX files. Is there a general rule of which flavor I should consider for a ...
8
votes
1answer
47 views

Context sensitive glyph appears even when hyphenation removes the context

The Alegreya font has a pretty clever feature by which it substitutes the regular f glyph with a variant that has a longer cross stroke when the f is followed by t. The result is that the two cross ...
7
votes
1answer
111 views

Combine kerning, small caps, and tracking in luatex

As is known, luatex requires the fontspec option Renderer = Basic in order to display small caps when microtype's tracking = true is used. \documentclass{article} \usepackage[tracking = ...
1
vote
1answer
49 views

Right-to-left script with pdfLaTeX, LuaLaTex

Is there any reasonable, generic way (i.e. not only Arabic, or only Farsi) to write RTL LaTeX documents (or even bidi) and compile them with pdfTeX or LuaTex? In ConTeXt, we can use \righttoleft{my ...
1
vote
2answers
63 views

Substitute one glyph for an alternate glyph of another stylistic set

In LuaTeX, I want to do the following: Having a text in the standard stylistic set of the font, but for a specific letter instead of having the glyph of the standard stylistic set, having it ...
1
vote
0answers
33 views

Open PDF Viewer to Edit Location?

Some LaTeX tools such as texmaker open the PDF viewer to the last modified location after compilation. To clarify, I edit tex source, compile, and the PDF viewer automatically navigates to the ...
4
votes
1answer
35 views

Preamble works in .tex file but not in .sty file

I have a question concerning .sty files. I often use the same preamble in my latex documents and so I wanted to put it into a .sty file. I started with the first few lines, but it already does not ...
5
votes
1answer
76 views

LuaLaTeX: How to use a \char directive inside a string.gsub function?

Consider the following MWE: % !TEX TS-program = lualatex \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=NoCommon]{Latin Modern Roman} \usepackage{luacode,luatexbase} ...
3
votes
1answer
46 views

TikZ: Drawing directed trees using tree layout, child{…}-syntax and lualatex

There seems to be no way to draw directed edges using the new (?) tree graph layout and the child-syntax. \documentclass{standalone} \usepackage{tikz} \usepackage{lmodern} ...
4
votes
0answers
107 views

lualatex: Error when loading a font from a relative path

I'm trying to load a .ttf from lualatex, which works fine when I place the .ttf in the same folder as the .tex file. However, for my project structure it would be beneficial to store .ttf files in a ...
5
votes
0answers
55 views

ZWJ in LuaTeX prints a bar

The following document prints in XeTeX the medial form of the arabic letter, thanks to the two ZWJ characters ("200D). \documentclass{article} \usepackage{fontspec} ...
0
votes
0answers
20 views

Correctly handling spaces that occur after a user defined command [duplicate]

I am using LuaLaTeX for a manual and I am running into a spacing issue I am not sure how to resolve. I defined a new command that is simply used to make some text bold. However, I have found that this ...
17
votes
4answers
441 views

lua(la)tex vs pdf(la)tex speed in texlive 2015

I know similar questions have been asked about lua*tex speed in years past. But now it's 2015, and according to wikipedia, lua*tex is the designated successor for pdf*tex. my hopes for lua*tex is ...
3
votes
0answers
37 views

Angle brackets with commath and Asana Math too large (or small)

I want to set bra-ket equations in my document, which uses Asana Math (with lualatex, fontspec and unicode-math). commath is also a requirement for certain stuff. However, in this specific ...
3
votes
1answer
39 views

fontspec+polyglossia… lack of spaces before punctuation marks (French) in standalone and dinbrief

I fail to get Lualatex to properly typeset punctuation marks for French when using the classes standalone or dinbrief. In this minimal example I would expect to see spaces before the colon and before ...
1
vote
0answers
29 views

context fails due to no return code

Running Fedora22 here, I have cloned https://github.com/mszep/pandoc_resume.git to give it a try and ran make. It fails with the context command: $ context resume.tex mtx-context | run 1: ...
3
votes
1answer
60 views

Lualatex : how to avoid this “unnatural” \\

I have a lua function to withch I want to pass some extra optional latex code (basycally a macro with a parameter, macro can change, parameter too). I have to double backslash the name of the macro, I ...
3
votes
1answer
36 views

Changing biblatex's sorting within the document

I am using multiple refsections in my document and I need to sort the respective bibliographies differently. E.g., let's say I want one refsection to be as ...
4
votes
1answer
157 views

How can I use OpenType Collection font with fontspec package and LuaTeX?

Remark: I have accepted Herbert's answer because I'm now able to use Source Han Code JP by utilizing OTF fonts at the moment. However, that might not be a true solution to the conflict between ...
0
votes
1answer
41 views

How to display italics (obliques) with SourceSans Pro?

I'm working in a document with lualatex where I want to use the Adobe Source family: Source Sans Pro, Source Serif Pro and Source Code Pro. My problem is that Source Serif Pro does not contain ...
0
votes
0answers
21 views

Lualatex french fr_FR.utf8 locale problems

In the mwe below, if I set the lua locale, I have warnings such as : LuaTeX warning (file /usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map): invalid entry for ...
4
votes
1answer
96 views

Good lua code in .tex doesn't work in .sty?

I have some luacode in a .tex file that works fines, but does't in a .sty file -- with this error message : Runaway argument? ! File ended while scanning use of \luacode@grab@lines. \par ...
5
votes
1answer
57 views

Linguex bad spacing between number and examples with certain values above 99 when using old style numbers

When using linguex example numbering packing, if I use \defaultfontfeatures{Numbers=OldStyle} with xetex or luatex, then with certain example numbers exceeding 99, there is no spacing between the ...
14
votes
1answer
134 views

why lualatex gives erorr “Too many open files” but pdflatex does not on same latex file?

Using TL 2015 on Linux. I have a latex file which includes graphics, all in pdf format. All the images are included using the call ...
4
votes
3answers
213 views

LuaLaTeX : write latex “commands” to file

I made a randomly chosen quiz machine using LuaLaTeX and beamer for audience part that produce a pdf containning one frame per question, one slide per second to show the count down: it make a pdf with ...
3
votes
0answers
27 views

Incorrect rendering for Khmer using LuaLaTeX

When I compile the following MWE with XeLaTeX, it works pretty fine. But when I compile with LuaLaTeX some Khmer vowels are missing. Does LuaLaTeX support Khmer Unicode? Or is this a problem caused ...
4
votes
1answer
54 views

\thinspace/\, inserts no space

In my greek-german document, the second \, of the combination \,--\, doesn't actually insert a space. It rather looks as if I wrote just \,-- (Often, the same occurs with other languages and fonts, ...
1
vote
0answers
52 views

Substitute a character by another one (Lualatex)

The lowercase figures of Adobe Garamond Pro are very nice, but the 1 can be confusing: Is this 11 (as it should be) or 2 in Roman? I would like to replace automatically this lowercase 1 with ...
43
votes
1answer
1k views

Why do PDF files produced by pdflatex not pass validation?

Why do simple PDF files compiled with pdflatex contain so many PDF errors? The simplest example I can see is "Hello World!" that once compiled, \documentclass{report} \begin{document} Hello ...
0
votes
0answers
15 views

directlua : misinterpretation of % as latex comments [duplicate]

What is the good way to avoid LaTeX interprete % as comments in \directlua ? Or in this case one must use an auxiliary file ?
1
vote
1answer
32 views

LuaLaTeX : pass a list to lua as macro parameter, but not seen as a table

I try to pass a list to lua as LaTeX parameter but can not make it interpreted as a table by lua. if "#1" I get : a,b,c,d,e – n 1 –, table of one entry if #1 I get : n 5 – ?? Even with \unexpanded ...
3
votes
1answer
22 views

LuaLaTeX : passing test condition n~=3 to lua as macro parameter problem

I try to pass lua test condition as latex macro parameter and have a problem in case of ~= with the next error message. How to avoid that. ! LuaTeX error [\directlua]:1: invalid escape sequence ...
2
votes
0answers
49 views

Convert LaTeX to SymPy format

I'm trying to convert LaTeX to SymPy understandable format and I feel it's hard to comply all conditions. So Im wondering if you can suggest any tools, free or paid, that will be great. What I'm ...
0
votes
0answers
47 views

How can i obtain youtube glyph using font awsome

I would like to use font awsome glyphs to link social media. \documentclass[11pt,a4paper,hidelinks]{article} \usepackage{fontspec} \usepackage{verdana} \usepackage{fontawesome} \begin{document} ...
0
votes
0answers
83 views

CV template run time error in TeXstudio

i am trying to make cv by using LaTex template but there is an error when i start compilation. Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX to ...
1
vote
1answer
104 views

Tikz Externalize, Lualatex through pdflatex and big data

I am plotting data from an infrared camera with pgfplots in an image as discribed and solved under this topic. A 194x194 data matrix is the input. I am compiling the document with lualatex through ...
2
votes
0answers
21 views

\luaexec inside \num causes errors

To me, an attractive feature in LuaTeX is the ability to effectively perform calculations directly in the document. Now say I want a command \proc that performs calculations and then formats the ...
5
votes
0answers
63 views

Strange rendering bug when using LuaLaTeX, Polyglossia, Cambria/Consolas font and/or texttt

I’ve found a rather strange bug, where the letter ‘å’ is sometimes (though very rarely) incorrectly rendered when using LuaLaTex. I’ve managed to reduce it to the following minimal document exhibiting ...
5
votes
1answer
41 views

Circumflex over Numeral with fontspec

For a music analysis paper I'm working on, I need to enter an arabic numeral with a circumflex over it to represent a musical scale degree. Normally, I can just use \^3, but as soon as I load the ...
0
votes
0answers
29 views

Lualatex paths with spaces and backward slashes

If I run lualatex (version beta-0.80.0 (TeX Live 2015/W32TeX) (rev 5238)) as follows: lualatex "D:\Documents\index Spaces" I get an error (directly at the start of compiling) ! Emergency stop. ...
7
votes
1answer
106 views

LuaTeX unicode escape sequence in an ASCII file (for graceful degradation)

I have a reusable component in which I would like to include a few unicode symbols. I use LuaLaTeX. However, I want the file to fail gracefully (it should detect running under something else and e.g. ...
0
votes
0answers
15 views

LuaTeX equivalent of \XeTeXglyph [duplicate]

Does LuaTeX have an equivalent of \XeTeXglyph? Or better yet, is there a command to select a glyph by number that works both with xelatex and lualatex? I did find a handmade version in German, but ...
6
votes
1answer
71 views

Is it possible, in LuaTeX, to replace text from the input buffer but only inside math mode?

I am trying to create a Lua script that lets me replace all instances of -> inside my equations with \rightarrow. I found this answer that suggests a hack involving a process_input_buffer callback: ...
15
votes
2answers
259 views

Is it possible to view the latex code after Lua expansion is made?

When using Lua code inside Latex file, where Lua code sends to Tex Latex code to insert into the document at the location the lua code is made, it will be useful to look at the content of Latex file ...
2
votes
1answer
62 views

How to use luacode* to eliminate need to escape “\”?

I am struggling trying to understand how to actually use luacode* environment, so that I do not have to escape all the \ characters in the strings that Lua builds before sending to Tex. The whole ...
20
votes
1answer
229 views

LuaTeX: Wrong/missing italic correction in TeXLive 2015 vs 2014

Italic correction for OTF math fonts seems to be broken in LuaTeX in TL15. MWE: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} \begin{equation} ...