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)

6
votes
0answers
1k views

Problem with LuaTeX : can't write on the .aux file at second pass [closed]

I use MiKTeX 2.9 for Windows, format Plain eTeX. I have my own macro package which I've used for years, and I tried recently to use it with LuaTeX (included MiKTeX version) in order to use UTF-8 ...
5
votes
3answers
512 views

Changing numbers font features while changing shape

I am writing a document with the main font set up with old numbers, but I would like to have the "normal" style in the tables. This works but one particular table has some of the numbers in italic and ...
5
votes
2answers
2k views

How can one get a list of the available functions in Lua(La)TeX

Is there a list or method to determine a list of the lua functions available/installed? Sofar I could only find the lua source files. Maybe I should write something that search through all the ...
5
votes
3answers
207 views

Color coding a text string with alternating colors

I was wondering if it was possible to color every second letter in a text string in LaTeX. I'm writing a report on decrypting a Vigenere cipher, and have a text string that I would like to have every ...
5
votes
3answers
224 views

Problem printing LaTeX from lua in lualatex

I am having difficulty printing LaTeX from a lua function in a LaTeX document processed with lualatex (version 0.70.2). I have a sample that works (if I remove all newlines from the code) and a case ...
5
votes
2answers
207 views

Hard hyphens in LuaLatex

Why does not the hard hyphen “‑” work in lualatex with the package luainputenc with option utf8? With hard hyphen, I mean a hyphen, which prohibits the line to break directly after it. MWE: \...
5
votes
4answers
835 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 ...
5
votes
2answers
108 views

show content of token register as a string in the document

I'm trying to implement a command that can execute its argument, but also print it. To that end I'm dumping the argument into a toks register and use LuaTex to put it back with inactive catcodes; as ...
5
votes
2answers
625 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 tufte-...
5
votes
1answer
231 views

How can I avoid that a functions argument touches the brackets using unicode-math?

Maybe, I am doing something wrong, but please have a look on the alignment in this formula: % arara: lualatex \documentclass{article} \usepackage{mathtools} \usepackage[% ,math-style=ISO ]{...
5
votes
2answers
561 views

Why does \luaexec work but the luacode environment doesn't?

The following code can be compiled by lualatex (Version beta-0.70.1-2011061410 (rev 4277)) correctly. But if I use \begin{luacode} ... \end{luacode} environment to replace the \luaexec{...} command, ...
5
votes
2answers
133 views

Obtain a TikZ tree from a Lua table/string

Let's consider I have a database where with appropriate passages I obtain the a string that describes a layered tree. Consider the following listing: % !TEX encoding = UTF-8 % !TEX program = ...
5
votes
1answer
499 views

Automatically capitalize macro output if used after a period [duplicate]

Possible Duplicate: Detect beginning of a sentence in a macro for capitalization Is it possible to write a macro that is able to determine if it is used at the beginning of a sentence? For ...
5
votes
3answers
267 views

Automatically fixing catcode output

Using the following macro to redefine catcodes for lua blocks to make programming lua inside tex files more natural has a fault: \def\lua{% \bgroup \catcode`\\=12 \catcode`\{=12 \catcode`\}=...
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
120 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
553 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
413 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
611 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
298 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) X=...
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} % \defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle,Scale=...
5
votes
2answers
797 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
646 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
1answer
83 views

etextools throws error when run with LuaLaTex

I was trying to use the etextools package with LuaLaTeX and ran into the following error ! String contains an invalid utf-8 sequence. l.233 \csdef{ettl@ifdef#2}##1#1##2/End ...
5
votes
2answers
968 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
313 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
248 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
319 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 {\data}[{0,0},{0.1,0.319802645},{0.2,0.6510256205},{0.3,0.993869......
5
votes
1answer
425 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
149 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
537 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
395 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
602 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
80 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
72 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
91 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
121 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
354 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
354 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
468 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
491 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
89 views

datetime package does not work with lualatex in TL 2016

I am getting error compiling using lualatex under TL 2016 installed today when I use package datetime. This MWE works ok under TL 2015. How to resolve this error? It looks like the API to the datetime ...
5
votes
1answer
142 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
108 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
46 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
302 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 ...