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
4k 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} % ...
5
votes
2answers
775 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 ...
5
votes
2answers
634 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 ...
5
votes
2answers
892 views

Place TikZ picture over top of text

I'm designing some letterhead using LuaLaTeX (interchangeable with XeLaTeX at this point) where I want my signature and name to be drawn like this: The signature is a TikZ drawing, the text is ...
5
votes
1answer
301 views

LuaLatex change main text font for everything a part of numbers

Thanks the abundance of templates on the Internet seldom I use LaTeX (LuaLaTeX engine) also for non-academic texts like relations or letters. So sometime I like to use other fonts than the Computer ...
5
votes
2answers
227 views

Animate doesn't animate with LuaLaTeX

I have the following code: \documentclass{article} \usepackage{animate} \listfiles \begin{document} \animategraphics[palindrome,autoplay,width=\textwidth,controls]{5}{Testsaves}{0}{1} \end{document} ...
5
votes
1answer
306 views

Compile Error: lualatex with PSTricks

I compile the file below with lualatex --shell-escape but I get the error : ! Undefined control sequence. l.14 \savedata ...
5
votes
1answer
409 views

problem with math font and LuaLaTeX

The following code works fine if compiled in pdflatex: \documentclass{beamer} \usepackage{quattrocento} \begin{document} \begin{frame} Quattrocento $30\cdot40$ \end{frame} \end{document} As is ...
5
votes
1answer
147 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
528 views

Avoid update font name database by luaotfload

I am using LuaLaTeX to typesetting documents with system fonts. Compiling needs much time to update the font database: luaotfload | Updating the font names database:. I think this update is not ...
5
votes
2answers
381 views

Printing backslash from a luacode* environment

My first attempt with LuaLaTex gave me some headache, trying to generate LaTex code from within LuaLaTex. This required me to print the backslash (to get a LaTeX control sequence).. I think I have ...
5
votes
1answer
106 views

Find node above and under

Using a post_linebreak_filter callback, is it possible to access the nodes positioned above and under a given node?
5
votes
1answer
68 views

In LuaTeX, how can I escape text that will be inserted in LaTeX?

I wrote a Lua function that dumps data from a TXT file in my LaTeX document. The problem I have right now is that the data the TXT file is treated as LaTeX code so I need to escape special characters ...
5
votes
1answer
89 views

LuaLaTeX Manual Hyphenation not working

i globally declared the hyphenation of a word like this \hypenation{dis-tri-bu-tion-point-objekt} The Word is a mix of english an german (the last part objekt is in german language). But the word ...
5
votes
1answer
220 views

LuaTeX: How to handle a Lua function that prints TeX macros

Let's say that I have a Lua function that prints TeX macros: How can those macros be executed during compilation with LuaLaTeX? In the following example, I defined a LaTeX macro that should print a ...
5
votes
1answer
324 views

compiled pdf doesn't show utf-8 character

If i compile a document with lualatex that contains specific utf-8 characters most pdf-viewers (okular, evince, xpdf) don't show them. For example if i compile the following example i just see a bank ...
5
votes
1answer
3k views

tikz externalization using lualatex over pdflatex

I am trying to externalize tikz plots using lualatex while encapsulating the whole tex file with pdflatex. I still couldn't figure out why this method is not working. I am using miktex and texstudio. ...
5
votes
1answer
1k views

How to use otf fonts correctly?

I'm using Linux. I'd discovered that is possible to run lualatex and use my system fonts. Well, I'm trying to see how they look like. Here is my sample: \documentclass[11pt,a4paper]{amsart} ...
5
votes
1answer
349 views

Using savetrees with LuaLaTeX

Apparently I can't use savetrees with lualatex - is there another way to expand the writable area to the whole page (for US-letter currently, I think other people are interested in A4)? I get this ...
5
votes
1answer
444 views

\settowidth in preamble wrong with fontspec+lualatex w/ MWE

I am getting some strange behaviour using luaLaTeX and a rather simple command definition. I am using TeXLive 2012, Linux x86_64. When \settowidth is used in the preamble to compute the width of some ...
5
votes
2answers
587 views

lualatex print, directlua env, and newline

When using print from lua, if the log file's current line has not been terminated then the lua tex will not start on a new line. This is very annoying because many times I search for some debug string ...
5
votes
1answer
4k 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 ...
5
votes
1answer
483 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
1answer
115 views

How does XeLaTeX and LuaLaTeX extend the dvi format?

The structure of the DVI file format is documented by Donald Knuth in TEX: the Program, Addison-Wesley, 1986. Although PDF is the primary output format, LuaTeX can also output DVI files. Are these ...
5
votes
1answer
97 views

Linguex bad spacing between number and examples with certain values above 99 when using old style numbers

When using linguex example numbering packing, if I use \defaultfontfeatures{Numbers=OldStyle} with xetex or luatex, then with certain example numbers exceeding 99, there is no spacing between the ...
5
votes
1answer
44 views

Circumflex over Numeral with fontspec

For a music analysis paper I'm working on, I need to enter an arabic numeral with a circumflex over it to represent a musical scale degree. Normally, I can just use \^3, but as soon as I load the ...
5
votes
1answer
281 views

Russian in document with Japanese as main language (LuaLaTeX + ltjsarticle)

I need to use some Russian text fragment in ltjsarticle class, which provides the Japanese settings like Japanese caption for LuaLaTeX. In the current MWE, There are big intervals between Russian ...
5
votes
1answer
102 views

Possible Lualatex problem with documentation library from tcolorbox

I am developping a package which uses some lualatex features. In order to show examples in the documentation, I have to use lualatex for the compilation as well. I decided to use the documentation ...
5
votes
1answer
187 views

greek character of GFS Porson is missing with LuaLaTeX (fontspec, polyglossia)

When I LuaLaTeXify a document with GFS Porson as greek font, it doesn't print the Greek semicolon (·) when written as ·, it uses the latin semicolon when written as ;. If I am right, · is ...
5
votes
3answers
194 views

ConTeXt system font search path

I read from the official manual (http://wiki.contextgarden.net/Fonts_in_LuaTex#How_LuaTeX_handles_system_fonts) that I need to export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts" to specify where ...
5
votes
1answer
719 views

Make Notes from Lyx into Annotations on the PDF

Lyx Supports Notes. It would be great to have any notes in lyx show up as Annotations in a draft produced PDF. For example: LyX: PDF: The use case I have in mind is when showing this draft ...
5
votes
1answer
444 views

Problem with \setmathfont and siunitx

I have some problem with the following code. \documentclass{minimal} \usepackage{fontspec,luatextra,unicode-math} \usepackage{icomma} \usepackage[noload=abbr]{siunitx} \sisetup{decimalsymbol=comma, ...
5
votes
1answer
162 views

\emptyset doesn't work with LuaTex + glossaries + unicode-math (bug?)

The following code doesn't work with LuaTex (I get an "undefined control sequence" error). It works if I either comment out \usepackage{unicode-math} or if I change the glossary name from $\emptyset$ ...
5
votes
2answers
750 views

How can I list fonts available to LuaTeX in ConTeXt (TeX Live 2013)?

I've looked at How do I get a list of all available fonts for luaotfload?, but the answers don't work for me in TeX Live 2013, at least not without LaTeX. This is because there they rely on the file ...
5
votes
1answer
360 views

Using different text and math fonts with unicode-math

When using pdfLaTeX it is sometimes possible, when using different text and math font sets, to take the fonts for operators like sin and cos from the text font even within formulae. Thus, using the ...
5
votes
2answers
382 views

Why isn't diagrams.sty compatible with LuaTeX

I am trying to debug the problem with Paul Taylor's diagrams.sty (not in TeX Live or MiKTeX, but available from CTAN). Minimal example: \documentclass{article} \usepackage{diagrams} ...
5
votes
1answer
113 views

How to set the interactive editor in TeXLive? lualatex bug?

After some research we determined this is a problem inherent to lualatex. If you have a solution for this problem in LuaLaTeX please post it below and I will accept you answer. When ...
5
votes
1answer
31 views

visible hyphen char, why?

The pdf output of the following small example document is wrong if compiled with lualatex (Version beta-0.80.0): \documentclass{article} \usepackage{fontspec}% {2016/02/01}{2.5a} \begin{document} lm ...
5
votes
1answer
99 views

Combine “traditional” font packages (e.g. Type 1) with fontspec

I was having problems trying to combine a "traditional" font package (berasans) with fontspec (using TeX Gyre Pagella). Just using both correctly changed the text font to TeX Gyre Pagella, but text ...
5
votes
1answer
66 views

handling of `--` in minted

I'm using minted for pretty printing console output and have just noticed that double hyphens, i.e. --, for program options are getting turned in en-hyphens, i.e. –. A MWE is: \documentclass{memoir} ...
5
votes
2answers
130 views

How can I access Garamond Premier Pro's straight “quotedbl/quotesingle” using lualatex?

Idea (from here): I use \symbol{idx}, where idx is the glyphs index. To determine these two glyphs' indexes I had a look into ...texmf-var\luatex-cache\generic\fonts\otf\garamondpremrpro.lua and ...
5
votes
1answer
170 views

Let fontspec handle bold font automatically

I recently installed a commercial font called Monospace 821. The font came in ttf format and I installed it as usual in a Linux machine. Problem is that when I use \textbf{Bold} the resulting ...
5
votes
2answers
221 views

LuaLateX: Problem with microtype \textls and center environment

I want to use \textls to reduce letterspacing for citing works/compositions. If I use it in the titlepage inside a center environment it gets a bit messy. As in other examples, it seems like the lines ...
5
votes
1answer
476 views

Using LuaTeX, HSRM beamer theme, fontspec says DANTE font not found. .sty file has no reference to DANTE

I am attempting to modify the HSRM beamer theme found here. After switching from pdftex to LuaTex and purchasing the Flama fonts, I thought I would be ready to go. However, that seems not to be the ...
5
votes
1answer
1k views

Kile and LuaLaTeX

After failing to compile some lualatex-code in texniccenter (see here: LuaLaTeX, TeXnicCenter, AdobeXI and Sumatra), I would like to compile a minimale example in kile. Where I can find the ...
5
votes
1answer
568 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 ...
5
votes
1answer
340 views

Unicode math with amsmath, new error

After applying the most recent ctan updates, the following MWE does not compile with lualuatex. There is an error given ending with \cs_set_nopar:Npx that I can't make sense of. ...
5
votes
1answer
738 views

Can I use Wolfram Mathematica fonts in XeTeX / LuaTeX?

Wolfram Mathematica comes with full (?) set of math fonts. Is it possible to use these fonts in XeLaTeX and LuaLaTeX? I mean something like \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} ...
5
votes
2answers
2k views

luaotfload: how to use font in current directory?

I'd like to use a font in the current directory with luaotfload. I tried to generate the database: OSFONTDIR=$PWD mkluatexfontdb but this gives me endless output of: $ OSFONTDIR=$PWD ...
5
votes
1answer
52 views

Bad weight detection for unit in math mode with siunitx?

Here is a (minimal) code example showing the problem. \documentclass{article} \usepackage{luatextra} \usepackage[bold-style=ISO]{unicode-math} \usepackage[noload=abbr]{siunitx} ...