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)

8
votes
1answer
150 views

Use lualatex to create macros

I used the following in the past and it worked: \documentclass{minimal} \usepackage{luacode,luatextra} \begin{document} \begin{luacode*} MyVal=123 tex.print("\\def\\MyVal{"..MyVal.."}") ...
9
votes
1answer
199 views

How to change kerning around ( glyph with lualatex?

Inspired by An example of changing kerning of a font in LuaLaTeX I decided to try to change the kerning for some letter combinations together with parentheses which have been bothering me in my ...
8
votes
1answer
125 views

How to use fakeslant as slanted but not italic font with fontspec?

Using fontspec with Luatex it is possible to create a fake slant and use that as italic should no italics be around: \setmainfont[ AutoFakeSlant=0.15 ] {FontName} However, also if an ...
3
votes
0answers
108 views

copy&paste: diacritics and special characters [closed]

Why can't I correctly copy&paste from my pdf documents (created by LuaLaTeX)? E.g., I get Faḫr al-Din̄ al-Rāzī instead of Faḫr al-Dīn al-Rāzī. Surprisingly, most other things (including Arabic ...
8
votes
1answer
143 views

Write18: LuaTeX has an encoding problem, where XeLaTeX does not

xelatex (with option --shell-escape) compiles this document fine: \documentclass{article} \usepackage{fontspec} \begin{document} LuaTeX is not \immediate\write18{echo uber | sed y/u/ü/ > inc.tex} ...
5
votes
1answer
541 views

Can I make LuaLaTeX use \input files that are ANSI encoded?

I include/\input automatically generated files (tables generated by Stata) into my main document. I would like to compile that document with LuaLaTeX. Unfortunately the generated files are ...
6
votes
1answer
512 views

LuaLaTeX and PSTricks

Is there the possibility to produce PSTricks graphics in LuaLaTeX? I tried it, but i get ! Undefined control sequence. <recently read> \c@lor@to@ps l.9 \psline( ...
5
votes
1answer
101 views

Can epdf change pdf?

I want to edit PDF using the epdf library included in LuaTeX (add, bleed/crop/trim box). I can get current trim size of the PDF (if it's set) via epdf PDFRectangle. But I didn't find defined methods ...
2
votes
1answer
677 views

XeLaTeX, fontspec, Arial (TTF), umlauts?

How do I get german umlauts in a PDF using Arial TT-Font and XeLaTeX or luaLaTeX? The following example produces a box instead of "ü": \documentclass[12pt]{article} \usepackage[utf8]{inputenc} ...
6
votes
1answer
483 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 ...
1
vote
3answers
1k 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 ...
2
votes
1answer
170 views

Print font name using LuaTeX

I want to print font names (full name, ps name, file name, etc) using LuaTeX's font table. It works fine previously, but recently I encountered an error message from luaotfload Here is a minimal ...
9
votes
2answers
224 views

LuaLatex: How get ascii text from paragraph, change it and render again

Is possible to render paragraph in LuaTeX -> get ascii text with hyphenation -> put back text and render again? I have simple text: "Lorem ipsum dolor sit amet, conse... laborum." I need get this ...
5
votes
1answer
350 views

Sawasdee Font in Beamer Poster

I'm trying to use the "Sawasdee" font in a beamer poster (installed as a TrueType font from fonts-tlwg-sawasdee ubuntu package). I can activate it in a regular (scractl) document by using ...
6
votes
1answer
174 views

Macro to calculate \baselineskip for given font

I want to write a macro that returns the \baselineskip multiplied with a fixed value for a given font spec. That seems to be harder than I would imagine... after some fiddling I came up with this: ...
2
votes
0answers
241 views

Fontspec: Select minionpro font from local folder

I have the Minionpro Font files in the same directory as the master LaTeX file. When compiling, the path to the MinionPro fonts folder would be ../minion/ containing: ./MinionPro-Bold.otf ...
4
votes
0answers
249 views

Copy oldstyle numbers from pdf (Minion Pro)

I can't get LuaLaTeX (0.76.0-2013061707, current TeXLive) to produce a pdf with copyable (in adobe reader) oldstyle numbers with the Minion Pro font. I tried the method here, but I get the error ...
11
votes
0answers
369 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 ...
9
votes
1answer
253 views

uneven line spacing

This is something that is already annoying me for quite a while. (I use LuaLaTeX) The line spacing of the Arabic text is uneven (see pic and/or MWE below). In particular, I think, lines 2, 7, and 10. ...
3
votes
1answer
210 views

What does “LuaTeX error cannot read stdin: Bad file descriptor.” mean?

I'm trying to compile with LuaLaTeX for my first time but don't get results. The goal is to get microtype to work with the standard font for scrreprt (Latin Modern I think). Or maybe to check out ...
5
votes
3answers
403 views

Switching to an “enhanced” latex

I'm a long time LaTeX user and have a pretty efficient workflow already set up for writing LaTeX document, however I've pretty much missed the entire wave of "alternate" and "enhanced" LaTeX ...
5
votes
1answer
155 views

How to access the quotation marks in Berling font using lualatex?

Here is a small example: \documentclass[11pt,article,oneside]{memoir} \usepackage{fontspec} \setmainfont[ItalicFont={BerlIt}, FeatureFile=myligatures.fea]{Berling} \begin{document} ``Lala la'' ...
19
votes
2answers
381 views

Will LaTeX work on any TeX?

As I understand it, latex is simply a macro package for tex, as in tex the program, not the format. (Again, weird, but I understand LaTeX to be a format of TeX.) Does this imply that LaTeX the ...
6
votes
1answer
256 views

Monotype Gill Alt One MT and the fi fl ligatures

I have previously received help with getting the fi and fl ligatures working with the Berling font and now I found myself trying to do the same with the Gill Alt One MT font. The same approach does ...
5
votes
3answers
210 views

Convert numbered pinyin to pinyin with tone marks

Is there any package which can convert numbered pinyin (e.g. dian4 nao3) to UTF-8 pinyin with tone marks (e.g. diàn​ nǎo)? I found this (http://stackoverflow.com/a/8200388/2421048) Python script, so ...
3
votes
0answers
87 views

How to use a lualatex FeatureFile to adjust sidebearings in math mode?

I am trying to use Linux Libertine as a letter font (and a bit more) in math with unicode-math and luaLaTeX. It should be good to adjust some details, and I hoped to be able to do it with a .fea ...
1
vote
0answers
64 views

LuaTeX error “Parsing CFF DICT”

The following code is a minimal example of a problem I am having often in some of my documents. When compiling with lualatex with the x86-64-linux binary (in TeXLive 2013 with the latest updates) ...
0
votes
0answers
50 views

MacTeX 2013 takes ages to compile [duplicate]

I am sorry that this is not a very specific question. Since I updated to 2013 I haven't been able to compile a single document. To be honest, neither did I let one of the many compilation processes I ...
5
votes
1answer
97 views

Using lua code to obtain rules of different lengths

I started to learning LuaLateX nowadays and I'd like to get some rules with increasing lengths, but I can't figure out why this simple code doesn't give the desired output: \documentclass[11pt]{book} ...
5
votes
1answer
339 views

Microtype and LuaTeX: changing protrusion and hanging punctuation

I'm experimenting (using TeXLive 2013) with having my punctuation marks extend fully into both the left and right margins. I don't know how to include images so I'll do my best to format this here to ...
5
votes
1answer
106 views

“! Argument of \xpg@nospace has an extra }” error message with polyglossia

I use a code – to be found at the end – for long citations in the french tradition. When I use french quotation marks inside such a long citation, I have no problem on compiling with xetex if I load ...
6
votes
1answer
133 views

Getting lilyglyphs working in LuaTeX

The package lilyglyphs provides a set of macros for incorporating Lilypond fonts easily into XeLaTeX files. That package is available here. I am using TeXLive 2013. With the following MWE it works as ...
37
votes
2answers
3k views

microtype settings for dummies

More than a year ago, a friend of mine was totally excited about microtype features in LaTeX. He was talking about it quite a bit and then said to me: "Show me your document, let me input some lines ...
2
votes
2answers
135 views

How to *disable* Lua's Microtype for a given tabular column?

I'm looking for a way to disable Lua's Microtype (note the capital M - to distinguish from the lower case microtype package) in the first tabular column of the MWE given below: ...
24
votes
2answers
2k views

An example of changing kerning of a font in LuaLaTeX

LuaLaTeX, through the luaotfload package, is able to dynamically add and modify features and properties of a font. This is performed by using the FeatureFile option in fontspec when loading a font; ...
5
votes
1answer
131 views

Setting variables in LuaTeX texconfig?

The LuaTeX documentation mentions that several variables are accessible by setting a table called texconfig. In particular I want to reduce the output a bit by setting trace_file_names to false. ...
6
votes
1answer
351 views

Possible LuaLaTeX Problem (compilation seems to hang)

I asked a question earlier, where I had problems with my font specification, since I am using LuaLaTeX with Caslon. I am on Win 7 with TeXLive 2013 (up to date). The file compiles just fine with ...
1
vote
1answer
87 views

Luaotfload complains: “cache : Could not write lookup cache”

I am in quite the pickle about my document I would like to compile with LuaLaTeX. This is the set-up I am using for the fonts and such: \usepackage[no-math]{fontspec} \usepackage{lipsum} ...
3
votes
0answers
64 views

Is there any reason to used pdflatex instead of lualatex? [duplicate]

As I understand it pdflatex has been discontinued, and the replacement is LuaLaTeX. But pdflatex is still included in most (all?) distributions, along with LuaLaTeX. LuaLaTeX supports lots of new ...
2
votes
1answer
2k views

font-not-found error: font “HoeflerText” cannot be found — LuaLaTex error! [closed]

I am running this CV/Resume example from here: Here is a relevant fraction of the code: \documentclass[10pt]{article} %!TEX encoding = UTF-16 % See geometry.pdf to learn the layout options. There ...
8
votes
4answers
284 views

Patch font with LuaTeX

I don’t like the spacing of \textperiodcentered = U+00B7 in the OpenType cut of Latin Modern. Different from Computer Modern—and in fact, from just about any font I have on my system—LM gives the ...
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 ...
12
votes
2answers
3k 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 ...
6
votes
1answer
248 views

Differences in processing DejaVu Serif between LuaTeX and XeTeX

I'm trying to set a heading in DejaVu Serif Condensed Bold. Simplified, here's the code: \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{DejaVu Serif Condensed} \begin{document} ...
12
votes
1answer
186 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 ...
4
votes
1answer
2k views

hyperref: Wrong DVI mode driver option `dvips',(hyperref) because pdfTeX or LuaTeX is running in PDF mode. \ProcessKeyvalOptions{Hyp}

hyperref: Wrong DVI mode driver option `dvips',(hyperref) because pdfTeX or LuaTeX is running in PDF mode. \ProcessKeyvalOptions{Hyp} How can i fix this error? I m trying to compile a template of ...
4
votes
0answers
166 views

unicode-math and oldstyle figures

I'm trying to find a good way to archive the following using fontspec, unicode-math and lualatex: almost global oldstyle figures including inline math lining numbers for displayed equations, e.g. ...
11
votes
1answer
444 views

MiKTeX’s LuaLaTeX and minitoc: “I can't write on file …mtc”

When compiling the code below with LuaLaTeX I get the error: "I can't write on file 'test.mtc'". Any ideas on how to resolve this? (Btw, the file test.mtc is there and contains the word "Contents") ...
5
votes
1answer
246 views

System-wide feature file in lualatex

I have a font (Dolly) with f_i and f_l ligatures, which requires a feature file to make them work. Everything works fine using the following: # dolly.fea languagesystem DFLT dflt; languagesystem ...
7
votes
1answer
265 views

access all characters in an OpenType font with LuaLaTeX

This is a follow-up to Access specific characters in LuaTeX and How to access fleurons? With TeX Live 2012, I compiled the following file and got the output in the image: \documentclass[12pt]{book} ...