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)

11
votes
2answers
1k views

error with LuaLaTeX, lstinputlisting and an extension-less file

I'm having troubles with LuaLaTeX and the listings package: the former doesn't seem to accept me performing \lstinputlisting on a filename that doesn't have an extension. Minimal example: Makefile: ...
8
votes
1answer
176 views

Count character in line

I have chapter and on end of each line I would write counter of chars, and before text line write a line sized of counts of chars. Please solution in LuaTeX. My LaTeX code \begin{document} ...
8
votes
1answer
1k views

luatex cannot find font metric data

After installing TeX Live 2012 in a non system directory (not sure if this makes a difference) and running some of the tests found at TeX Live Install, LuaTeX can't find the example font metrics even ...
12
votes
0answers
597 views

Libertine Mono and lualatex [closed]

Using lualatex on latest TeXLive 2012 I am not able to select Libertine Mono by its full name via fontspec. luaotfload is finding the font and it is written into ...
4
votes
1answer
110 views

process_input_buffer callback in LuaTeX [closed]

I try to play with the callback function process_input_buffer provided by LuaTeX, but unluckily I don't get what I expect. The manual said that This callback allows you to change the contents of ...
3
votes
0answers
177 views

latest updates to lua* break … something [closed]

So, now, after most recent (23 Apr) updates (I'm using MiKTeX 2.9) to various things related to lualatex, I noticed that compilation of anything takes twice as long as it did (say) 10 minutes ago ...
10
votes
1answer
282 views

What does \luaescapestring do for us?

It seems that all TeX command are expanded into unexpandable tokens (say, TOKENS1) and these token are converted into some other tokens (say, TOKENS2). For example \directlua{ local var = ...
3
votes
0answers
132 views

copy&paste: diacritics and special characters [closed]

Why can't I correctly copy&paste from my pdf documents (created by LuaLaTeX)? E.g., I get Faḫr al-Din̄ al-Rāzī instead of Faḫr al-Dīn al-Rāzī. Surprisingly, most other things (including Arabic ...
1
vote
0answers
327 views

bookmarks: diacritics, umlauts and special characters [closed]

Why are the bookmarks in my pdf documents (created by LuaLaTeX) not correct? E.g., I get Faḫr al-DÄ«n al-RĆzÄ« instead of Faḫr al-Dīn al-Rāzī. In general diacritics, umlauts and special characters ...
6
votes
2answers
681 views

How to not have widows and orphans without using raggedbottom

I know I can set \clubpenalty and \widowpenalty to 10 000 to make them “really bad”, but then TeX sees it equally bad to cut the page short when there is no vertical stretch (i.e. \parskip=0pt), and ...
5
votes
2answers
580 views

Access defined Lua global variables in TeX macros‏

I am a newbie in LuaTeX, but it is very interesting. Sometimes, I need process some macro arguments by Lua code, so it will be useful that if we can access the variables defined in Lua. An example: ...
5
votes
1answer
289 views

Read single numbers from data file (LuaLaTeX)

Is it possible to read a number from data files? How to read a file with luatex I found the example above but I don't need the whole line at once. I need somthing like: read(file) get(A) get(B) ...
3
votes
1answer
345 views

Russian language within figure captions in unicode-aware systems [duplicate]

When I try to compile the following document caption package seem to convert caption text to \cyr.. sequences and fontspec don't understand them. Is it possible do somehow get around that without ...
7
votes
1answer
244 views

Strange interaction between fontspec, lua and pgfplots

While trying to combine some Lua code with plots written in pgfplots something went completely wrong. I have no idea what causes the problem, as the error message is a bit opaque to me. Here is the ...
12
votes
2answers
384 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 ...
6
votes
1answer
764 views

gnuplottex and lualatex

EDIT: This question covers a bug in gnuplottex which will be fixed in TeXLive 2013.If you still want to have the bug fixed, download the latest upstream version from CTAN and compile it yourself. ...
6
votes
1answer
264 views

List of all post original TeX control commands

Is there a well documented list of all control commands added by all post Knuth's Tex like PdfTeX, e-TeX, XeTex, LuaTeX?
24
votes
1answer
473 views

Bad interaction between fontspec and some lua code that performs string-related search and replace operations

Update 2013/05/28: The selnolig package is now on the CTAN. Comments and critiques always welcome! If you wish to contact me about any aspects of the package, please use the email address that's given ...
26
votes
2answers
979 views

What are lccode and uccode used for?

In TeX, each of the 256 bytes has an associated \lccode and an \uccode, integers in the range [0,255] which indicate among other things how \lowercase and \uppercase act. There are of course a bunch ...
2
votes
0answers
281 views

Combination of LuaLaTeX and TikZ lead to lots of undefined control sequence errors [closed]

I have a document that compiles fine under LuaLaTeX, until I add to the preamble the line: \usepackage{tikz}. Compiling after adding that line yields a lot of errors like this: ! Undefined control ...
6
votes
1answer
188 views

Workaround for a very weird bug in lualatex math-mode? [duplicate]

In this MWE, of a math equation \documentclass{article} \begin{document} \begin{equation} \sqrt{\frac{\left(E-\frac{N_c e^d}{b}\right)}{a}} \end{equation} \end{document} I find that lualatex ...
5
votes
1answer
1k views

Use TeX Gyre fonts with latex+dvips+ps2pdf

I want to use the TeX Gyre fonts (especially the Pagella and Pagella Math) with LaTeX+dvips+ps2pdf. In the future I want to use this for PSTricks but first I've to solve my font problems. I use this ...
4
votes
1answer
1k views

error using special characters in in biblatex with LuaLaTeX

I am using LuaLaTeX and biblatex which the biblatex manual says should be able to compile utf. At the bottom of this message is a minimal non-working example. In the final PDF it just deletes all the ...
10
votes
2answers
354 views

How to put signature number in footer (derived from page number)?

To make my book easier to bind I'd like to automatically put the signature number with small type in the footer of the first page of each octavo signature (except the first one which is given since it ...
4
votes
1answer
292 views

Problem with font in theorem environment

I use LuaLaTeX, fontspec and XITS maths font. Additionally, I had a problem with theorem environment and long headers so I based my solution on this. My problem is that I now get a different font for ...
16
votes
2answers
1k views

How to use OpenType fonts with plain-LuaTeX?

Is it possible to have OpenType fonts with LuaTeX using the plain format? I have tried: \font\test="texgyrepagellaregular"\test test\bye but I get ! Font \test=texgyrepagellaregular not loadable: ...
3
votes
1answer
124 views

How to catch missing font error and use another font?

I write a TeX-document on two PCs, the files are transferred via USB-Stick. The document should be printed with a specific font. For legal reaons the font is only available on one PC. When I ...
18
votes
1answer
924 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 ...
11
votes
2answers
650 views

How can I fix a problem where italics prevent line breaking when using microtype? [duplicate]

I wish to use protrusion and expansion from microtype as I like the look you get with them. I use amsthm and typeset theorems in italic as usual (with \theoremstyle{plain}). With microtype enabled, ...
6
votes
1answer
428 views

Math spacing in TeX Gyre Pagella

The spacing in the following output looks off to me. In particular, the integral symbol has not grown to accommodate the height of the integrand, the spacing in the fraction seems large, and the ...
10
votes
1answer
2k views

Integral limits with amsmath in LuaLaTeX

Also reading the thread about Making integral ∫ use \limits by default with unicode-math I'm not quite happy with the solution. With pdfLaTeX I use the code \documentclass{article} ...
17
votes
4answers
3k views

Bembo, Bembo Book or Garamond Premier Pro? And how to exploit all their features with LuaLaTex?

I am allowed to use one of these fonts (or the three of them if I want) to edit a document. Here is the list of the Bembo fonts I have : Bembo-Bold.otf Bembo-ExtraBoldOsF.otf ...
16
votes
3answers
9k 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 ...
4
votes
1answer
253 views

fontspec-color not working correctly with microtype package [closed]

If I use the fontspec package together with the microtype package, the color-feature of fontspec does only colarize the last line of the paragraph instead of the whole paragraph, as the grouped ...
9
votes
1answer
176 views

Hyphenation does not work with acro and luatex, but with pdftex

I'm using luatex 0.70.1 together with acro 1.2 and I have the following MWE. \documentclass{minimal} \usepackage[ngerman]{babel} \usepackage{acro} \DeclareAcronym{DNA}{ short=DNA, ...
22
votes
1answer
801 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 ...
3
votes
1answer
783 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
461 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
381 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
102 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
176 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
215 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
393 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
813 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
236 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
655 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} ...
3
votes
1answer
395 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. ...
5
votes
1answer
123 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 ...