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)

5
votes
2answers
551 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
631 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
309 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
544 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
588 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
406 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
658 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 ...
117
votes
5answers
10k 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
2k 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
3k 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
280 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
752 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 ...
8
votes
1answer
810 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 ...
33
votes
7answers
3k 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
710 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
469 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
704 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
661 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
645 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
257 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
275 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
705 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
437 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
766 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
452 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 ...
4
votes
2answers
169 views

How to suppress a line completely from a LuaTeX process_input_buffer callback?

I'm using a process_input_buffer callback to look at lines read from LuaLaTeX input before passing them on to TeX, to be processed as »verbatim« text (code and command examples). There are some lines ...
7
votes
1answer
822 views

How to pick a specific symbol from a specific font?

Using LuaLatex, I need two very specific symbols from two very specific fonts, namely from the ZapfDingbats and the WingDings font. I understand how I could use the fontspec package to set those ...
18
votes
3answers
1k views

In LuaLaTeX, how do I pass the content of an environment to Lua verbatim?

In LuaLaTeX, how would I go about capturing the content of an environment for (verbatim) processing by Lua? For example, consider something like \begin{foobar} Hello {World} \end{foobar} I'd like ...
28
votes
4answers
579 views

Any suggestions/requests for features for a new package that allows disabling ligatures for (pre)selected words?

I'm starting to put together a LaTeX package, which I hope to distribute broadly, that provides lualatex code to disable ligation of character pairs and triplets for selected words (globally within ...
6
votes
1answer
844 views

Font issue on using lualatex with beamer

I am trying to use beamer with lualatex to produce a presentation (MacTex 2011). Somehow, it doesn't seem to honor the font settings. See the sample below, is there anything I am missing here? ...
8
votes
1answer
727 views

Too much space after integral sign with unicode-math and lualatex

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.) Consider the minimal example \documentclass{article} ...
5
votes
2answers
541 views

char to integer cast in latex

I am wondering what an integer in LaTeX is. I take this from pdfTeX release notes (2005-08-01) \pdfelapsedtime is a read-only integer that (initially) returns the amount of time passed ...
10
votes
2answers
733 views

Do XeTeX and LuaTeX always use Unicode?

I am writing some functions to manipulate strings. A typical way to produce a character with a given character code is the \lowercase primitive. The following code produces a character with code 234, ...
4
votes
1answer
516 views

Follow up question: TeX accents do not seem to work with fontspec and xe/lua/latex

This is a follow up to this question. How would the same look for the dot above? That is, what's the standard definition for \. ? Or does somebody in the meantime know a better solution to the whole ...
24
votes
2answers
661 views

Porting the luatex/ConTeXt module “translate” to lualatex

In this question, which I posted a few weeks ago to TeX Stack Exchange, I asked how one should go about disabling specific ligatures (such as ff, fi, fl, and ffl) automatically for a list of ...
4
votes
0answers
130 views

Access table of available fonts [duplicate]

Possible Duplicate: How do I get a list of all available fonts for luaotfload? I wonder if there is a possibility to display all available fonts in the normalised form (see below). The ...
4
votes
0answers
183 views

Is this a fontspec bug or a font bug [duplicate]

Possible Duplicate: Lining numbers not working in certain fonts I want to use the OpenType features of the Calibri font, but things are getting weird here! I am using LuaLaTeX from the ...
6
votes
1answer
851 views

Strange behavior of XITS Math in XeLaTeX for \underset and \underaccent commands

Prompted in part by the question Is there an "underscript" command?, I started wondering if the \underset (from amsmath) and \underaccent (from accents) commands work equally when using XeLaTeX ...
6
votes
2answers
474 views

Luatex and unicode math without unicode-math

I'm using fontspec in lualatex to get a OTF main font, but I'd like to use one of the good old math fonts (like the default TeX one). After trying different packages, I didn't manage to make it work ...
13
votes
2answers
3k views

Selecting main math font in LuaTeX?

I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX.  I’d hoped that something like the following should work: \documentclass{minimal} ...
4
votes
1answer
953 views

LuaLaTeX and algorithm2e

The algorithm2e package seems to be not compatible with LuaLaTeX. For example, compiling the following code produces an error. \documentclass{article} \usepackage{fontspec} \usepackage{algorithm2e} ...
5
votes
3answers
968 views

How to get LuaLaTeX to work with babel's \textgreek?

I'm completely at a loss with how to get LuaLaTeX to output Greek text. I have tested the following MWE with PDFLaTeX and LuaLaTeX on both TeXlive 2009 (Linux) and TeXlive 2011 (Win32) and in both ...
6
votes
1answer
304 views

fakebold error in fontspec or lualatex

I have been trying to fake small caps which are not available in Myriad Pro. So I used the Scale and FakeBold options. Scaling is allright, but as you all know the glyphs slim out. To work against ...
2
votes
1answer
843 views

Why does lualatex return with exit code 1 even though a PDF was built?

Using TeXLive 2011, I invoke lualatex on a TeX file from the command line. The PDF builds (mostly correctly, although the source TeX file has many many errors and warnings, none fatal). However, the ...
11
votes
1answer
598 views

Reduce compilation time for opentype fonts (otf)

I have some opentype fonts (otf) which I use with fontspec. Everything works fine. During the compilation LuaLaTeX load the otf-files in a temporary file. For example: (load: ...
1
vote
3answers
2k views

LuaTeX: tex-text at 10 pt not loadable [closed]

I am trying to use LuaTeX with Linux Biolinum. It works fine with XeLaTeX, but when I'm running LuaLaTex, it gives me the following error: ! Font ...
9
votes
2answers
1k views

British hyphenation with either xelatex or lualatex

For several reasons, I am working on a source file that should be compilable by either xelatex or lualatex. I would like British hyphenation for the text and am using csquotes and biblatex with ...