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
3answers
1k views

LuaTeX cyrillic hyphenation problems

I am trying to use LuaTeX (LuaLaTeX) in MiKTeX 2.9 and I'm stuck with getting it to load cyrillic hyphenation patterns. I'm quite new to LuaTeX, so maybe there's something special about hyphenation ...
5
votes
2answers
117 views

Iterate over all the entries in a bib file

I have a big bib file that contains a lot of entries such that most of them contain a note filed. I would like to automatically iterate over all the entries and for each entry insert into the document ...
5
votes
2answers
545 views

Using LuaLaTeX and SQLite3

I am trying to access SQLite databases from LuaLaTeX but am not able to load an installed lsqlite3 package. Here's what I tried so far: Took a brandnew Xubuntu 14.04 installation Installed a ...
5
votes
2answers
402 views

Using Iwona as a math font with lualatex

I would like to use Iwona as a math font, but this setup doesn't get all math symbols right. (Multiline bracket, the sum symbol, etc.) \setmathfont{Iwona} \setmathfont[range=\mathup] {Iwona} ...
5
votes
2answers
596 views

Access defined Lua global variables in TeX macros‏

I am a newbie in LuaTeX, but it is very interesting. Sometimes, I need process some macro arguments by Lua code, so it will be useful that if we can access the variables defined in Lua. An example: ...
5
votes
1answer
292 views

Read single numbers from data file (LuaLaTeX)

Is it possible to read a number from data files? How to read a file with luatex I found the example above but I don't need the whole line at once. I need somthing like: read(file) get(A) get(B) ...
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
786 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
638 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
929 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
305 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
237 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
314 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
415 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
532 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
390 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
2answers
594 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
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
74 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
2answers
57 views

How do I get the XITS font to work with unicode-math and hepnames in lualatex

I have been trying to get the XITS font, hepnames and unicode-math to behave correctly together for quite some time now, but I have been unable to find a solution to my problem. Perhaps, I have been ...
5
votes
1answer
90 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
102 views

How to set Overleaf to compile with `lualatex --shell-escape <file>`?

I'm trying to use the solution given by the accepted answer in How to have \psframe working with LuaLatex? but I don't know how to enable the option --shell-escape there. Overleaf explains that it ...
5
votes
1answer
229 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
340 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
350 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
456 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
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
487 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
132 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
105 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
292 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
106 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
198 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
199 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
760 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
455 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
164 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
766 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
365 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
383 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
345 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
121 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
105 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
70 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
134 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 ...