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
209 views

Remapping fonts in unicode-math has no effect on e.g. `\mscrC`

For some reason, in this setup, \mathscr{C} and \mscrC produce different results: \documentclass[12pt,a4paper]{article} \usepackage{unicode-math} \unimathsetup{math-style=TeX} \setmathfont{Cambria ...
17
votes
2answers
5k views

Difference between setting parindent and hangindent

Is there a difference between setting \parindent to 1em and to setting \parindent to 0em, \hangindent to 1em, and \hangafter to -1 that shows in practical use? The nodes created by TeX are ...
11
votes
3answers
488 views

In which order is Lua Code in LuaTeX being processed

Can someone help me understand the order in which LuaTeX documents are being processed? From what I've understood, the order is the following: the code is being read, top to bottom when the ...
8
votes
3answers
734 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 ...
6
votes
1answer
751 views

Letterspacing titles with LuaLaTeX

I'm using LuaLaTeX to write my thesis and I've been learning about typography thanks to Robert Bringhurst's "The elements of typographic style". Problem is I can't replicate the letterspacing used in ...
8
votes
1answer
690 views

Left-middle-right delimiters and unicode-math

Consider the rendering of \middle| in the code below: \documentclass[12pt,a4paper]{article} \usepackage{unicode-math} \setmathfont{xits-math.otf} \begin{document} \[ \left\lbrace p_{i,j} \, \middle| ...
7
votes
3answers
414 views

unicode-math and braces scaling

I am trying to create a minimal lualatex distribution, and hence try to eliminate as much non OTF fonts as possible (I try to get rid of the .afm, .pfb, .map, etc files to save space). Everything is ...
7
votes
1answer
829 views

TikZ Region bounded by points

I have a set of points. I would like to "enclose" the points by a region. Since a picture is worth a thousand words: The dots are the points I want to enclose. I want the ability to control the ...
5
votes
0answers
387 views

Lua techniques and libraries for LuaTeX [closed]

With LuaTeX, it is possible to use many libraries and functions that can simplify various aspects of Lua programming. As Lua as language is quite new for the majority of TeX users, I think it would be ...
13
votes
1answer
309 views

Lua function to see if a macro is defined or not

I need to determine if a TeX macro is already defined or not via a Lua function. Any ideas? function IsTeXMacroDefined(macroname) if defined(macroname) then return true end return false end
6
votes
1answer
422 views

Junicode and Small Caps

How can I use Junicode small caps fonts with LuaLaTeX? The solution posted in textls breaks smallcaps with luatex did not work or I just can't fix it. Example: \defaultfontfeatures{Ligatures=TeX} ...
4
votes
1answer
994 views

Font mixup with Neo Euler and Fontspec

For my document I would like to use Linux Libertine as main font and Neo Euler as maths font. However, there seems to be some conflict with the code I am using. Here is a MWE and its output: ...
9
votes
1answer
309 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?
8
votes
1answer
884 views

How to generate EAN barcodes with TikZ or MetaPost?

I'm looking for way to generate EAN barcodes with LuaLaTeX. I'm aware of this question; the solution to that needs pstricks, which won't work easily with LuaLaTeX (I don't want to install GhostScript ...
5
votes
2answers
376 views

LuaLaTeX + load one particular math symbol from an OTF file

I try to load exactly one symbol from an OpenType Font file and use it in a math environment. However, it seems to me, that I can only use the symbol in "normal" text but not in math mode. Here is a ...
1
vote
0answers
101 views

LuaLaTeX issue with string (need to escape) [duplicate]

Possible Duplicate: Print large macro block from Lua to TeX I need to escape a string in Lua code in LuaLaTeX. I'm trying to print a string but LaTeX seems to hiccup on some special ...
1
vote
2answers
685 views

Print large macro block from Lua to TeX

I have a rather large block of TeX macro code that is no problem to do in TeX but I'd like to create the macro in Lua instead The macro contains various TeX macro characters (\, %, [, ]) How can I ...
5
votes
0answers
915 views

LuaTeX font database cannot be created in MiKTeX 2.9 [closed]

Quite in a hurry I am trying to setup MiKTeX 2.9 on the computer of a friend of mine. We started with the portable version but the problem is the same in the normal install. Before the compilation ...
5
votes
2answers
3k views

Linux Libertine Biolinum xelatex and lualatex

This is actually two questions rolled into one. Consider the example file below: \documentclass[a4paper]{article} \usepackage{fontspec} % ...
7
votes
2answers
915 views

Linux Biolinum O messes up moderncv Package

Take the template.tex example file from http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples and add these two lines: \usepackage{fontspec} \setsansfont{Linux Biolinum O} Then run ...
4
votes
1answer
191 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
703 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
1k 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
483 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
217 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
271 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
615 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
218 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 ...
26
votes
5answers
5k 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
2k 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
420 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
2k 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
3k 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
564 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
2k 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 ...
32
votes
1answer
1k 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
533 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
539 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
835 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
427 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
597 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 ...
18
votes
2answers
4k 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} ...
12
votes
1answer
708 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
320 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
568 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
628 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
422 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
681 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 ...