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
211 views

Unmodified Source Code

I have a macro that helps me print out(or do anything really) source code in various ways using lua: see: `xparse verbatim` with `newline` The macro is \def\SourceCode{% \begingroup% ...
6
votes
2answers
2k views

Less vertical space in frac

I'm using unicode-math in lualatex with the Cambria Math fonts. Compared to Computer Modern math, there is too much vertical space between fractions. Is there a way I can achieve my adjustment without ...
3
votes
2answers
328 views

How to stop a block of code from being parsed?

I would like to pass some latex code to lua directly without it being parsed: \directlua{ PrintPrettyLatexCode("LATEX CODE GOES HERE!") } BUT latex tries to parse the "LATEX CODE GOES HERE!". I ...
6
votes
1answer
411 views

Invisible math characters with unicode-math and ntheorem

When compiling this code with lualaTeX (from TeXLive 2011), \documentclass{minimal} \usepackage{unicode-math} \usepackage{ntheorem,thmtools} \setmathfont{xits-math} \makeatletter ...
5
votes
2answers
545 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
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. ...
3
votes
2answers
192 views

Why does using Greek break em-dashes?

I know the conversion of --- to an em-dash is an on-going problem with lualatex. But I don't understand why using Greek in one font should (afterwards) break conversion of 3 hyphens to an em-dash in ...
4
votes
2answers
882 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 ...
6
votes
2answers
4k views

Using macros in \DeclareGraphicsRule statement using shell command

I am currently working on a document which i am compiling under both linux and windows. As one of the images I use is a tif image, I'd like to have lualatex converting it on-runtime to a format it ...
4
votes
1answer
543 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 ...
10
votes
1answer
296 views

How to report a bug in LuaTeX? [closed]

I think I found a bug in LuaLaTeX. I use the current version from TeX Live 2012. lualatex --version This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012) When I compile the following ...
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} ...
3
votes
1answer
170 views

smashoperator produces black line with Linux Libertine O

When I use fontspec to set the main font to "Linux Libertine O", the smashoperator command (and also mathclap and friends) produce a black line above the smashed subscript (with luatex). ...
3
votes
1answer
2k views

How to compile properly a document using “fontspec” package?

How to compile properly a document using fontspec package? Example code (15.1. XeTeX @ LaTeX-wikibooks.pdf) \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} Lorem ...
2
votes
0answers
116 views

Understanding some pieces of luatex the program [closed]

I'm looking forward the implementation of a tex.execute() command on the lua side in luatex. But it needs patching luatex the program and I have a dream: providing the patch... :) As I have nearly no ...
6
votes
1answer
129 views

Token expansion with the token library

I don't understand how the token library of luatex works. \documentclass{standalone} \begin{document} \def\mymacro{A} \directlua{% t = token.create ('mymacro') token.expand(t) ...
4
votes
1answer
300 views

accessing other lua libraries in lualatex (MiKTeX)

I would like to access the other lua libraries e.g. luagraph in lualatex. If use: require("luagraph") I get a complaint about permission denied, which as far as I could determine relates to ...
9
votes
3answers
283 views

Using \input|texlua… to emulate \directlua in pdfTeX

When --shell-escape is enabled, pdfTeX allows to run external programs and input the result expandably with \input|"...". Together with the Lua interpreter texlua, this could be used to provide a ...
13
votes
1answer
3k views

Migrating from pdfTeX to LuaTeX: Problems with reproducing output for legacy projects

I'm currently analyzing and evaluating a migration process from pdfTeX to LuaTeX for our current TeX workflow. With LuaTeX being a fork of pdfTeX and packages like luainputenc at hand it seemed ...
10
votes
2answers
153 views

^^M garbles my terminal output

Contrarily to pdfTeX and XeTeX, which send ^^M to the terminal for the character 13, LuaTeX sends the character 13 itself. This garbles the output of my terminal (bash under Ubuntu 10.04). ...
4
votes
1answer
304 views

Get back “old” math font in LuaLaTeX+beamer

Updated my tlmgr install (and all packages I have installed today) earlier today, and something changed in the font loaded by unicode-math, which I can't figure out of. The preamble I've been using ...
6
votes
1answer
191 views

\scantokens in LuaTeX

The eTeX \scantokens command appears to work differently in LuaTeX than it does in eTeX, pdfTeX and XeTeX. Compiling the following test file with any engine other than LuaTeX performs \show+, which ...
12
votes
1answer
2k views

Getting started with Greek and Hebrew in LuaLaTeX

I am typesetting a 17th century English theological document that uses a smattering of Greek and Hebrew. I am using LuaLaTeX with TeXShop on the Mac. Is LuaLaTeX up to the task? If so what are the ...
9
votes
1answer
1k views

LuaTeX cannot find existing font

My Fedora 17 LuaLaTeX (2012) system just keeps complaining about some particular (of course existing) font not existing. It can't spit out any PDF from a TeX file using that font. This is the error I ...
3
votes
1answer
186 views

combine macro arguments with text

I have a macro where I need to combine one of it's arguments with text to form a string that is used in lua. \newcommand{\mymacro}[1]{\directlua{ myfunc("#1 4") } if I call \mymacro{alpha} I ...
16
votes
2answers
2k views

Create a LibreOffice spreadsheet from luatex

After reading this amazing answer, I'm wondering if it possible to do the same thing but the other way round, that is create a LibreOffice spreadsheet from luatex, exporting data from the tex file to ...
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 ...
0
votes
0answers
66 views

How can I debug this problem with math typesetting? [duplicate]

Possible Duplicate: problem compiling some 'math' using LuaLaTeX While trying to write an equation it seems that the square root does not like particular elements. I tried to ...
5
votes
1answer
486 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
261 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 ...
8
votes
2answers
423 views

Get value of macro from lualatex directly

I need to get the value of a macro from lualatex directly and return it in a function call function GetMacroValue(macro) return macro.value end I've tried various things such as using tex.print ...
3
votes
2answers
1k views

Specifying an oldstyle number font with fontspec

I have some trouble setting oldstyle numbers in my document. I load the font (in this case an early palatino) and define the smallcaps font via fontspec. But the oldstyle numbers are in the smallcaps ...
13
votes
1answer
319 views

Ligature suppression algorithm fails if the word in question contains an Umlaut (dieresis) before the ligature

This is a follow-up posting prompted by Taco Hoekwater's recent excellent answer to a question I posed a few months ago. It concerns the use of the ligature suppression algorithm for words (mainly, ...
14
votes
1answer
730 views

How do I combine fonts for different scripts?

I want to combine Helvetica World (for roman, cyrillic, greek and arabic) and Hei Std (for simplified chinese) in one document with LuaLaTeX. Hei Std probably hasn't all the glyphs from Helvetica ...
6
votes
3answers
839 views

lualatex and line breaks after em-dashes

I’ve just installed TeX Live 2012. As mentioned elsewhere on this site, the release history explains that “the parameter \XeTeXdashbreakstate is set to 1 by default, for both xetex and xelatex. This ...
53
votes
1answer
840 views

The ^^ notation in various engines

Basically, how does the ^^^... notation work in LuaTeX and XeTeX, exactly? In 8-bit TeX engines (recent TeX, eTeX, pdfTeX, at least), two consecutive identical catcode 7 characters (typically ^), ...
3
votes
1answer
907 views

problem compiling some 'math' using LuaLaTeX

Have a couple of documents with the following sort of construct: \begin{equation} y=\sqrt[n]{\prod_{i=1}^{n} x_{i}} \end{equation} Compiles/renders fine using 'standard' LaTeX, but fails miserably ...
6
votes
1answer
210 views

How to set a small linespace even with a very big letter in the text

I use a font (Aquiline), that has only a few characters, most notably the letter "A", which are quite huge in height. I use LuaLaTex with the fontspec package. So if I use this font and a capital A ...
8
votes
1answer
678 views

lualatex: smallcaps and microtype don't work together

Compiling the following MWE with lualatex doesn't produce small caps. There are no font warnings. \documentclass{article} \usepackage{fontspec} \newfontfeature{Microtype}{protrusion=default, ...
17
votes
2answers
432 views

Issues with TeX sub-formula formatting

As generally acknowledged TeX offers superb formatting capabilities for math in an automated fashion. Nevertheless there are some areas with clear deficiencies that one either has to accept or ...
28
votes
2answers
1k views

Suppress certain ligatures generally

Whether or not certain ligatures should be used (if available in a font) is a least in theory depending on the language used. For example traditional German texts would not have an "ffl" ligature but ...
10
votes
1answer
514 views

When using more than 16 math alphabets, \mathtt uses italic font

I know that in TeX, you can only use 16 math alphabets but XeTeX extends this so I was curious to enlarge the number of my math alphabets and I had to redefine some internals of LaTeX. Here is my ...
4
votes
1answer
422 views

lualatex and lilypond/music notation

Is there any easy way to embed musical notation into lualatex projects without too much hassle? (hopefully complete transparency) I was thinking something like lilypond without having to do multiple ...
20
votes
3answers
650 views

Reviewing hyphenations with LuaTeX

This question led to a new package: lua-check-hyphen I wrote a question (Accessing pointers in LuaTeX) hoping it would lead me to a way of reviewing the hyphenations with LuaTeX, and without ...
7
votes
1answer
135 views

Accessing pointers in LuaTeX

This code writes the subtype of disc nodes to the log file. \documentclass{minimal} \usepackage{fontspec} \directlua{ show_hyph = function(head) while head do if head.id == 0 or head.id == 1 ...
29
votes
2answers
3k views

Insert libreoffice table as input

This question led to a new package: odsfile Suppose you have an localc spreadsheet myspread.ods and you want to insert the content of the range H4:I40 as a table into your latex document. I ...
14
votes
0answers
1k views

Industrial schematics [closed]

I'm investigating if it is possible to generate electrical schematics for industrial machinery with the LaTeX ecosystem. They are quite different from electronic circuits because are developed ...
2
votes
2answers
152 views

luatex complains Cannot open the file ~/.config/font-manager/local.conf

From TeXLive-2011: luatex complains: ! LuaTeX error ...1/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua:525: Cannot open the file $HOME/.config/font-manager/local.conf where $HOME is the path ...
3
votes
1answer
2k views

XeLaTeX, fontspec, Arial (TTF), umlauts?

How do I get german umlauts in a PDF using Arial TT-Font and XeLaTeX or luaLaTeX? The following example produces a box instead of "ü": \documentclass[12pt]{article} \usepackage[utf8]{inputenc} ...
48
votes
4answers
4k views

Abandon LaTeX2e for LaTeX3 or LuaTeX

I think my question is: Should I abandon pdflatex, possibly for xetex or context, and a TeX/LaTeX based macro writing approach, possibly for a LuaTeX or LaTeX3 based approach? Possibly relevant to ...