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)

4
votes
1answer
294 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
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
2answers
277 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
109 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
2answers
419 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
2answers
482 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
1answer
71 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
178 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
136 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
136 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
135 views

Pdf bookmark error in beamer [closed]

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
1answer
641 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
260 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
221 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
308 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 ...
4
votes
1answer
344 views

subscript is set too low in math-mode with xits-math

I use unicode-math with xits-math as math font and asana-math for math double-struck symbols. I compile with lualatex, and my packages are from TeXlive 2011. Now, when use asana-math mixed with xits, ...
4
votes
1answer
203 views

Remapping fonts in unicode-math has no effect on e.g. `\mscrC`

For some reason, in this setup, \mathscr{C} and \mscrC produce different results: \documentclass[12pt,a4paper]{article} \usepackage{unicode-math} \unimathsetup{math-style=TeX} \setmathfont{Cambria ...
4
votes
1answer
927 views

LuaLaTeX and algorithm2e

The algorithm2e package seems to be not compatible with LuaLaTeX. For example, compiling the following code produces an error. \documentclass{article} \usepackage{fontspec} \usepackage{algorithm2e} ...
4
votes
1answer
550 views

(small) incompatibilities between LuaTeX+hyperref (pdftitle)+accents

The following ECM works fine when compiled with XeLaTeX, but if compiled with LuaLaTeX there is a minor problem : accented letter produces garbage in the pdftitle — but it's fine in the document . I ...
4
votes
1answer
63 views

Symbols for left and right limits

I am using lualatex, are there symbols for left and right limits, like small "-" and "+" to put above the numbers? For now I use \documentclass[a4paper,12pt]{book} \usepackage{fontspec} ...
4
votes
1answer
100 views

PDF/X-1a on TeX Live 2014 for publishing with POD lightining source

I am trying to get a PDF/X-1a compliant PDF for sending the pdf to Lightning Source for publishing books. I searched and found the following post and tested it PDF/A with hyperref on TeX Live 2013 ...
4
votes
1answer
34 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 ...
4
votes
2answers
45 views

Updating glue after changing width of a box

I need to change the width of a saved box and want it to look as if it was constructed at that width. For example, this centers A in a 4cm wide box: \hbox to 4cm{\hfil A\hfil} But this centers B ...
4
votes
1answer
130 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 ...
4
votes
1answer
151 views

Changing Math Fonts with luaotfload in Plain TeX

Changing Math Fonts with luaotfload in Plain LuaTeX Without a major exposition on all the options tried, here is the short of it: Using Tex Live 2013, LuaTeX, plain.fmt and luaotfload.sty, ...
4
votes
1answer
149 views

Pass an integer value to TikZ in LuaLaTeX

I want to draw a rectangle with \luacode. For rectangle points, the coordinates values will be taken from code. I try the following code. For rectangle, points are defined as '(0,0) and (1,1). But i ...
4
votes
1answer
136 views

Error-handling in next-generation TeX tools

For many beginners (and many with more experience), the biggest obstacle to using LaTeX is the difficulty of figuring out what is causing an error. A message about something not being \defed, for ...
4
votes
1answer
88 views

Quotes are not formatted correctly

Here is data about my problem that I consider relevant: a) I'm using lualatex b) Here is my prelude: \documentclass[b5paper,twoside]{memoir} \usepackage{graphicx} \usepackage{polyglossia} ...
4
votes
1answer
193 views

Tracing group-level and position in LuaTeX

I am absolutely new to LuaTeX and I have few questions about it. First of all I learned that in LuaTeX it is possible to trace all TeX tokens with `token filter' callback. Is it possible to get some ...
4
votes
1answer
214 views

LuaTeX renames the .log, .aux, etc [duplicate]

When I ran LuaTeX on my resume, it renamed all the files produced from pdfing the file. This is the first time it has every done this. The file was called resume and it renamed the pdf texput.pdf. ...
4
votes
1answer
144 views

Can LuaTeX do something to alter linebreaks inside math inline automatically?

This is kind of a follow up to this question. Consider the sample code: \documentclass{minimal} \begin{document} A text with an inline equation which is broken in to two parts but is not wanted right ...
4
votes
1answer
324 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 ...
4
votes
1answer
1k views

combine two sans fonts for xelatex/lualatex

I'm still finding my way around latex, so forgive me is this is an obvious question... I have two sans serif ttf fonts available at my workplace that I want to use in xelatex or lualatex. The serif ...
4
votes
1answer
487 views

Follow up question: TeX accents do not seem to work with fontspec and xe/lua/latex

This is a follow up to this question. How would the same look for the dot above? That is, what's the standard definition for \. ? Or does somebody in the meantime know a better solution to the whole ...
4
votes
1answer
21 views

autoref to dmath (from breqn package) generates wrong link text

In the following minimal example, what is wrong with my dmath equation? Why does hyperref call it a Figure, while autoref gets the link text correct for an equation defined with \begin{equation} ...
4
votes
1answer
130 views

LuaLatex and MathTime Professional 2 (mixing font-types)

I'm trying to use MathTime Professional 2 (mtpro2) and Times New Roman (the TrueType fonts bundled with Windows) with LuaLatex as follows: \documentclass{article} \usepackage{fontspec} \setmainfont{ ...
4
votes
1answer
41 views

unwanted double width space before inline listings when using luatexja-fontspec

I am seeing an extra big space (which looks like double width space) in my document before inline listings bits: MWE: \documentclass[]{article} \usepackage{fontspec} \usepackage{listings} ...
4
votes
2answers
80 views

minted Perl with dollar symbol

I'm using minted to display some Perl, however the "unmatched" '$' in it is breaking compilation. Escaping it with a '\' results in the \ being displayed with the rest of the code block. Is there a ...
4
votes
3answers
92 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 ...
4
votes
1answer
243 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 ...
4
votes
1answer
183 views

LuaLaTeX - Linux libertine (math and pgfplots)

I have some problems using Linux libertine font within equations or pgfplots and tried this answer but it doesn't work. \documentclass{article} \usepackage{fontspec} \usepackage{pgfplots} ...
4
votes
1answer
100 views

How do I use the kpse library to get the value of $TEXMFHOME?

Inspired by some recent experiments on the subject, I'm trying to use texlua to automate the installation, done by multiple users, of a complex environment (multiple packages, classes and formats) on ...
4
votes
1answer
252 views

Problem with font in theorem environment

I use LuaLaTeX, fontspec and XITS maths font. Additionally, I had a problem with theorem environment and long headers so I based my solution on this. My problem is that I now get a different font for ...
4
votes
1answer
211 views

fontspec-color not working correctly with microtype package [closed]

If I use the fontspec package together with the microtype package, the color-feature of fontspec does only colarize the last line of the paragraph instead of the whole paragraph, as the grouped ...
4
votes
1answer
156 views

Biolinum font bold 11pt issue in tableofcontents [closed]

I found an issue in adopting the Biolinum font, bold face at 11pt, in the tableofcontents. At 10pt or 12pt it works just fine, indeed. But I need to use 11pt. Compiled indifferently under LuaLaTeX ...
4
votes
1answer
255 views

Specify timezone for \today and \currenttime

Is there a way I can specify the timezone LaTeX should use when printing the \today and \currenttime (or the datetime package in general)? I need this because travisCI does build my PDF automatically ...
4
votes
1answer
51 views

Command doesn't expand into other commands after string substitution

The MWE should explain it all (use LuaLaTeX): \documentclass[11pt]{memoir} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage{xstring} \usepackage{easylist} \begin{document} ...
4
votes
2answers
70 views

eledmac/eledpar/LuaTeX: right alignment of RTL text paragraphs in pages enviroment

I have a LuaTex + eledmac + eledpar setup for critical editions in syriac and english (on facing pages). Strangely, the syriac text, which is running RTL, is not aligned on the right, but on the left ...
4
votes
1answer
102 views

Problem with a Lua function in a \foreach loop

I have written a Lua function to position dates in a timeline that I am drawing with TikZ. The function seems to work, but when I use it in a \foreach loop I get the following error: ! LuaTeX error ...
4
votes
1answer
611 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 ...