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)

3
votes
1answer
891 views

LuaTeX error (font expansion): font has been expanded with different expansion step

I am suddenly getting the following error when trying to compile my document with LuaLaTeX and my simple question is: what does it mean? LuaTeX error (font expansion): font has been expanded with ...
7
votes
0answers
469 views

Is LuaLaTeX producing faulty pdfs? [closed]

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} ...
5
votes
2answers
411 views

Printing backslash from a luacode* environment

My first attempt with LuaLaTex gave me some headache, trying to generate LaTex code from within LuaLaTex. This required me to print the backslash (to get a LaTeX control sequence).. I think I have ...
7
votes
1answer
103 views

How is bytefield inducing differences between Pdf-and Xe-TeX and LuaTeX, and what's the fix?

This is a simplification of 'Please explain a strange interaction between bytefield, unicode-math, and mathtools', which arises from a comment by @JLDiaz (to whom my thanks). Here is the MWE: \...
11
votes
1answer
1k views

Fake bold in LuaLaTeX

I am sometimes using a font that has no boldface, so I am wondering whether or not there is a way to use some fakebold-feature in LuaLaTeX. The fontspec documentation explains a feature for XeLaTeX, ...
11
votes
1answer
186 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 ...
4
votes
1answer
168 views

Biolinum font bold 11pt issue in tableofcontents [closed]

I found an issue in adopting the Biolinum font, bold face at 11pt, in the tableofcontents. At 10pt or 12pt it works just fine, indeed. But I need to use 11pt. Compiled indifferently under LuaLaTeX ...
8
votes
1answer
228 views

How to use luatex callbacks to generate a verbatim copy of the input file

I'm trying to devise a LuaTeX solution for the question Extracting the contents of text in a specified environment into a new file, but it is turning more difficult than expected. To begin, I need to ...
6
votes
1answer
427 views

Specify timezone for \today and \currenttime

Is there a way I can specify the timezone LaTeX should use when printing the \today and \currenttime (or the datetime package in general)? I need this because travisCI does build my PDF automatically ...
40
votes
1answer
829 views

Is luatex as secure as pdftex?

My texmf.cnf file contains these lines: % Allow TeX \openin, \openout, or \input on filenames starting with `.' % (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)? % a (any) : ...
3
votes
0answers
244 views

Inconsistent OSF in Table of Contents using Microtype, LuaLaTeX and Tocstyle [closed]

My table of contents should have the following properties: oldstyle figures for page numbers and labels chapter entries in spaced, lowercase smallcaps numbers close (en-space) to the entries, no ...
1
vote
1answer
675 views

How to convert a XeLaTeX template to LuaLaTeX? [closed]

My article used a template which can only be accepted by XeLaTeX. Now I want to convert it to LuaLaTeX. How to do this? Especially for this template. SLEN template \usepackage{ctex} \usepackage{...
3
votes
1answer
407 views

How to set up winefish to use LuaTex

I need to write a document that uses Calibri. The internet is telling me that I need to use something called "LuaTeX" to do this. I use WineFish, which is a lightweight TeX editor, in ubuntu. I'...
5
votes
1answer
127 views

Can epdf change pdf?

I want to edit PDF using the epdf library included in LuaTeX (add, bleed/crop/trim box). I can get current trim size of the PDF (if it's set) via epdf PDFRectangle. But I didn't find defined methods ...
16
votes
1answer
622 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 -- ...
4
votes
3answers
348 views

pagebreak in ledpar (eledpar)

I am sort of restating this question -- however only sort of. I will (1) describe a problem, (2) assume something about the functions of ledpar, and (3) ask a question. 1. Problem I am typesetting ...
5
votes
1answer
249 views

how to get lualatexmk to run in \nonstopmode

I use the engine lualatexmk to create my documents. This runs the entire pdf-generating-process several times until a stage is reached where an additional run of this process wouldn't change the ...
7
votes
1answer
1k views

Can I make LuaLaTeX use \input files that are ANSI encoded?

I include/\input automatically generated files (tables generated by Stata) into my main document. I would like to compile that document with LuaLaTeX. Unfortunately the generated files are ANSI-...
4
votes
1answer
114 views

lualatex keeps tex source open on error

I edit LaTeX source in emacs and invoke lualatex with compile-command. If the source contains an error the compilation stops and I see the reason in the *compilation* buffer. When I go to fix the ...
9
votes
1answer
1k views

LuaLaTeX and PSTricks

Is there the possibility to produce PSTricks graphics in LuaLaTeX? I tried it, but i get ! Undefined control sequence. <recently read> \c@lor@to@ps l.9 \psline( -5,2)(5,...
17
votes
1answer
1k views

LuaLaTeX: use or don't use classical font packages?

In the lualatex-doc I am reading under "switching from LaTeX to LuaLaTeX": Don’t load inputenc, just encode your source in UTF-8. Don’t load fontenc, but load fontspec. Don’t use any package that ...
11
votes
2answers
982 views

tabular numbers in tables, proportional in text

I'm using LuaTeX with a font that has proportional, lining and tabular numbers available. Is it possible to set things up so tables automatically use tabular numbers - but proportional numbers are ...
7
votes
1answer
1k views

Using CJK (Chinese/kanji) characters in math using unicode-math on lualatex

I'm trying to persuade the unicode-math package to let me insert CJK characters (Chinese ideograms) in math formulæ. Here's a sample input (the first few lines are merely to check that basic ...
7
votes
2answers
271 views

Is it possible to pass options to mpost.exe using luamplib?

I would like to use the development version of metapost with luamplib. I've switched over the executable mpost.exe which is presumable called by luamplib somewhere along the line. Now, I would like ...
12
votes
2answers
733 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 ...
10
votes
1answer
275 views

How to debug METAPOST inlined in ConTeXt? (Or “message” primitive and “loggingall;” in inlined METAPOST)

I have a METAPOST program that works fine with mpost, but fails when I try to run it inline in ConTeXt. In order to debug it, I would like to see the usual METAPOST logging and/or to use the METAPOST "...
9
votes
1answer
472 views

Activating fi and fl ligatures with fontspec for Berling font

I have a font named Berling containing fi and fl ligatures on glyph 109 and 110. How can I activate these with lualatex? For the moment I am trying: \documentclass[a4paper]{memoir} \usepackage[utf8]{...
7
votes
2answers
291 views

Why won't this Metapost while loop terminate?

The following loop fails to terminate and I have no idea why. I've either violated some syntax rule, there's an issue with the self reference in n:= floor (n/2);, or I've missed something ...
20
votes
5answers
2k views

How can I access a specific glyph in LuaLaTeX/Fontspec?

The OTF version of Minion Pro contains several Dingbats glyphs I would like to access. Some of them are not unicode, so I can not just copy the specific unicode character I want to access into my text ...
7
votes
1answer
319 views

AUCTeX changes name of pdf file when compiling with LuaTeX

I'm using AUCTeX with emacs 24.1 on Ubuntu 11.10. I have the TeX Command set to compile using LuaTeX and to produce pdfs. Everything works except that the name of the pdf changes from the file name ...
13
votes
1answer
989 views

When to use LuaJitTeX in favour of LuaTeX?

Since a few weeks LuaJitTeX is available ¹, which is LuaTeX with Lua replaced by LuaJIT. Binaries are available for various platforms. It is already included in the ConTeXt standalone distribution. I ...
9
votes
1answer
172 views

Expex glosses get broken when unicode-math is loaded in XeLaTeX and LuaLaTeX

I'm trying to typeset multiline numbered examples with John Frampton's expex package (version 4.1). Since I'm using XeLaTeX (TeXLive 2012), I've picked unicode-math to typeset maths. The ...
19
votes
4answers
1k 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} ...
10
votes
1answer
763 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: \documentclass[...
7
votes
1answer
295 views

Trying to use FreeSerif as a maths font — what am I doing wrong?

Always in search of the ideal font combination unicorn, I thought I'd try the GNU Free UCS Outline Fonts (FreeSerif, FreeSans, and FreeMono). I seem to have fallen at the first hurdle: \documentclass[...
6
votes
2answers
6k 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} \setmainfont{...
3
votes
1answer
268 views

bidi's undefined environments in (my) LuaLaTeX system

I typeset Arabic text with LuaLaTeX. I am using the following definitions and it works nicely: \newcommand{\arabtext}[1] % Arabic inside LTR {\bgroup\luatextextdir TRT\arabicfont #1\egroup} ...
30
votes
0answers
514 views

The Last Obstacle — Measuring sidebearings in LuaLaTeX [duplicate]

I've just realised that this question might be interpreted as a duplicate of Accessing side-bearings in LuaTeX, and therefore eligible to be closed as such. Apologies for the lapse of memory; I'll ...
6
votes
2answers
1k views

Does the lualatex shell enable behavior differ from pdflatex on purpose?

I am trying to use TikzEdt, an editor for TikZ graphics. For some tasks TikZ needs to call other commands so I tried to enable this by the parameter --shell-escape passed to lualatex (on Windows, ...
5
votes
1answer
304 views

MonTeX (mls, manju, mongolian) with Latin script with diacritics

I am using the montex package to type text in Manchu (manju). In my documents, I also use Latin script with diacritics. When I load montex, these diacritics no longer appear, and when characters with ...
2
votes
0answers
248 views

Conflict between luatex-ja and fontspec [closed]

I am using LuaLaTeX to write my thesis, because LuaLaTeX has better compatibility. However, now I found that there seems to be conflict between the package luatex-ja (which provides neccessary CJK ...
7
votes
1answer
303 views

Metapost intersectiontimes

In the code below intersectiontimes is not giving an intersection point of the two paths. Could anyone provide some guidance on how to find (and mark) the intersection points of the curves below? (I'...
10
votes
1answer
293 views

Spacing changes when using unicode-math range feature. Why?

You can use the range feature of unicode-math to set the math font for a specific unicode slots or the macro accessing the glyph. I tried this with the sum sign & Latin Modern, see my example: \...
0
votes
0answers
128 views

XeTeX, LuaTeX: a good investment? [duplicate]

Possible Duplicate: Drawbacks of XeTeX/LuaTeX I'm only writing in English and French. In order to get the best appearance (ligatures, spacing between words and letters...), would it be a good ...
16
votes
3answers
2k views

Starting with TeX (not LaTeX)

I've been using LaTeX for 3 years and I'm decided to switch to (plain) TeX. For the moment I'm reading The TeXbook for the third time (I quietly start to read the double-danger signed paragraphs) and ...
11
votes
2answers
662 views

Availability of LaTeX packages' functionality in ConTeXt, XeTeX, and LuaTeX

I am considering trying out ConTeXt, XeTeX, and LuaTeX, but one concern of mine is the fact that I am using a large number of LaTeX packages. There are a number of questions comparing these TeX ...
4
votes
1answer
214 views

Can LuaTeX do something to alter linebreaks inside math inline automatically?

This is kind of a follow up to this question. Consider the sample code: \documentclass{minimal} \begin{document} A text with an inline equation which is broken in to two parts but is not wanted right ...
41
votes
4answers
1k views

Are XeTeX and LuaTeX platform dependent?

One of the main goals that Don Knuth had when developing TeX (other than the obvious one of creating high-quality documents) was a 100% platform independence. A document produced on one system should ...
7
votes
1answer
533 views

lualatex and string.format

I´m doing my first steps with lualatex and don´t understand, why the following code results in an error: \documentclass[ngerman, pagesize]{scrartcl} \usepackage{luatextra} \begin{document} \...
1
vote
0answers
398 views

How to assign distinct font, color and style to each sectioning environment of a document? [closed]

I am trying to compose with *TeX a document that looks like a GDR manual. Basically I need to set a different font, style and color for chapter, section, subsection and subsubsection labels. It is ...