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)

4
votes
1answer
169 views

LuaSSEQ problem

I am trying to compile a Lualatex file using the luasseq package My minimum working example is \documentclass{article} \usepackage{luasseq} \begin{document} \end{document} When I run 'lualatex' on ...
7
votes
1answer
649 views

LuaTeX colored boxes with rounded corners

What is the simplest way to make coloured boxes with rounded corners in luatex? With xelatex I used pstricks and it was simple, but with luatex it is not working.
19
votes
4answers
886 views

How to suppress the operation of a luatex-defined macro on a string if the string is part of macro or a label

I'm working towards creating a lualatex-based package that lets users automatically suppress the use of ligatures (for now, ff, fi, fl, ffi, ffl, and ft) for selected words. (For background see this ...
1
vote
1answer
458 views

How can I produce vertical white space in a table with LuaLaTeX?

How to add a few blank lines without using \vspace? Trying to use \\ always gets me in trouble... Now I'm trying to format a simple lua table in LaTeX for display. I am using a combination of \\ ...
3
votes
1answer
207 views

LPeg self-referential pattern

I am trying to create a self-referential pattern in lua/lpeg local group = lpeg.P(sep1 * (1 - sep2)^0 * group^0 * sep2) notice that group refers to itself. This is not possible since group is ...
6
votes
2answers
240 views

Cannot access arguments in a lua block

The follow code is trying simply to print the first argument of a macro. I've tried various things found on the net(there is very little) to get #1 printed in lua but nothing works. I assume there is ...
4
votes
3answers
534 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?
3
votes
1answer
206 views

LuaTeX example invalid (printing)

On page 127 of the luatex manual it has the example before\directlua{tex.sprint("\\relax")tex.sprint(" inbetween")}after but the double slash throws an error. Similarly a single slash also has the ...
25
votes
5answers
3k views

Reading data from a relational database into a LaTeX table

I'm using Tex Live 2009 on Debian squeeze. I can upgrade if I really, really have to, but I'd rather not. i was wondering if it would be possible to do the following. Given some data in a ...
8
votes
3answers
1k views

What is the correct way to delineate directories in Lua?

I have been experimenting with some Lua code to list directories and provide them to the TeX engine. I have been using the Lua File System (lfs) module. The first part list the current directory ...
13
votes
1answer
1k views

How to set expansion and protrusion for TeX Gyre Pagella using LuaLaTeX?

For my documents, I have often used the mathpazo package combined with microtype and have found the result to be really good. Because now I need to create PDFs which contain a variety of diacritics ...
7
votes
1answer
361 views

LuaTeX stumbles over special characters in path names, is this a bug?

This bug in MiKTeX is fixed as of 29. March 2012. I looked briefly at the LuaTeX documenation but could not find any information whether LuaTeX has a problem with special characters in path names. ...
9
votes
2answers
1k views

lualatex error with Brazilian Portuguese babel option

It seems that lualatex does not known the Brazilian dialect of the Portuguese language with the babel package. When compiling the simple document: \documentclass{article} \usepackage[brazil]{babel} ...
18
votes
5answers
1k 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 ...
8
votes
2answers
2k views

Engines of Tex-Editors and Biber/Biblatex

Today I detected that biblatex, biber or whatever is responsible for citations and bibliography does not work correctly on my tex-files. I can think of two reasons for it: Maybe my engine-file (I am ...
8
votes
1answer
532 views

TeX logo with LuaTeX and Linux Biolinum O/G

Something is wrong with TeX and LaTeX logos with the font Linux Biolinum O under LuaTeX. I am using MiKTeX 2.9 on Windows. Here is a minimal working example: \documentclass{minimal} ...
7
votes
3answers
1k views

luaotfload can’t find fonts

I am using MiKTeX 2.9 on Windows. luaotfload does not find the fonts located in the MiKTeX-maintained root directory (which is C:\Program Files (x86)\MiKTeX 2.9\ on my system) and I am therefore ...
30
votes
1answer
896 views

In lualatex, hyphenation doesn't seem to work for words that contain certain ligatures

It would seem that hyphenation does not work properly under LuaLaTeX if the hyphenation points occur at places where TeX inserts ligatures. Consider the following MWE, which (i) provides hyphenation ...
14
votes
1answer
490 views

Lualatex and Syriac (initial, middle and final letters)

I have heard that it is possible to typeset Arabic texts with Lualatex, so I assume that it is also possible to typeset Syriac texts with LuaLatex. But when I run the following example, the output is ...
5
votes
2answers
490 views

custom luatex format file

I have to process a big number of files with the same preamble. Therefore I try to build a custom format file. The biggest »time eater« is font loading in lualatex, so I try to load the fonts in the ...
1
vote
1answer
753 views

LuaLatex and the “Oriental TeX Project” — Scientific Arabic Typesetting

Does anybody know something about the future of Arabic typesetting with LaTeX or LuaLaTeX? Do they develop tools and mechanisms for scientific typesetting of Arabic text? In other words: is it still ...
10
votes
1answer
413 views

ledpar: Get rid of any space between paragraphs while retaining the synchronization of the pagecontents

My question: Is there a way to simply get rid of any space between the paragraphs of ledpar- while retaining the pagesynch? (I understand that synchronizing paragraphs is a feature of ledpar, put I ...
5
votes
2answers
535 views

Possible incompatibility between tufte-latex classes, footnotes and LuaLaTeX

I think I came across an incompatibility between LuaLaTeX and tufte-handout or tufte-book class. The document should also contain footnotes. Here is a MWE: \documentclass{tufte-handout} % Or ...
15
votes
2answers
3k views

How do I change the font size in LuaLaTeX?

\documentclass{minimal} \usepackage[paperheight = 140mm,% comprimento paperwidth = 200mm,% altura margin = 10mm % tamanho da margem ]{geometry} ...
7
votes
1answer
598 views

Using XeTeX for automatic transliteration of cyrillic letters

This is a follow-up question to the following question: Serbian Cyrillic using LuaTeX and XeTeX. I actually often need character substitution the other way around, that is, I write cyrillic, but ...
10
votes
2answers
305 views

Accessing side-bearings in LuaTeX

This question has been solved, in XeTeX, by this code: \def\kright#1{\leavevmode #1\kern-\XeTeXglyphbounds3 \the\XeTeXcharglyph`#1 } \def\kleft#1{\leavevmode \kern-\XeTeXglyphbounds1 ...
0
votes
1answer
531 views

Babel in ConTeXt(LuaTeX)

I am interesting in ConTeXt(LuaTeX) but my biggest problem is that I could not translate a simple program from LuaLaTeX, that uses babel, to a corresponding ConTeXt(LuaTeX) one. The code is the ...
8
votes
2answers
570 views

LuaLaTeX, sprint verbatim text

The code below, uses the lua, socket.http library to pull a web page (for simplicity I have used a link to a text file). I have used tex.sprint to pass it back to the typesetting engine. However I ...
18
votes
2answers
401 views

Can the Lua part of LuaTeX know about tokens?

Using \directlua and tex.print, it is possible to send strings of characters back and forth between TeX and Lua. Let's take an example: starting with a macro \A, I pass its replacement text to Lua and ...
13
votes
1answer
639 views

duotone PDF files with lualatex

How to provide duotone PDF files for publishers who require it? I have a document with images (graphicx \includegraphics), TikZ diagrams, compiled with lualatex. So, if I understand it right, there ...
113
votes
5answers
9k views

LaTeX3 versus pure Lua

Reading this site for the last nearly two years I've learned a lot about LaTeX3 (which I had previously understood to be a defunct pipe dream) and LuaTeX (of which I was previously totally unaware). ...
7
votes
3answers
1k views

Serbian Cyrillic using LuaTeX and XeTeX

This question is directly inspired by Martin Schroder's answer to this question. Namely, I am wondering how would one use LuaTeX or XeTeX to produce Serbian (little bit different than Russian) ...
5
votes
1answer
2k views

How to increase bufsize for lualatex or pdflatex?

I work with large TikZ graphics for which the default bufsize of lualatex/pdflatex is too small: Unable to read an entire line---bufsize=200000. Please increase buf_size in texmf.cnf. Is there a ...
15
votes
1answer
279 views

\show for Lua commands

TeX (and all newer engines) has the primitive \show which helps me probe macros, and most of the time is enough to understand/remember the implementation (rather than having to go back to the source ...
3
votes
2answers
732 views

LuaLaTeX + unicode-math + semantic package

I am trying to use lualatex with the unicode-math and semantic packages. I have some problems with the semantic package - when I load full version or with the shorthand option I get "Invalid math ...
7
votes
1answer
751 views

Installing Lua Modules for use in LuaLaTeX - the sequel

There is a question with the same title, Installing Lua Modules for use in LuaLaTeX, that apparently went unresolved. I'm having similar issues and at this point am out of ideas. I'm running Debian ...
32
votes
7answers
2k views

What are the advantages of Lua over other scripting languages for a TeX implementation?

The question is inspired by Martin Schröder's answer to I am new to TeX. Should I use LaTeX, XeLaTeX, …? as well as my two previous questions on this forum: Automatic document update Generate LaTeX ...
13
votes
1answer
687 views

clash between mathtools and unicode-math

Lately I started looking into LuaTeX and I must say I’m growing fond of it with every feature I discover. So I decided to transfer my pdfTeX preamble to LuaTex checking which packages still work and ...
11
votes
1answer
463 views

text figures (old style numbers) and mhchem

How do I achieve lining figures with mhchem while maintaining text figures in the text (lualatex). My MWE is: \documentclass{minimal} \RequirePackage[paperwidth=70mm, paperheight=20mm, left=10pt, ...
5
votes
2answers
666 views

Replacing matching text with a macro containing information from a CSV file

I have some data stored in a CSV file, in this manner: 000000001 @ name @ information @ more information @ some more information I also have a information.tex file containing the numbers from the ...
13
votes
2answers
585 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 ...
19
votes
1answer
629 views

Problem with kerning using LuaLaTeX

I am having a problem with kerning while using LuaLaTeX. In my example, the pair “AT” does not render well. This is clear by comparing LuaLaTeX output with XeLaTeX's, which from the same code renders ...
8
votes
1answer
251 views

Problem with й (\cyrishrt) in LuaLaTeX [closed]

Initially I've asked a different question, but digging up I've found a true reason. The problem occurs when Cyrillic letter й is used with maths in another font in the same paragraph. Here is the ...
2
votes
2answers
273 views

Hebrew words causes strange errors with ConTeXt IV / LuaTeX

I am experiencing strange problems with ConTeXt IV / LuaTeX. I have some hebrew words which continues to throw following errors: error: /usr/share/texmf/tex/context/base/font-otn.lua:1809: attempt to ...
10
votes
2answers
673 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} ...
15
votes
3answers
5k views

How to set-up LuaTeX, Microtype, with Minion Pro, Myriad Pro

Since recently I am using LuaLaTeX with the most recent beta version of Microtype, along with the fonts Minion Pro and Myriad Pro. In the manual of Microtype it says: Currently, this package ...
5
votes
1answer
420 views

Loading fonts in LuaTeX (plain TeX)

I am trying to understand how fonts work with (plain) LuaTeX. I use the standard ConTeXt suite, and I made a luatex-plain format using the file luatex-plain.tex from the distribution: luatex --ini ...
5
votes
4answers
750 views

Layout Problems due to Using the Libertine Font in Beamer

Using Linux Biolinum as the sans font in beamer leads to layout problems for several themes. This seems to be related to a bug in the font, since it does not provide the right x-value, see here. I am ...
1
vote
0answers
77 views

Sorting tlpdb.tlu output [closed]

I get an output from tlpdb.tlu, which is unsorted. When I now use table.sort the output as a pdf is still unsorted. tlpdb = read_tlpdb( kpse.var_value("SELFAUTOPARENT") ) table.sort(tlpdb) Do I ...
5
votes
1answer
438 views

How to write infix macro/newcommand?

Is it possible to write a new command/macro in infix syntax instead of prefix syntax; especially I'd like to have this for $\frac{a}{b}$. I use LuaLaTeX and with \newunicodechar{‾}{\overline} I can ...