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}.
14
votes
6answers
924 views
\tableofcontents encoding issue with lualatex
I have a issue when trying to generate table of contents with lualatex in russian. Following example fails to build with ! Undefined control sequence.
\contentsname ->{\cyr \CYRS \cyro \cyrd \cyre ...
14
votes
4answers
513 views
How to suppress the operation of a luatex-defined macro on a string if the string is part of macro or a label
I'm working towards creating a lualatex-based package that lets users automatically suppress the use of ligatures (for now, ff, fi, fl, ffi, ffl, and ft) for selected words. (For background see this ...
14
votes
2answers
1k views
Lualatex: Font table with examples
I wanted to create a table of the fonts on my machine with short examples of each. So I got the function below and tried to modify to print the font in its typeface. (LuaLatex)
...
14
votes
3answers
580 views
Will LaTeX3 have proper support for hooks? Does LuaTeX?
Tex has powerful support for extensions triggered by events happen in generating output, by running one of six token lists appropriately:
\everycr \everydisplay \everyhbox \everymath \everypar ...
14
votes
2answers
375 views
In LuaLaTeX, how do I pass the content of an environment to Lua verbatim?
In LuaLaTeX, how would I go about capturing the content of an environment for (verbatim) processing by Lua? For example, consider something like
\begin{foobar}
Hello {World}
\end{foobar}
I'd like ...
14
votes
3answers
424 views
Check if LuaTeX is running
I want to check if my tex document is compiled with LuaTeX (or any other Lua TeX compiler).
The simple approach from the TeXbook is to check the \directlua macro against \@empty, like
...
14
votes
1answer
221 views
\show for Lua commands
TeX (and all newer engines) has the primitive \show which helps me probe macros, and most of the time is enough to understand/remember the implementation (rather than having to go back to the source ...
14
votes
1answer
225 views
Analog of \pdfelapsedtime for LuaTeX and XeTeX
In pdfTeX, the \pdfelapsedtime primitive gives access to the time since this pdfTeX run was started, in "scaled seconds" (1/65536 seconds). This is useful to benchmark code: repeat it many times, and ...
14
votes
2answers
273 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 ...
14
votes
1answer
253 views
LuaLaTeX: use or don't use classical font packages?
In the lualatex-doc I am reading under "switching from LaTeX to LuaLaTeX":
Don’t load inputenc, just encode your source in UTF-8.
Don’t load fontenc, but load fontspec.
Don’t use any package that ...
14
votes
2answers
330 views
Bar plots in sans serif font
I want to typeset my bar plots with a sans serif font (using LuaTeX). I tried many options that I found searching the manual and the internet. None of them solved my problem---using different fonts ...
14
votes
1answer
186 views
Prevent LuaLaTeX from splitting umlauts
Here's a minimal example:
\documentclass{minimal}
\usepackage{fontspec}\setmainfont{Cambria}
\begin{document}aöz\end{document}
Compiling this into a PDF using lualatex and extracting the text using ...
13
votes
4answers
422 views
Combining \ifxetex and \ifluatex with the logical OR operation
I want to write in the preamble of a LaTeX document code that should be take into account by different compilers when the document is typeset. There are fragments that should be used:
only by ...
13
votes
3answers
330 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 ...
13
votes
4answers
660 views
How do I get a list of all font features supported by current font
With LuaTeX, how do I get a list of OTF features supported by the current font in use printed?
For example, with otfinfo, I can get a list of OTF features by otfinfo -f font_file_name. Can I do ...
13
votes
1answer
589 views
TeX accents do not seem to work with fontspec and xe/lua/latex
I am using Minion Pro as mainfont and it does not have in its glyph table the character U+1E47 Latin small letter with dot below which I need only once in my document. Rather than change to another ...
13
votes
1answer
656 views
How to set expansion and protrusion for TeX Gyre Pagella using LuaLaTeX?
For my documents, I have often used the mathpazo package combined with microtype and have found the result to be really good. Because now I need to create PDFs which contain a variety of diacritics ...
13
votes
1answer
214 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:
...
13
votes
3answers
925 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 ...
13
votes
3answers
769 views
Reference about “modern” LaTeX usage for scientific works
I am looking for a reference (book, free pdf, website) that would summarize the working of "modern" LaTeX for scientific works (I'm writing my master thesis).
I know and have been using LaTeX for ...
13
votes
1answer
181 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
13
votes
1answer
488 views
duotone PDF files with lualatex
How to provide duotone PDF files for publishers who require it?
I have a document with images (graphicx \includegraphics), TikZ diagrams, compiled with lualatex.
So, if I understand it right, there ...
13
votes
0answers
586 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 ...
13
votes
0answers
366 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 + ...
12
votes
3answers
267 views
How can I access a specific glyph in LuaLaTeX/Fontspec?
The OTF version of Minion Pro contains several Dingbats glyphs I would like to access. Some of them are not unicode, so I can not just copy the specific unicode character I want to access into my text ...
12
votes
3answers
494 views
Linux Libertine: Change Numeral Set
I am using the Linux Libertine font for my document. The font provides different numeral sets, "normal" numbers which are all the same height, and medieval/minuscle numbers with varying height.
By ...
12
votes
3answers
1k views
Which is the best editor for LuaTeX?
Many (La)TeX editors support the LuaTeX engine. However, which one offers the best support for writing LuaTeX? Which editor or plugin supports features such as syntax highlighting and auto-completion ...
12
votes
1answer
190 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}
...
12
votes
1answer
440 views
clash between mathtools and unicode-math
Lately I started looking into LuaTeX and I must say I’m growing fond of it with every feature I discover. So I decided to transfer my pdfTeX preamble to LuaTex checking which packages still work and ...
12
votes
1answer
214 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, ...
12
votes
1answer
643 views
How does fontspec select fonts “by name”?
When loading a font by name, what is the search mechanism being used? How is the matching done? (It's marked TODO in the documentation)
I have many problems, for example: a "Hoefler Text Engraved" ...
12
votes
1answer
248 views
Towards a \ucshape and \textuc command for uppercase text (XeTeX, LuaTeX)
While we have \textit and \textsc, \itshape and \scshape etc., there's no \textuc and \ucshape to typeset its argument in uppercase. There is \MakeUppercase, but -- as uppercase is not a font style -- ...
12
votes
2answers
661 views
Parsing files through LuaTeX
This question has two parts:
How would one generally parse a file with LuaTeX, assuming the file only holds data
that is delimited either by spaces, commas or semicolons.
How would you parse the ...
12
votes
1answer
876 views
Installing Lua Modules for use in LuaLaTeX
I've done all of the searching that I can, and I think I've read the right answer, but am too dumb to know that I read it.
I can't seem to figure out the magic tricks to get Lua modules, installed by ...
11
votes
4answers
431 views
Is it possible to run LuaTeX from a USB flash drive
I am looking for ways to install and run LuaTeX on a USB flash drive (Windows operating system).
11
votes
3answers
3k views
How to set-up LuaTeX, Microtype, with Minion Pro, Myriad Pro
Since recently I am using LuaLaTeX with the most recent beta version of Microtype, along with the fonts Minion Pro and Myriad Pro. In the manual of Microtype it says:
Currently, this package ...
11
votes
2answers
1k views
Selecting main math font in LuaTeX?
I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX. I’d hoped that something like the following should work:
\documentclass{minimal}
...
11
votes
2answers
235 views
How to use OpenType fonts with plain-LuaTeX?
Is it possible to have OpenType fonts with LuaTeX using the plain format?
I have tried:
\font\test="texgyrepagellaregular"\test test\bye
but I get ! Font \test=texgyrepagellaregular not loadable: ...
11
votes
3answers
1k views
How to use xindy with XeTeX/LuaTeX?
According to Xindy revisited: Multi-lingual index creation for the UTF-8 age (TUGboat), “if one has a raw index file that was produced by [XeTeX], one can use xindy; it will ‘just work’.”
...
11
votes
2answers
814 views
How do I get a list of all available fonts for luaotfload?
luaotfload uses an internal database that gets updated with mkluatexfontdb. So it knows about a lot of fonts installed on my computer. How can I query this database? Something like
luatexfontdb ...
11
votes
3answers
412 views
How to display only certain lines of a paragraph?
From reading Knuth's TeX Book (Chapter 14 How TeX Breaks Paragraphs into Lines), I understand that entire paragraphs are read in and then "massaged" by the "line-breaking algorithm" in an optimal way ...
11
votes
3answers
1k views
How to get accented unicode characters that can be copy-pasted?
The aim is to generate the .pdf with accented characters (the .tex file has mixed macro and unicode input), in a way that the .pdf text can be copy-pasted.
An example:
\documentclass{article}
...
11
votes
1answer
191 views
fontspec: what does Renderer=Basic do?
I'm writing a document using LuaLaTeX on Windows, using Arial (please do not comment on that) as its main font with:
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
...
11
votes
1answer
476 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 ...
11
votes
2answers
398 views
What is the right way to input prime with Unicode-math (LuaTeX backend)
I opened an issue about this in Unicode-math's github repository. However, I am not so sure it is actually a bug, or I just did something wrong.
Here is a minimal example,
\documentclass{article}
...
11
votes
4answers
3k views
How do you configure Texmaker to use LuaTeX?
I'm extending my use from pdfLaTeX to LuaLaTeX. However, it does not come pre-configured in the Texmaker editor.
How does one configure Texmaker to use LuaTeX?
(I am using ubuntu 10.4, but this ...
11
votes
1answer
354 views
How to find out which glyphs are different in an OpenType style set?
With fontspec, and XeTeX or LuaTeX it's possible to access a font's OpenType features, including the Style Sets, e.g. like this:
\addfontfeatures{RawFeature=+ss01;+ss18}
TeX.sx has already taught ...
11
votes
2answers
963 views
Ploting a function using mplib in lualatex
This question asked about ways to generate a nice function graph in LaTeX. There are several great answers, however, most of the either rely on an external program to generate the plot, or, if they ...
10
votes
2answers
1k views
How do I change the font size in LuaLaTeX?
\documentclass{minimal}
\usepackage[paperheight = 140mm,% comprimento
paperwidth = 200mm,% altura
margin = 10mm % tamanho da margem
]{geometry}
...
10
votes
2answers
189 views
How to put signature number in footer (derived from page number)?
To make my book easier to bind I'd like to automatically put the signature number with small type in the footer of the first page of each octavo signature (except the first one which is given since it ...



