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)

14
votes
3answers
18k views

'Not element of' in Latin Modern

In the following example, the ∉ symbol does not look good. \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setmathfont{Latin Modern Math} \begin{document} This ...
0
votes
2answers
252 views

Luapath broke after upgrading miktex

I had my miktex 2.9 working fine with lualatex. I went in and somewhere modified some file so that I could add my own module paths. After upgrading some packages using the miktex upgrade tool my latex ...
12
votes
1answer
343 views

Remapping LaTeX symbol to another unicode value

When compiling the following piece of LaTeX code, the ∖ symbol does not show up. \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setmathfont{Latin Modern Math} ...
9
votes
3answers
1k views

Embedding Type 1C fonts using LuaLaTeX

As pointed out in the answer to PDF file size with LuaLaTeX vs XeLaTeX, the difference between using Type 1 and Type 1C fonts in two documents made a big difference in file size. File size is ...
6
votes
1answer
736 views

Switching off ligatures in LuaLaTeX

In order to switch off ligatures for a whole document using LuaLaTeX, I put the following lines into the preamble: \usepackage{fontspec} \defaultfontfeatures{Ligatures={NoRequired, NoCommon, ...
19
votes
1answer
1k views

PDF file size with LuaLaTeX vs XeLaTeX

I have a set of one-page documents written in LaTex. The same file compiled in LuaLaTeX is about 23 times larger than when it is complied using XeLaTex (about 641 KB vs 28 kb). I tried with a couple ...
10
votes
3answers
708 views

Why does hyphsubst not work with LuaTeX?

Consider the following MWE: \RequirePackage[ngerman=ngerman-x-latest]{hyphsubst} \documentclass{scrartcl} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \Blindtext ...
6
votes
1answer
1k views

How to run latexmk with LuaTeX on Windows?

This is a bit of a follow-up question to: Is there latexmk functionality for LuaTeX? I am trying to setup latexmk on Windows 7 together with LuaTeX but it does not work for some unknown reason. ...
4
votes
1answer
204 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 ...
15
votes
2answers
4k 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
433 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 ...
7
votes
3answers
636 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
717 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
616 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
395 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
756 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
363 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
295 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
389 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
903 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
278 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?
7
votes
1answer
807 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
367 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
100 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
662 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
845 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
842 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
170 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
654 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
905 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
461 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
209 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
246 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
546 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
207 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
4k 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
369 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
538 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
913 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
496 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
499 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
766 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
414 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 ...