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)

5
votes
2answers
115 views

Iterate over all the entries in a bib file

I have a big bib file that contains a lot of entries such that most of them contain a note filed. I would like to automatically iterate over all the entries and for each entry insert into the document ...
4
votes
1answer
80 views

\newif inside function definition in LuaTeX

In a function I have in a package I'm working on I'm trying to add the following line: \expandafter\newif\csname ifgre@scale@#1\endcsname% Now, this works fine under LuaLaTeX, but the package is ...
3
votes
1answer
109 views

Line height with \sqrt and TeX Gyre Pagella Math

Using TeX Gyre Pagella Math as a math font with unicode-math, I've noticed that inserting an inline square root such as $\sqrt{S}$ in a paragraph results in a line that is too high, creating a very ...
12
votes
1answer
116 views

unicode-math breaks \not command

\documentclass{scrartcl} \usepackage{fontspec} \usepackage{mathtools} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} $\not\propto$ \end{document} Results in: How ...
1
vote
1answer
85 views

Compiling in latex-suite halted with lualatex error with pattern not found

So I'm getting this error after compiling a .tex file with an import \usetikzlibrary{graphdrawing.force} and compiling hitting ,ll in vim's latex-suite. Pattern not found: \Vn LuaTeX to use the ...
3
votes
1answer
157 views

lualatex does not work with import/subimport when used in standalone setup

Using TL 2015. I have this setup main.tex folderA/a.tex a.png and using standalone to combine both documents. The file a.tex has an includesgraphics{a.png} where the file a.png is in the ...
5
votes
1answer
99 views

Combine “traditional” font packages (e.g. Type 1) with fontspec

I was having problems trying to combine a "traditional" font package (berasans) with fontspec (using TeX Gyre Pagella). Just using both correctly changed the text font to TeX Gyre Pagella, but text ...
1
vote
1answer
55 views

Polyglossia problem: “italian not defined, using english instead”

I have the problem mentioned above, reported in the log. I have a master-file where I insert first a preamble-file with the \input command and then a config-file in the same way. The first one ...
2
votes
0answers
42 views

Bad `\limits` spacing with lualatex [duplicate]

Compiling this example: \documentclass{scrartcl} \usepackage{fontspec} \usepackage{mathtools} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} \begin{document} \begin{equation} ...
6
votes
1answer
188 views

Mathsf Greek Symbols Lualatex

I am using Lualatex with Latin Modern as math font. I want to produce mathsf greek symbols. However, it seems that it doesn't work for greek symbols (Using \setmathfont[\range=mathsf]{Latin Modern ...
12
votes
2answers
256 views

How to use ocg-p with LuaLaTeX (TeXlive 2015)?

If I compile the following MWE \documentclass{scrartcl} \usepackage{ocg-p}%Layers \begin{document} \end{document} with luaLaTeX, it stops with the following error: ! Package ocg-p Error: pdfeTeX, ...
1
vote
0answers
122 views

How to manually install a package for LuaLaTeX

I used to have an old version of a package (pgfplots v 1.9) and I manually installed a later version (v 1.12) complete with new documentation. pdflatex indeed compiles with the newest version while ...
1
vote
1answer
105 views

Use tikzexternalize for pgf-groupplots with \uncover in beamer

I successfully used the answer to Beamer overlays, tikz external and custom file name in my presentation. However the proposed solution does just seem to work for \only. When I use \uncover I get a ...
7
votes
1answer
103 views

LuaTeX gets stuck when “.” is added to pattern-expression

today on SE I got inspired to try LuaTeX. I'm facing a problem where the compilation process stalls at some point if I add a single "." to a pattern matching expression. In short, this works: line ...
1
vote
1answer
174 views

How to learn LaTeX in the right way? [closed]

Many people always say that LaTeX is the best typesetting system which is flexible and powerful. For me, I have used LaTeX for one year already but I still have some problems with it. Let me talk ...
1
vote
1answer
153 views

XeLaTex - fontawesome: compiles without errors, but doesn't show symbols

I have trouble using fontawesome symbols with XeLaTex. Set up MikTex 2.9 on Windows 8.1 from scratch. Fontawesome installed properly. When I try to use fontawesome symbols with XeLaTex I don't get any ...
3
votes
1answer
88 views

special characters cannot show after changing font with lualatex

I was using the following preamble with lualatex. I have many sanskrit words using unconventional Roman script, such as ahaḿtattva, rúpa, tanmátra. \documentclass[12pt, b5paper]{book} ...
2
votes
1answer
259 views

Build Lualatex in Sublime

My subime-text buildsettings now set to pdflatex, I want to build lualatex file. How can I change the setting?
4
votes
0answers
20 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 ...
5
votes
2answers
95 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
124 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 ...
4
votes
1answer
515 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
196 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 ...
7
votes
1answer
252 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
125 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
177 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
55 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
43 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 ...
7
votes
1answer
202 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
159 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
230 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
70 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
21 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
668 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 ...
4
votes
1answer
99 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
91 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
58 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
77 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
70 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 ...
8
votes
2answers
770 views

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

I have trouble setting monospaced font to Source Han Code JP font using \setmonofont. I tried the following code just the same as when I usually use fontspec package. % file name: example01.tex ...
0
votes
1answer
133 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
34 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
141 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
97 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
204 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
355 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 ...
4
votes
0answers
53 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
58 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, ...
3
votes
1answer
142 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
2k 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 ...