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
0answers
252 views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
5
votes
0answers
43 views

LuaTeX: Line break problem with microtype + geometry (bindingoffset) [duplicate]

I have a problem with the combination LuaTeX + package microtype + option bindingoffset from the geometry package when typesetting the following example: \documentclass[11pt,a4paper]{article} ...
5
votes
0answers
429 views

Unknown TikZ/pgfplots error with external [closed]

I am trying to compile a large document (PhD thesis) and I have no problems compiling without using external, but as soon as I enable that feature, it has problems. So far I haven't found the answer ...
5
votes
0answers
88 views

Error when using selnolig and lua-check-hyphen: attempt to index global 'debug' (a boolean value)

\documentclass{article} \usepackage{fontspec} % required for selnolig \usepackage{selnolig} \usepackage{lua-check-hyphen} \begin{document} Foo \end{document} Using my two favorite lualatex packages ...
5
votes
0answers
305 views

XeLaTeX and LuaLaTeX: which is faster?

Beacuse I typeset in Japanese, I don't use LaTeX and now want to know which compiles faster: XeLaTeX or LuaTeX? Is Lua language allows to make the compile faster?
5
votes
0answers
80 views

Eadui font and luatex [closed]

Eadui, based on the hand of an eleventh-century scribe, is freely available at the Open Font Library. I can use Eadui easily with xelatex, but lualatex produces a puzzling error. For example: ...
5
votes
0answers
160 views

Combining diacritical mark is misaligned with luatex, but not with xetex

Consider the following code: \documentclass{article} \usepackage{fontspec} \setmainfont[BoldItalicFont = {* Semibold Italic}]{Linux Libertine O} \begin{document} \textit{\textbf{V\char"0306}} ...
5
votes
0answers
217 views

Optical weight selection with fontspec

I'm using LuaTeX version 0.76 and fontspec version 2.3c. I have the full family of MinionPro, but fontspec seems not to choose the appropriate optical weight. While it works for the roman font of ...
5
votes
0answers
313 views

LuaLaTeX — too high memory usage [closed]

I've recently made my project buildable under LuaLaTeX. This is a bibliography database project which uses biblatex and biber to compile the database to produce something about 66-paged pdf file. ...
5
votes
0answers
239 views

Will XeTeX or LuaTeX support COLR table in OpenType fonts? [closed]

Announced at the Microsoft //build conference: A data structure, implemented as a new 'COLR' table in OpenType, breaks down the base glyph into a separate set of glyphs, each with its own z-order and ...
5
votes
0answers
308 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. ...
5
votes
0answers
153 views

luatex 0.76 failed to generate some ligatures [closed]

I installed texlive 2013 today. After installation, luatex cannot generate ligatures for "fi fl ff", but it can for `` '' ---. xetex works perfectly here, after update. MWE: \documentclass{article} ...
5
votes
0answers
138 views

Pgfplots closes plot cycle when it should not [closed]

I experience a strange behaviour with pgfplots. I plot a series of datasets with no problems, but suddenly when I plot my last set of data, a line is drawn from the last point back to the first ...
5
votes
0answers
651 views

How to make compilation faster? [closed]

I have a rather large document (about 150~200 pages) with plenty of cross-references. I can, of course, use \include and \includeonly, but I do not only have new chapters, I also use \input for ...
5
votes
0answers
144 views

fontspec features not working correctly in floating environment [closed]

The fontspec properties seem to work not correctly inside a floating environment, if used with LuaLaTeX. \documentclass{article} \usepackage{fontspec} \begin{document} { ...
5
votes
0answers
373 views

Lua techniques and libraries for LuaTeX [closed]

With LuaTeX, it is possible to use many libraries and functions that can simplify various aspects of Lua programming. As Lua as language is quite new for the majority of TeX users, I think it would be ...
5
votes
0answers
863 views

LuaTeX font database cannot be created in MiKTeX 2.9 [closed]

Quite in a hurry I am trying to setup MiKTeX 2.9 on the computer of a friend of mine. We started with the portable version but the problem is the same in the normal install. Before the compilation ...
4
votes
2answers
240 views

Flush latex file io buffers

Is there any way to flush latex's file io buffers. Because of something I'm trying to achieve I have to copy/modify the outputted pdf after it is created(but in the same compile run). The problem is, ...
4
votes
2answers
515 views

Problem with Greek language

I am trying to write an essay in Greek and I type Greek characters but it doesn't compile. I have downloaded both greektex and program Babylon but it seems that I can't make them work.
4
votes
3answers
212 views

LuaLaTeX : write latex “commands” to file

I made a randomly chosen quiz machine using LuaLaTeX and beamer for audience part that produce a pdf containning one frame per question, one slide per second to show the count down: it make a pdf with ...
4
votes
3answers
123 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 ...
4
votes
2answers
187 views

plain TeX error. Undefined control sequence. \pgfutil@

I'm trying to compile the fix mentioned by egreg in this thread: Strange behaviour with PGF/TikZ and Plain TeX output routine Here's the code: \input pgf \catcode`@=11 \newbox\pgfutil@@Output@Box ...
4
votes
1answer
1k views

Using microtype letterspacing with LuaTeX, Version beta-0.70.2-2012062812

Does the letterspacing (and tracking) options of microtype not work with the latest version of LuaTeX? When I try: \documentclass{article} \usepackage[no-math]{fontspec} ...
4
votes
1answer
182 views

LuaLaTeX from texlive-2014: Command \textsubscript unavailable in encoding EU2

Here is a minimal example of a file that lualatex from texlive-2013 compiles fine: \documentclass[11pt]{article} \usepackage{fontspec} \begin{document} X\textsubscript{Y} \end{document} If I try to ...
4
votes
2answers
166 views

How to debug LuaLaTeX no longer finding ttf font

I just updated texlive and now LuaLateX no longer finds two ttf fonts situated in the same folder as the .tex file. Before I updated it all worked fine. Clumsy as I am I was having a latexmk session ...
4
votes
2answers
714 views

MiKTeX where do I specify command line options?

I'm using MiKTeX 2.9 and I want to specify the command line option --shell-escape. The reason for this is that I'm trying to use an eps file and I get the error xxx-eps-converted-to.pdf' not ...
4
votes
3answers
567 views

Create macros inside Lua block

How can I create a macro (re)definition directly inside a LuaTeX block? e.g., \directlua{tex.print("\\mymacro{test}")} would be the same as \mymacro{test} in TeX?
4
votes
2answers
8k views

Error in fontspec.sty

I downloaded a template for CV and one of the requirements was installation of fontspec.sty. Now when I compile the file the code file of fontspec.sty pops up in a new tab in TeXnicCenter and it ...
4
votes
1answer
209 views

How to style all instances of a certain word?

In my document I want to change the colour of every instance of the * character to red. How can I style every instance of a single word or character without interfering with the document's other ...
4
votes
2answers
60 views

Delayed expansion of StrSubstitute argument with active characters

This is an extension of my previous question. The accepted answer provided a way for me to delay expansion of a marked-up easylist list until the string was processed inside the environment. I'm ...
4
votes
2answers
1k views

Latex command for unfilled \bigstar

\bigstar produces a black star. What is the LaTeX command for white or unfilled \bigstar? The unicode-math package has a command \bigwhitestar, but I am not able to use it in the usual way. When I ...
4
votes
1answer
1k views

error using special characters in in biblatex with LuaLaTeX

I am using LuaLaTeX and biblatex which the biblatex manual says should be able to compile utf. At the bottom of this message is a minimal non-working example. In the final PDF it just deletes all the ...
4
votes
2answers
451 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, ...
4
votes
1answer
445 views

Does lualatex embed fonts for compatibility?

I am using fonts installed on my computer in LaTeX document as \documentclass{article} \usepackage{fontspec} \newfontfamily\fontx{Ubuntu} \begin{document} The default font {\fontx New font} The ...
4
votes
3answers
238 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 ...
4
votes
1answer
311 views

Luatex os.execute not working

I've hooked luatex's stop_run callback so I can do some processing on the output pdf after it is generated. To process the pdf I need to call os.execute. When doing so I an error saying "All command ...
4
votes
2answers
510 views

LuaLaTeX: mkluatexfontdb does not include Type-1-fonts ( = *.pfb-files)

I'm running texlive 2011 on a Linux machine. Years ago I bought some Type 1 fonts, namely Rotis. They have been installed properly and Libre Office e.g. can print them. But running mkluatexfontdb -v ...
4
votes
4answers
2k views

How to get \copyright when mixing T1 fonts and fontspec?

This example: \documentclass{minimal} \usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage[osf]{mathpazo} \begin{document} \copyright 2011 \end{document} Gives: ! LaTeX Error: Command ...
4
votes
1answer
162 views

Pdf bookmark error in beamer

Hi. I've compiled a Persian language beamer file by both luapersian and persian babel package using LuaLaTex, and in both I've the same problem in pdf bookmark as shown in the figure (some strange ...
4
votes
2answers
365 views

LuaLaTeX: german special character ß with `newpxtext`

I use the font Palatino from the package newpxtext in combination with LuaLaTeX. With this package it is not possible to set the german special character ß directly: % Magic comments for TeXstudio % ...
4
votes
1answer
110 views

lualatex keeps tex source open on error

I edit LaTeX source in emacs and invoke lualatex with compile-command. If the source contains an error the compilation stops and I see the reason in the *compilation* buffer. When I go to fix the ...
4
votes
1answer
96 views

Good lua code in .tex doesn't work in .sty?

I have some luacode in a .tex file that works fines, but does't in a .sty file -- with this error message : Runaway argument? ! File ended while scanning use of \luacode@grab@lines. \par ...
4
votes
1answer
82 views

Randomizing a given text

It sounds stupid, but it's useful to me. I want to randomize words. To input a text, and to get an output with the same words, in random order. I have no idea how to begin with, though. Therefore I ...
4
votes
1answer
194 views

Use specific non-unicode character in lualatex

I've looked everywhere for an answer to this question, but none could answer this specific one: I have MinionMath font (from typoma.com, MinionMath-Regular.otf) and I want to use unicode f3a0f (under ...
4
votes
1answer
160 views

how to pass the content of the TeX variable to Lua

How can I pass the content of the TeX variable \jobname to a Lua variable? (I am using LuaLaTeX with the luacode package.)
4
votes
1answer
172 views

Compilation sequence with lualatex

I'm looking to make automatised table using lualatex (I just want to make some conversion and be able to modify the input easily). But I can't find how the code would be parsed and compile by ...
4
votes
1answer
734 views

Lualatex, fontspec and externalized tikz problem in MacTeX

To enable faster compilation of large documents I'd like to externalize tikz pictures. I also have to use lualatex and fontspec. EDIT: After further testing it seems that this is a problem only when ...
4
votes
2answers
297 views

Accessing MySQL or SQLite from Lua(La)TeX

I thought it would be possible to access MySQL or SQLite from Lua(La)TeX, but couldn't google up anything on the topic. Please give me pointers to: Snippets / Examples / Documentation on that, if ...
4
votes
1answer
226 views

How hard is it to use typo-dir.lua in LaTeX?

I tried to use typo-dir.lua from ConTeXt distribution in LaTeX but I could not. I searched all context sources and I added all missing functions but still it did not work. Is it possible to use this ...
4
votes
3answers
319 views

pagebreak in ledpar (eledpar)

I am sort of restating this question -- however only sort of. I will (1) describe a problem, (2) assume something about the functions of ledpar, and (3) ask a question. 1. Problem I am typesetting ...