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)

0
votes
0answers
34 views

luaotfload cannot load system font [closed]

(I have asked this question in comp.text.tex and lualatex-dev@tug.org mailling lists, but I still haven't got any reply. I know this website is not for bug report, but since no developer responded me, ...
4
votes
1answer
95 views

How to run a program inside LuaLaTeX?

Is it possible to run a simple script inside LuaLaTeX or LaTeX? For example, I need to use the calculator from the terminal. I'd like to write $echo "100.83*4.53" | bc and obtain the result in ...
7
votes
1answer
88 views

MiKTeX’s LuaLaTeX and minitoc: “I can't write on file …mtc”

When compiling the code below with LuaLaTeX I get the error: "I can't write on file 'test.mtc'". Any ideas on how to resolve this? (Btw, the file test.mtc is there and contains the word "Contents") ...
7
votes
0answers
61 views

Speeding up compilation using precompiled preamble with LuaTeX

Compiling my documents with lualatex takes quite long. I have a complex preamble, and noticed it takes long to process this part of the file. Today I came across this website, which proposes a trick ...
7
votes
2answers
65 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 ...
0
votes
0answers
32 views

How get white space in line (lualatex)

What I can get whitespace in one line in paragraph. I make a paragraph, after this I get how long is whitespace (the difference between the characters and the width of the paragraph), and next I ...
6
votes
2answers
194 views

More than one width of a glyph in LaTeX or LuaLatex

I don't know where I can ask about it. I have font with 2 or 3 versions of letter 'a'. How I can put this information to LuaLaTeX, LaTeX etc.? When the paragraph are breaking/making LaTeX made ...
1
vote
0answers
74 views

Typesetting a bilingual English-Hebrew book with facing pages in each language

How would one go about setting, say, a bilingual novel with the English translation on the left side of the book binding (the verso) and the original Hebrew text on the right side of the book (the ...
2
votes
1answer
105 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 ...
5
votes
0answers
114 views

What are current pitfalls of using LuaTeX over pdfTeX

I know that there are several closely related older posts about LuaTeX. Using LuaTeX as a replecment for pdfTeX 3 LuaLaTeX and PSTricks Migrating from pdfTeX to LuaTeX As of recently I started ...
5
votes
0answers
95 views

luatex 0.76 failed to generate some ligatures [closed]

I installed texlive 2013 today. After installation, luatex cannot generate ligatures for "fi fl ff", but it can for `` '' ---. xetex works perfectly here, after update. MWE: \documentclass{article} ...
7
votes
1answer
93 views

Ligatures in (Graphite) TrueType fonts

When using ConTeXt MkIV (i.e. with the LuaTeX engine), I’ve noticed that ligatures don’t work properly for some TrueType fonts, even though they do work in LuaLaTeX or even LibreOffice. As far as I ...
1
vote
0answers
98 views

Is the current lualibs broken? [closed]

After the latest update to MiKTeX 2.9 it seems that my luatex installation is broken. I tried to track the error and I am not sure if it is a bug or something else strange. What happens is that the ...
6
votes
2answers
71 views

Funny but unreadable bookmarks with backslash in section

The following document gives me a "good" document, but garbled bookmarks. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{luacode} \usepackage[unicode]{hyperref} \begin{document} ...
7
votes
2answers
74 views

Adding an image in luatex

I would like to use Lua functions in order to reproduce the effect of \includegraphics{testimg}. This means that the image "testimg.pdf" would appear centered in the following example. ...
9
votes
1answer
70 views

Ancient Greek hyphenation in LuaLaTeX

Can anybody tell me the current state of hyphenation patterns in LuaLaTeX, especially with regard to Ancient Greek? I searched here on tex.sx and on the web. There are many mailing lists discussing ...
9
votes
2answers
77 views

The strange \luaescapestring in LuaTeX

\directlua{% local s = [[\luaescapestring{\TeX}]] print(s)} After \luaescapestring{\TeX}, I think I should get T\\kern -.1667em\\lower .5ex\\hbox {E}\\kern -.125emX then this line will be ...
4
votes
0answers
54 views

How to substitute one glyph sequence for another with OTF feature files in LuaTeX?

I am trying to do some sequence-for-sequence glyph replacement. As far as I can tell from the Adobe spec, the LHS and RHS of a "sub … by …" rule cannot both contain multiple glyphs; and in any case, ...
4
votes
0answers
32 views

Pgfplots closes plot cycle when it should not [closed]

I experience a strange behaviour with pgfplots. I plot a series of datasets with no problems, but suddenly when I plot my last set of data, a line is drawn from the last point back to the first ...
5
votes
1answer
48 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: ...
7
votes
1answer
70 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} ...
6
votes
1answer
89 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 ...
10
votes
0answers
130 views

Libertine Mono and lualatex

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
54 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
88 views

latest updates to lua* break … something

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 ...
9
votes
1answer
92 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
50 views

copy&paste: diacritics and special characters

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
33 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
1answer
100 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
108 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: ...
4
votes
1answer
82 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) ...
2
votes
1answer
55 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
90 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 ...
10
votes
2answers
117 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
91 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
161 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?
20
votes
1answer
248 views

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

I'm in the process of readying a LuaLaTeX package for "official" release to the CTAN, but I need to squash a few remaining bugs first. The bug described in this question concerns incorrect behavior of ...
20
votes
2answers
174 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
97 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
94 views

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

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
117 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
104 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
187 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
62 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 ...
11
votes
2answers
232 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
57 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 ...
7
votes
0answers
182 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 ...
8
votes
2answers
146 views

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

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
153 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 ...
6
votes
1answer
107 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} ...

1 2 3 4 5 10