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)

3
votes
1answer
371 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 ...
18
votes
3answers
558 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
124 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 ...
13
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
146 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
1k 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} ...
47
votes
4answers
3k 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 ...
13
votes
1answer
296 views

\lastnodetype not working as expected in luaTeX

I'm currently experimenting with the linebreak_filter of luatex and when using it to change/replace the linebreaking algorithm the \lastnodetype command stopped working. A MWE is the following: ...
15
votes
1answer
621 views

LuaLaTeX + fontspec: cannot compare documents with Acrobat

I use the option "compare documents" in Adobe Acrobat Pro a lot to highlight changes between revisions. What I just noticed is, if I compile a simple document such as the one below with LuaLaTeX + ...
9
votes
2answers
854 views

Is lualatex supposed to be a superset of pdflatex? (regarding production of PDF)

In other words, is it a bug if lualatex cannot compile a document that pdflatex can? Based on the answers to this question How to expand TeX's "main memory size"? (pgfplots memory ...
40
votes
3answers
2k views

Bounding box for each letter

How can I take input text and replace each character with a solid (and/or hollow) rectangle representing the bounding box for that character? In the case where two characters are closer together from ...
4
votes
1answer
144 views

Using tex.get luatex function (segfault on Linux)?

Looking at LuaTEX Reference Manual (luatexref-t.pdf), it says: 4.13.1 Internal parameter values For all the parameters in this section, it is possible to access them directly using their names ...
1
vote
0answers
694 views

TikZ Externalize fails with multiple files [closed]

I've recently been having trouble getting TikZ to compile figures. I say recently, because a month ago, I wasn't having any problems. I'm not aware of any file corruption or updates that would have ...
4
votes
1answer
1k views

Strange problem with pgf/tikz auxlock file when invoking tikzexternalize

I'm trying to generate a number of somewhat complicated TikZ based plots using gnuplot's lua/tikz terminal. Things had been working fine last month, but when I needed to update some of these plots ...
1
vote
0answers
495 views

Debugging Lua in LuaLatex with LDT [closed]

LDT is an IDE for lua based on eclipse. It is quite nice and the best free lua debugger I've seen(I've just stumbled upon it the last 2 days or so). It took me a bit to get setup properly but because ...
3
votes
1answer
149 views

Does Lua(La)TeX use external lua or built in? [duplicate]

Possible Duplicate: LuaJIT and LuaTeX There is a JIT for Lua called LuaJIT that has many speed improvements over standard Lua(in some cases up to 60 times). I'm curious if this could be ...
18
votes
3answers
1k views

Hiring someone to help me with LaTeX for my PhD thesis

I do not know whether this is an appropriate question, but I was carrying it around for quite some weeks and now it just has to come out. I am working on my PhD thesis. My thesis will include a long ...
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 ...
-1
votes
1answer
217 views

Possible to run lua script from lualatex after main compilation has been done?

Is there any way to call a lua script automatically immediately after lualatex finishes(and pass the jobname)? Basically I need to do some post process and cannot do it within the same job so I ...
4
votes
2answers
239 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
1answer
307 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 ...
0
votes
1answer
269 views

Lualatex after pdf is generated

Is there any way to use lua functions after the pdf is generated or to force generation of the pdf at some point in the tex file and still use lua? Basically I need to modify the pdf and do this from ...
8
votes
2answers
268 views

Compound representation of numbers. Possible?

I’ve got a Glagolitic font (Epistula Croatica) with letters mapped to numbers and some ligatures programmed. I don’t want to describe the nature of the Glagolitic numeral system here but to present ...
9
votes
0answers
406 views

Contextual Alternatives in LuaLaTeX [closed]

I am creating a blackletter font and would like to use it with LuaLaTeX, which works fine for nearly everything so far, except for using contextual alternative glyphs (in this case, r→ꝛ after round ...
15
votes
2answers
717 views

Footnote numbers in index (e.g., 23n3)

I'm currently weighing indexing options for a book-length project. One of the more surprising hurdles is that there doesn't seem to be a way to create an index (in my case, several indices) that ...
6
votes
1answer
559 views

Precompiled header in Lualatex on Windows?

I am trying to typeset a longer document with lots of packages. Now it seems that pre-compiling the header can speed up the edit-compile-revise cycle quite a bit. I tried to follow the guideline from ...
15
votes
3answers
18k views

'Not element of' in Latin Modern

In the following example, the ∉ symbol does not look good. \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setmathfont{Latin Modern Math} \begin{document} This ...
0
votes
2answers
253 views

Luapath broke after upgrading miktex

I had my miktex 2.9 working fine with lualatex. I went in and somewhere modified some file so that I could add my own module paths. After upgrading some packages using the miktex upgrade tool my latex ...
12
votes
1answer
351 views

Remapping LaTeX symbol to another unicode value

When compiling the following piece of LaTeX code, the ∖ symbol does not show up. \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin Modern Roman} \setmathfont{Latin Modern Math} ...
9
votes
3answers
1k views

Embedding Type 1C fonts using LuaLaTeX

As pointed out in the answer to PDF file size with LuaLaTeX vs XeLaTeX, the difference between using Type 1 and Type 1C fonts in two documents made a big difference in file size. File size is ...
6
votes
1answer
744 views

Switching off ligatures in LuaLaTeX

In order to switch off ligatures for a whole document using LuaLaTeX, I put the following lines into the preamble: \usepackage{fontspec} \defaultfontfeatures{Ligatures={NoRequired, NoCommon, ...
19
votes
1answer
1k views

PDF file size with LuaLaTeX vs XeLaTeX

I have a set of one-page documents written in LaTex. The same file compiled in LuaLaTeX is about 23 times larger than when it is complied using XeLaTex (about 641 KB vs 28 kb). I tried with a couple ...
10
votes
3answers
719 views

Why does hyphsubst not work with LuaTeX?

Consider the following MWE: \RequirePackage[ngerman=ngerman-x-latest]{hyphsubst} \documentclass{scrartcl} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \Blindtext ...
6
votes
1answer
1k views

How to run latexmk with LuaTeX on Windows?

This is a bit of a follow-up question to: Is there latexmk functionality for LuaTeX? I am trying to setup latexmk on Windows 7 together with LuaTeX but it does not work for some unknown reason. ...
4
votes
1answer
204 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 ...
15
votes
2answers
5k views

Difference between setting parindent and hangindent

Is there a difference between setting \parindent to 1em and to setting \parindent to 0em, \hangindent to 1em, and \hangafter to -1 that shows in practical use? The nodes created by TeX are ...
11
votes
3answers
439 views

In which order is Lua Code in LuaTeX being processed

Can someone help me understand the order in which LuaTeX documents are being processed? From what I've understood, the order is the following: the code is being read, top to bottom when the ...
7
votes
3answers
647 views

How to do a 'printline' in LuaTeX

I have just started exploring the world of LuaTeX and wanted to write a piece of code, that prints a name to a new line in the document. \directlua{ for i=1,3,1 do tex.print("FOO") end } which ...
6
votes
1answer
725 views

Letterspacing titles with LuaLaTeX

I'm using LuaLaTeX to write my thesis and I've been learning about typography thanks to Robert Bringhurst's "The elements of typographic style". Problem is I can't replicate the letterspacing used in ...
8
votes
1answer
625 views

Left-middle-right delimiters and unicode-math

Consider the rendering of \middle| in the code below: \documentclass[12pt,a4paper]{article} \usepackage{unicode-math} \setmathfont{xits-math.otf} \begin{document} \[ \left\lbrace p_{i,j} \, \middle| ...
7
votes
3answers
399 views

unicode-math and braces scaling

I am trying to create a minimal lualatex distribution, and hence try to eliminate as much non OTF fonts as possible (I try to get rid of the .afm, .pfb, .map, etc files to save space). Everything is ...
7
votes
1answer
769 views

TikZ Region bounded by points

I have a set of points. I would like to "enclose" the points by a region. Since a picture is worth a thousand words: The dots are the points I want to enclose. I want the ability to control the ...
5
votes
0answers
368 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 ...
13
votes
1answer
296 views

Lua function to see if a macro is defined or not

I need to determine if a TeX macro is already defined or not via a Lua function. Any ideas? function IsTeXMacroDefined(macroname) if defined(macroname) then return true end return false end
6
votes
1answer
391 views

Junicode and Small Caps

How can I use Junicode small caps fonts with LuaLaTeX? The solution posted in textls breaks smallcaps with luatex did not work or I just can't fix it. Example: \defaultfontfeatures{Ligatures=TeX} ...
4
votes
1answer
918 views

Font mixup with Neo Euler and Fontspec

For my document I would like to use Linux Libertine as main font and Neo Euler as maths font. However, there seems to be some conflict with the code I am using. Here is a MWE and its output: ...
9
votes
1answer
283 views

Help with the lua-visual-debug package

The documentation for lua-visual-debug is a little sparse. Can someone interpret the boxes/lines/colors that lua-visual-debug produces?
7
votes
1answer
813 views

How to generate EAN barcodes with TikZ or MetaPost?

I'm looking for way to generate EAN barcodes with LuaLaTeX. I'm aware of this question; the solution to that needs pstricks, which won't work easily with LuaLaTeX (I don't want to install GhostScript ...
5
votes
2answers
370 views

LuaLaTeX + load one particular math symbol from an OTF file

I try to load exactly one symbol from an OpenType Font file and use it in a math environment. However, it seems to me, that I can only use the symbol in "normal" text but not in math mode. Here is a ...