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)

6
votes
3answers
428 views

How to do a 'printline' in LuaTeX

I have just started exploring the world of LuaTeX and wanted to write a piece of code, that prints a name to a new line in the document. \directlua{ for i=1,3,1 do tex.print("FOO") end } which ...
4
votes
1answer
218 views

Luatex os.execute not working

I've hooked luatex's stop_run callback so I can do some processing on the output pdf after it is generated. To process the pdf I need to call os.execute. When doing so I an error saying "All command ...
4
votes
3answers
383 views

Create macros inside Lua block

How can I create a macro (re)definition directly inside a LuaTeX block? e.g., \directlua{tex.print("\\mymacro{test}")} would be the same as \mymacro{test} in TeX?
2
votes
1answer
137 views

kvoptions and conditional environment

I'm trying to create a package with a single option, which provides an environment, which behaves differently if called by latex or pdflatex XeLaTeX. I tried to use kvoptions, but I'm a little lost. ...
0
votes
1answer
887 views

TeX Live manager 2011 database corruption?

TeX Live 2011, up to date, on Windows XP. Example: \listfiles \documentclass{article} \usepackage{fontspec} \begin{document} A \end{document} LuaTeX first error: LaTeX Warning: You have requested, ...
42
votes
4answers
3k views

Abandon LaTeX2e for LaTeX3 or LuaTeX

I think my question is: Should I abandon pdflatex, possibly for xetex or context, and a TeX/LaTeX based macro writing approach, possibly for a LuaTeX or LaTeX3 based approach? Possibly relevant to ...
22
votes
2answers
748 views

Repetition of a word on two lines

This question led to a new feature in a package: impnattypo There have been questions about rivers asked in the past. I'm wondering about words that are repeated in the same place on two ...
21
votes
4answers
1k views

Why choose LuaLaTeX over XeLaTeX?

There are questions on TeX.sX already about what the differences between LuaLaTeX and XeLaTeX are (Differences between LuaTeX, ConTeXt and XeTeX), what one should be keep in mind when going from ...
14
votes
5answers
4k views

How do you configure Texmaker to use LuaTeX?

I'm extending my use from pdfLaTeX to LuaLaTeX. The transition is smooth especially as I collaborate with other users that shy out upgrading their systems. However, TexMaker does not seem to come ...
13
votes
2answers
804 views

In LuaLaTeX, how do I pass the content of an environment to Lua verbatim?

In LuaLaTeX, how would I go about capturing the content of an environment for (verbatim) processing by Lua? For example, consider something like \begin{foobar} Hello {World} \end{foobar} I'd like ...
11
votes
2answers
2k views

Selecting main math font in LuaTeX?

I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX.  I’d hoped that something like the following should work: \documentclass{minimal} ...
19
votes
1answer
1k views

Is there latexmk functionality for LuaTeX?

I am a big fan of latexmk and lately I have been looking a bit towards LuaTeX. However I am am yet to find a way to get the functionality of latexmk (mainly recompilation on changes and automatic ...
19
votes
2answers
1k views

fontspec, lua, microtype: Renderer=Basic no longer working for specific font styles

You may have noticed that, as of now,* letterspacing small capitals is not as easy as it was in pdfTeX, where we could simply combine \textsc with microtype's \textls. Consider this example, which ...
16
votes
5answers
722 views

Combining \ifxetex and \ifluatex with the logical OR operation

I want to write in the preamble of a LaTeX document code that should be take into account by different compilers when the document is typeset. There are fragments that should be used: only by ...
12
votes
2answers
3k views

How to properly install and use a new font with LuaLaTeX?

I have problems trying to get new fonts to work when compiling with LuaLaTeX. I'm working on Mac and use TexShop (with the MacTeX package). It goes like this: I downloaded for example the Cardo ...
11
votes
2answers
410 views

Create a font table for all available characters for a particular font

Similar to the question: Lualatex: Font table with examples I have several ornamental fonts and I'd like to create key maps. That is, I want to know what symbol the letter a maps to by having a nice ...
9
votes
2answers
1k views

\tikzexternalize doesn't work with lua code

The following code from the pgf manual compiles fine with lualatex --shell-escape \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize \begin{document} A simple image ...
18
votes
1answer
413 views

Editing LuaLaTeX files in emacs

(A follow-up question to Which is the best editor for LuaTeX?) Emacs offers the LaTeX-mode in AUCTeX for editing LaTeX files, while it has the Lua-mode for editing Lua-files. Consider the following ...
16
votes
3answers
627 views

Conflict between microtype, LuaLaTeX, and otf fonts when typesetting material in small-caps

I'm using the microtype package (microtype beta 2.5 build 08) to modify my document and I'd like to retain its functionality across all font shapes with the exception of small-caps (\scshape). How do ...
15
votes
2answers
507 views

Footnote numbers in index (e.g., 23n3)

I'm currently weighing indexing options for a book-length project. One of the more surprising hurdles is that there doesn't seem to be a way to create an index (in my case, several indices) that ...
12
votes
2answers
397 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 ...
9
votes
2answers
147 views

Can I create a node list from some text entirely within lua?

I'm playing around with luatex and learning about nodes and callbacks. What I'd like to do is be able to add some text via a particular callback. The type of callback that I'm interested in is one ...
9
votes
2answers
515 views

LuaLaTeX:PGFplots can't read data passed by Lua

I wanted to give a LuaLaTeX answer to this question Here it is the listing I wrote: % !TEX encoding = UTF-8 % !TEX program = LuaLaTeX % !TEX spellcheck = en_GB \documentclass{standalone} ...
8
votes
1answer
6k views

Problem while compiling template CV with: ' fontspec error: “font-not-found”'

I have somme problem while I'm trying to compile template CV from: http://www.latextemplates.com/template/friggeri-resume-cv . I have install texlive-full package on Ubuntu and tryied to compiled this ...
8
votes
1answer
222 views

Help with the lua-visual-debug package

The documentation for lua-visual-debug is a little sparse. Can someone interpret the boxes/lines/colors that lua-visual-debug produces?
7
votes
1answer
208 views

how to set font feature file for a specific font file and not the whole font shape

I'm looking for having my document set with specific ligatures, such as 's' replaced by 'longs', 's t' by 'longs_t' etc. and using the Linux Libertine G font. To do this, I'm writing my text ...
15
votes
3answers
1k views

Which is the best editor for LuaTeX?

Many (La)TeX editors support the LuaTeX engine. However, which one offers the best support for writing LuaTeX? Which editor or plugin supports features such as syntax highlighting and auto-completion ...
12
votes
1answer
353 views

Towards a \ucshape and \textuc command for uppercase text (XeTeX, LuaTeX)

While we have \textit and \textsc, \itshape and \scshape etc., there's no \textuc and \ucshape to typeset its argument in uppercase. There is \MakeUppercase, but -- as uppercase is not a font style -- ...
12
votes
1answer
251 views

Ligature suppression algorithm fails if the word in question contains an Umlaut (dieresis) before the ligature

This is a follow-up posting prompted by Taco Hoekwater's recent excellent answer to a question I posed a few months ago. It concerns the use of the ligature suppression algorithm for words (mainly, ...
11
votes
1answer
128 views

Accessing to .log messages from LuaTeX. Is it possible?

Reading the question How to visualize the underfull box in final ouput PDF files I thought that it could be possible to use LuaTeX to intercept the "Underfull vbox" message and draw some kind of ...
11
votes
2answers
1k views

Ploting a function using mplib in lualatex

This question asked about ways to generate a nice function graph in LaTeX. There are several great answers, however, most of the either rely on an external program to generate the plot, or, if they ...
10
votes
3answers
1k views

Matrix multiplication (and other operations) macro using lua module

I am hoping to be able to create a macro to multiply matrices using a lua module. The module is here: https://raw.github.com/davidm/lua-matrix/master/lua/matrix.lua As suggested to me in a previous ...
9
votes
3answers
585 views

Luaotfload: version mismatch

Compiling with LuaLaTeX and the recent update seems to produce some disturbance: ... ) (/usr/local/texlive/2013/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty ...
9
votes
2answers
277 views

How do I customize a LuaLaTeX cmap?

I'm working on a system that uses database content to produce PDFs in a variety of languages. I'm currently working on Armenian. What we've developed so far uses pdfLaTeX. I made a special encoding ...
9
votes
1answer
849 views

text4ht and LuaTeX

There is a specific command to run tex4ht with XeTeX: htxelatex (which doesn't really work actually as far as I'm concerned). What is the command to run text4ht with LuaTeX instead?
8
votes
1answer
1k views

Migrating from pdfTeX to LuaTeX: Problems with reproducing output for legacy projects

I'm currently analyzing and evaluating a migration process from pdfTeX to LuaTeX for our current TeX workflow. With LuaTeX being a fork of pdfTeX and packages like luainputenc at hand it seemed ...
8
votes
2answers
809 views

British hyphenation with either xelatex or lualatex

For several reasons, I am working on a source file that should be compilable by either xelatex or lualatex. I would like British hyphenation for the text and am using csquotes and biblatex with ...
7
votes
2answers
434 views

LuaLaTeX sees a font while fc-list doesn't

I've got a fresh Arch Linux box with fresh full TeX Live installed. The installation seems to include cm-unicode fonts and lualatex seems to find them correctly, but when I run fc-list the output ...
2
votes
1answer
2k views

LuaLaTeX + fontspec: Font not found

This refers to my previous thread How to use the calibri font. I am using the Calibri font with lualatex. MWE: \documentclass[11pt,table,a4paper]{article} \usepackage{fontspec} ...
15
votes
0answers
562 views

Letterspacing/font expansion in LuaLaTeX

I am a few months into learning LaTeX. I would like to use microtype with LuaLaTeX and I would like to obtain letter spacing for my smallcaps. I've tried to follow some of the threads on the subject ...
14
votes
4answers
637 views

How to read a file with luatex

I tried to read a file with lua and set the content as normal text in my document, but I didn't worked it out. Here my code: \documentclass{scrartcl} \usepackage{luatextra} \usepackage{filecontents} ...
12
votes
1answer
263 views

fontspec: what does Renderer=Basic do?

I'm writing a document using LuaLaTeX on Windows, using Arial (please do not comment on that) as its main font with: \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} ...
11
votes
2answers
232 views

Accent positioning on 'oe' character with feature file in fontspec

There is no accented glyph for the 'oe' character in Linux Libertine. When trying to form this character, the (acute) accent is centred over the 'e' half. I'm trying to get the accent over the centre ...
10
votes
0answers
90 views

Strange linebreaks with microtype & LuaLaTex [duplicate]

I have a weird problem. If I compile with LuaLaTex and microtype some of my line breaks are messed upped, but I don't get any warnings. XeLaTex with/without microtype or LuaLaTex without microtype are ...
10
votes
1answer
481 views

Bad position equation number Lualatex

If a math display is too wide, then the \eqno appears on the next line on the left instead of on the right as it should. Does anyone know how to solve this problem? This is an example: ...
9
votes
1answer
256 views

uneven line spacing

This is something that is already annoying me for quite a while. (I use LuaLaTeX) The line spacing of the Arabic text is uneven (see pic and/or MWE below). In particular, I think, lines 2, 7, and 10. ...
8
votes
1answer
125 views

How to use fakeslant as slanted but not italic font with fontspec?

Using fontspec with Luatex it is possible to create a fake slant and use that as italic should no italics be around: \setmainfont[ AutoFakeSlant=0.15 ] {FontName} However, also if an ...
8
votes
1answer
201 views

How to report a bug in LuaTeX? [closed]

I think I found a bug in LuaLaTeX. I use the current version from TeX Live 2012. lualatex --version This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012) When I compile the following ...
7
votes
0answers
341 views

Is LuaLaTeX producing faulty pdfs?

If I compile the following minimal code with LuaLaTeX I seem to get a faulty pdf: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} text \end{document} ...
7
votes
1answer
1k views

Double quotes with monospaced font and LuaLaTeX

I am trying to set the following minimal document: \documentclass[a4paper,11pt]{article} \usepackage{fontspec} \setmonofont{Inconsolata} \begin{document} \begin{verbatim} <!DOCTYPE HTML PUBLIC ...