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)

13
votes
3answers
553 views

Possible to use MnSymbol with LuaTex?

I want to use the Minion Pro font together with math symbols from MnSymbol (http://www.ctan.org/tex-archive/fonts/mnsymbol). Is this possible? It has already been discussed here -> ...
13
votes
3answers
4k views

How to properly install and use a new font with LuaLaTeX?

I have problems trying to get new fonts to work when compiling with LuaLaTeX. I'm working on Mac and use TexShop (with the MacTeX package). It goes like this: I downloaded for example the Cardo ...
13
votes
3answers
2k views

How to use xindy with XeTeX/LuaTeX?

According to Xindy revisited: Multi-lingual index creation for the UTF-8 age (TUGboat), “if one has a raw index file that was produced by [XeTeX], one can use xindy; it will ‘just work’.” ...
13
votes
3answers
407 views

Best practice - how can I get my whole document (including math) to only use font X with LuaLaTeX and fontspec?

Considering one uses math symbols in a document, it is desirable to have them all displayed in the serif font one is using for text, or in basically any font x one would like to use for this sort of ...
13
votes
1answer
317 views

fontspec: what does Renderer=Basic do?

I'm writing a document using LuaLaTeX on Windows, using Arial (please do not comment on that) as its main font with: \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} ...
13
votes
1answer
972 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 ...
13
votes
1answer
1k views

using Hoefler Text font under lualatex and MacOSX

I'm having unexpected problems getting the "Hoefler Text" font to work when using LuaLaTeX (under MacTeX2012, all the latest updates installed) on a Mac (MacOS X 10.7.4). The following MWE ...
13
votes
1answer
281 views

\lastnodetype not working as expected in luaTeX

I'm currently experimenting with the linebreak_filter of luatex and when using it to change/replace the linebreaking algorithm the \lastnodetype command stopped working. A MWE is the following: ...
13
votes
1answer
227 views

How can I dump Lua code to a format file?

From this format: %% testformat.ini \input plain \directlua {tex.enableprimitives('', tex.extraprimitives())} \directlua { testFunction = function () tex.print("This was print by Lua's ...
13
votes
1answer
617 views

How to find out which glyphs are different in an OpenType style set?

With fontspec, and XeTeX or LuaTeX it's possible to access a font's OpenType features, including the Style Sets, e.g. like this: \addfontfeatures{RawFeature=+ss01;+ss18} TeX.sx has already taught ...
13
votes
1answer
274 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
13
votes
1answer
602 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 ...
13
votes
1answer
297 views

What is the latest progress in the realm of TeX? [closed]

Motivation TeX.SE as well as external resources contain information from as far as 2010 regarding e.g. LuaTeX, XeLaTeX, microtype, and popular dilemmas such as KOMA/memoir or babel/polyglossia, which ...
13
votes
1answer
877 views

How does fontspec select fonts “by name”?

When loading a font by name, what is the search mechanism being used? How is the matching done? (It's marked TODO in the documentation) I have many problems, for example: a "Hoefler Text Engraved" ...
13
votes
2answers
876 views

Parsing files through LuaTeX

This question has two parts: How would one generally parse a file with LuaTeX, assuming the file only holds data that is delimited either by spaces, commas or semicolons. How would you parse the ...
13
votes
1answer
315 views

Devanagari/Indic in LuaTeX

As I gather from the mailing lists, LuaTeX is currently unable to render devanagari properly because it doesn't understand the complex ligature rules involved. This is my experience with test ...
13
votes
1answer
530 views

How do I combine fonts for different scripts?

I want to combine Helvetica World (for roman, cyrillic, greek and arabic) and Hei Std (for simplified chinese) in one document with LuaLaTeX. Hei Std probably hasn't all the glyphs from Helvetica ...
13
votes
0answers
881 views

Industrial schematics [closed]

I'm investigating if it is possible to generate electrical schematics for industrial machinery with the LaTeX ecosystem. They are quite different from electronic circuits because are developed ...
12
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} ...
12
votes
3answers
1k views

Linux Libertine: Change Numeral Set

I am using the Linux Libertine font for my document. The font provides different numeral sets, "normal" numbers which are all the same height, and medieval/minuscle numbers with varying height. By ...
12
votes
2answers
448 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 ...
12
votes
3answers
2k views

How to get accented unicode characters that can be copy-pasted?

The aim is to generate the .pdf with accented characters (the .tex file has mixed macro and unicode input), in a way that the .pdf text can be copy-pasted. An example: \documentclass{article} ...
12
votes
1answer
208 views

dealing with thin spaces in XeLaTeX and LuaLaTeX

In the following small example I get unexpected but different results in XeLaTeX and LuaLaTeX: \documentclass{article} \usepackage{fontspec} \setlength\parindent{0pt} \newcommand*\x{\rule{1cm}{1cm}} ...
12
votes
2answers
384 views

Get cell content from a Google doc spreadsheet using LuaTeX

I know that LuaTeX can access network resource (at least ConTeXt can). Would it be possible to get cell values in a macro, from a Google Docs spreadsheet, dynamically at compilation time, with ...
12
votes
1answer
232 views

Is there a limit to the size of a tex-file?

I've been writing a document for some time now. It is steadily growing and hopefully will continue to do so. Lately I realised that -- although I just recently bought a new MacBook -- when I work on ...
12
votes
2answers
3k views

UTF8 not working in LuaTeX in TeXLive 2010

I've been trying to set a document using lualatex in my TeXLive 2010 installation. Unfortunately, the non-ASCII characters are left out from the output. In the following minimal document produces a ...
12
votes
1answer
613 views

When to use LuaJitTeX in favour of LuaTeX?

Since a few weeks LuaJitTeX is available ¹, which is LuaTeX with Lua replaced by LuaJIT. Binaries are available for various platforms. It is already included in the ConTeXt standalone distribution. I ...
12
votes
1answer
295 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} ...
12
votes
2answers
619 views

What is the right way to input prime with Unicode-math (LuaTeX backend)

I opened an issue about this in Unicode-math's github repository. However, I am not so sure it is actually a bug, or I just did something wrong. Here is a minimal example, \documentclass{article} ...
12
votes
1answer
437 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 ...
12
votes
1answer
614 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 ...
12
votes
2answers
273 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 ...
12
votes
1answer
267 views

Ligature suppression algorithm fails if the word in question contains an Umlaut (dieresis) before the ligature

This is a follow-up posting prompted by Taco Hoekwater's recent excellent answer to a question I posed a few months ago. It concerns the use of the ligature suppression algorithm for words (mainly, ...
12
votes
1answer
470 views

Why does LuaLaTeX produce smaller files than pdfLaTeX in this example?

I am discovering LuaLaTeX... I want to produce pdf files from my tex sources as small as possible. If I compile the following code with LuaLaTeX, the size of the generated pdf is 9 kB. ...
12
votes
0answers
468 views

Selecting optical sizes for all fonts in a family

XeTeX and LuaTeX are able to assign optical sizes to fonts when they are provided. In those situations where XeTeX or LuaTex are unable to correctly assign optical sizes I am able to specify them but ...
12
votes
0answers
388 views

Libertine Mono and lualatex [closed]

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 ...
11
votes
4answers
560 views

Is it possible to run LuaTeX from a USB flash drive

I am looking for ways to install and run LuaTeX on a USB flash drive (Windows operating system).
11
votes
2answers
3k views

\documentclass: undefined control sequence

There's probably a ton of questions about this already but I've been spending all day feeling overwhelmed with the TeX learning curve. I'm trying to learn LuaTeX (by the way, if you know of a good ...
11
votes
2answers
789 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: ...
11
votes
2answers
473 views

Create a font table for all available characters for a particular font

Similar to the question: Lualatex: Font table with examples I have several ornamental fonts and I'd like to create key maps. That is, I want to know what symbol the letter a maps to by having a nice ...
11
votes
2answers
4k views

Specify different fonts for bold and italic with fontspec

The main font I use for my LuaLaTeX document lacks bold and italic variants. I'd like to specify a different font for those variants using the fontspec package. Initially what I had in my preamble ...
11
votes
3answers
362 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 ...
11
votes
4answers
868 views

Replacing Unicode non-breakable spaces by normal spaces

I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode ...
11
votes
3answers
505 views

How to display only certain lines of a paragraph?

From reading Knuth's TeX Book (Chapter 14 How TeX Breaks Paragraphs into Lines), I understand that entire paragraphs are read in and then "massaged" by the "line-breaking algorithm" in an optimal way ...
11
votes
2answers
2k views

Typesetting arabic with LuaLaTeX

For typesetting arabic with LaTeX there are arabtex and arabi; for typesetting arabic with XeLaTeX there are arabxetex and polyglossia; but how to typeset arabic with LuaLaTeX, since neither of ...
11
votes
2answers
1k views

fontawesome icons are getting too big using XeLaTeX

The following example must be compiled with XeLaTeX to reproduce the issue. % arara: xelatex \documentclass{article} \usepackage{fontawesome} \begin{document} Text Text \faMobilePhone\ Text Text ...
11
votes
1answer
542 views

In LuaTex is it possible to change font/language according to the script/glyphs used?

I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text ...
11
votes
1answer
214 views

XeLaTeX can't use TikZ 3 features?

I copied this code from this answer. \documentclass[tikz]{standalone} \begin{document} \tikz [blend group=screen] { \fill[red!90!black] ( 90:.6) circle (1); \fill[green!80!black] (210:.6) ...
11
votes
1answer
124 views

Replacing # characters with luatex

The minimal example below should replace all # characters with another symbol. This works well if I use \# to escape it, but the user should later be able to enter it directly, e.g. to enter hash ...
11
votes
2answers
9k views

Problem while compiling friggeri CV template 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 ...