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)

8
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
158 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
1k 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
492 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
406 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 ...
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 ...
8
votes
2answers
351 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
873 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
303 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
638 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
787 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 ...
52
votes
1answer
776 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
857 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
202 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 ...
7
votes
1answer
624 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
419 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
477 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 ...
3
votes
1answer
378 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
567 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
298 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
859 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
146 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
733 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
500 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
222 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
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
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 ...
0
votes
1answer
271 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
409 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
738 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
565 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
19k 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
255 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
355 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 ...