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)

1
vote
0answers
71 views

Do pdfTeX, XeTeX and LuaTeX share any code with Knuth's original TeX? [closed]

The title contains the entire question. The engines are different, but do they still share some code with Knuth's TeX, or are they "remakes" from scratch?
4
votes
2answers
51 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 ...
5
votes
0answers
242 views

Differences between XeLaTeX and LuaLaTeX embedding fonts (with optical sizes) in PDF

Using TexLive 2014 (updated today) on Windows 7 the following code compiles using XeLaTeX and LuaLaTeX: \documentclass{article} \usepackage{fontspec} \setmainfont[ Extension = .otf, Path=otf/, ...
7
votes
0answers
54 views

lineno package has different output in pdflatex and lualatex [closed]

Using line label references from the lineno package prevents lines from being broken at explicit hyphens in words adjacent to the label. Consider the following MWE: \documentclass{article} ...
10
votes
1answer
98 views

assign penalty to one discretionary (not all paragraph)

For a quite complex problem that would be too long to describe, I need to set different penalties for different discretionaries in the same paragraphe. It doesn't seem to be possible with pdfTeX (and ...
2
votes
1answer
149 views

Updating Your Own Font

In my scenario I am using my own custom font. It is an OpenType font - not a tex-packaged one either, just one I've made in FontCreator (Windows 7). Now, I want to use this font with lualatex, so I ...
3
votes
1answer
83 views

How can I use LuaLaTeX for `europasscv`?

I want to write a europasscv in the same format as my other material for application etc., for which I use LuaLaTeX. The problem up to now is that I can't even make use of TeX Gyre Heros as sansfont, ...
3
votes
1answer
77 views

Formatted number printout in LuaTeX?

I have this code that I copied from What is a simple example of something you can do with LuaTeX?. \documentclass{article} \usepackage{luacode} \def\score#1#2#3{% \directlua{ s1 = #1; ...
1
vote
0answers
46 views

Something like \tikzexternalize[prefix=tikztmp/] for LuaLaTeX

My aim is to compile a *.tex file that contains quite a number of tikz-environments and to create for every tikz-environment one pdf-file. Under LaTeX I would use something like ...
3
votes
1answer
104 views

How to make all math bold by default in LuaLaTeX

I would like to make all of my equations bold by default in a LuaLaTeX document that uses the lmodern math font. The answer to this question suggests using \boldmath, but I can't get it to work while ...
3
votes
1answer
58 views

get path of source file when compiling from another directory

Is it possible to get the absolute path of the main tex file when compiled from another directory? LuaTeX is the engine I use, so a LuaTeX-only soluion is fine. If I have /x/y/test.tex and if I do cd ...
3
votes
1answer
67 views

Superscript placement using unicode-math with scaling

When I scale up a math font using the unicode-math package, the placement of the superscript is too low. How can I globally adjust the placement of superscripts for this scaled math font? ...
3
votes
1answer
133 views

Let pdflatex/Lualatex write a PDF “checkpoint”

Assume that you have a program that is writing a report while it computes, and the report is a LaTeX file with text, TikZ figures, ect. that needs to be compiled to a PDF before it can be viewed ...
9
votes
1answer
197 views

LuaLatex and large braces with MathTime Professional 2

The following example behaves badly in LuaLatex: \documentclass{article} \usepackage{amsmath} \usepackage[lite]{mtpro2} \begin{document} \[ x = \ccases{ x & 1,\\x & 2,\\x & ...
1
vote
2answers
180 views

Microtype causes error in combination with system call LuaLaTeX

I'm trying to plot some figures based on measurements with tikz because the number of data points is to large for LaTeX I'm using a 'system call' to use LuaLaTeX for them. As long I do not load ...
2
votes
0answers
217 views

TeX capacity exceeded despite system call LuaLaTeX [closed]

I'd like to plot some measured values with TikZ, but despite "calling" LuaLaTeX I get the error message that TeX's main memory is exceeded. I can compile the plots under LuaLaTeX but it doesn't work ...
2
votes
0answers
68 views

PDF optimization packages/options

I noticed that when compiling any document in TeX, the resulting PDF can be reduced in size by quite much. For example, take \documentclass{article} \begin{document} Lorem ipsum dolor sit amet, ...
2
votes
1answer
100 views

wrap logo and sender's address with scrlttr2

I have a problem with scrlttr2 and Lualatex when I use a logo and the english manual of Koma-script don't help. I want to have it next to the sender's address, partly in the margin, and with the ...
0
votes
0answers
81 views

LuaLaTex is consuming 40 sec .. is there a way to reduce

I'm currently using, MikTex with LuaLaTex as compiler. When provided with the .TEX file, it is taking about 40 sec time (approx.) Is there a way to reduce this time? The point here is, this process ...
6
votes
1answer
112 views

Why are Accented Capital Letters not well decoded in QRCODE?

Double accented capital letters, such as ÙÇ, ÙÉ, ÀÇ, and ÈÏ, are not well decoded in a qrcode. Is there a way to fix that ? \documentclass[french]{article} \usepackage{fontspec} % if this package is ...
5
votes
2answers
302 views

Place TikZ picture over top of text

I'm designing some letterhead using LuaLaTeX (interchangeable with XeLaTeX at this point) where I want my signature and name to be drawn like this: The signature is a TikZ drawing, the text is ...
2
votes
0answers
57 views

HowTo create a LuaLatex package

I would like to develop LuaLatex packages. I am very interested by the scripting capability of LuaLatex, so I'd like to use it as much as possible instead of Latex or Tex. Is there a "standard" or ...
3
votes
0answers
109 views

Is LuaTeX planned to have as good font capabilities as XeTeX? [closed]

The title almost says it all. As I understand it, XeTeX was built from the ground up for its font support, while LuaTeX only got fontspec support years after its creation. While font support will ...
4
votes
2answers
52 views

Delayed expansion of StrSubstitute argument with active characters

This is an extension of my previous question. The accepted answer provided a way for me to delay expansion of a marked-up easylist list until the string was processed inside the environment. I'm ...
4
votes
1answer
57 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} ...
2
votes
1answer
100 views

luacode error: LuaTex is required for this package

I am a new bie to Tex and when i try to run the sample code given in the posting Ways to parse JSON in LaTeX?, i run into the error: Package luacode Error: LuaTeX is required for this package. ...
1
vote
2answers
59 views

How to align text at multiple specific places?

Up till yesterday I have always done all my layout in InDesign. However, there are places where this makes things tedious, so I'm trying to see how to do all the hard work in tex. In my tex file I ...
7
votes
2answers
155 views

LuaLaTeX: Replace character “ß” in CMU fonts

The glyph for the character "ß" differs considerably between Latin Modern and the CMU fonts (CMU Serif, CMU Sans Serif etc., which use the same glyphs for ß as cm-super; see this answer): I much ...
3
votes
2answers
214 views

(New) Century Schoolbook Font in LuaLaTeX

I recently made the switch to LuaTeX from pdfTeX. Before the switch, I used the fouriernc package to set the document's font to New Century Schoolbook. I've come to understand (from this document) ...
4
votes
1answer
140 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{ ...
3
votes
1answer
338 views

LuaTeX - unexpected symbol near '>'

I wrote my first Lua code and it works as expected when running through lua.exe. But when I try to include the lua file or its complete source code I always get the error ! LuaTeX error mr.lua:11: ...
3
votes
1answer
84 views

LuaTeX RTL text: Wrong horizontal spacing in headlines

When typesetting syriac RTL text in LuaTeX, it seems the right-alignment of section and subsection headlines has a bug. It seems that the small horizontal space between number and headline text is ...
4
votes
2answers
162 views

plain TeX error. Undefined control sequence. \pgfutil@

I'm trying to compile the fix mentioned by egreg in this thread: Strange behaviour with PGF/TikZ and Plain TeX output routine Here's the code: \input pgf \catcode`@=11 \newbox\pgfutil@@Output@Box ...
9
votes
1answer
258 views

Is it possible to use Lua to obtain the current working directory?

Package currfile with the abspath option can obtain the absolute path of the current file. However, it relies on running pdflatex with the -recorder flag. Would it be possible to achieve the same ...
15
votes
1answer
277 views

XeLaTeX, LuaLaTeX, fontspec, unicode and normalization

I am troubled by the way LuaTeX and XeLaTeX normalize unicode composed character. I mean NFC / NFD. See the following MWE \documentclass{article} \usepackage{fontspec} \setmainfont{Linux Libertine ...
3
votes
0answers
49 views

ArabXeTeX-like interface for lualatex

I would like to know if and how it would be possible to parse and convert ArabXeTeX ascii input to unicode under LuaLaTeX. I came across the ḍād package by Yannis Haralambous, but as far as I know ...
10
votes
1answer
112 views

Use luatex to \let command to other

still looking for LuaTeX, I understand how I can execute Lua code insided TeX code (via \luadirect) but not how I could execute TeX code inside Lua code. I explain : I would like to make a series of ...
3
votes
1answer
44 views

luatexluaescape string and backslash

I'm new to LuaLatex and I'm trying to write simple macros. However, when I send a string to lua that contains a backslash (like \R^n), then the code doesn't work as expected. For example, my lua ...
1
vote
1answer
122 views

How to change font for axes, labels, etc in pgfplots using fontspec (lualatex)?

I need to make figure with Garamond font applied to axes and labels, as well to text in nodes. This is my MWE: \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} ...
6
votes
1answer
67 views

write the content of an hbox in an auxilary file

I know that TeX can't write the content of hbox in an auxiliary file (Re-parse the content of a box register). That mean that \newwrite\foo \immediate\openout\foo=\jobname.txt \setbox0=\hbox{bar} ...
6
votes
1answer
175 views

pgfplots + unicode-math + lualatex gives the error “kernel/command-already-defined” [closed]

With the following MWE compiled with lualatex, I get the error: ... LaTeX error: "kernel/command-already-defined" Control sequence \crampeddisplaystyle already defined. ... l.637 ...
4
votes
2answers
80 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 ...
3
votes
1answer
125 views

Externalization of contour gnuplots

Based on a datafile (XYZ.csv) I want to have a contour plot within my .tex file. I'm using lualatex for compilation. The main issue is the externalization of the gnuplot contour plot in combination ...
4
votes
0answers
115 views

unicode-math + siunitx + lualatex = long compile times. Why?

The following MWE, compiled under several situations (with appropriate lines removed) gives the following timings (with all output files removed between runs), as timed by Measure-Command on Windows 7 ...
0
votes
0answers
76 views

Using tikzlibrary spy without magnifying line width and/or mark size with groupplots

This question has been asked before here: Using tikzlibrary spy without magnifying line width and/or mark size However, I have a problem with its solution. I tried both solutions posted and I would ...
2
votes
0answers
57 views

auto-pst-pdf and ucl thesis style

I have a problem with compiling my thesis which uses the ucl latex template style. While I've tried to reduce it to a minimal working example, I'm not sure whether it's still relevant. The error I get ...
1
vote
0answers
90 views

How well does microtype “font expansion” work with LuaLaTeX?

Using LuaLaTeX and a an OpenType font loaded with fontspec (like, say, Linux Libertine), can the "font expansion" feature of microtype be considered stable and fully functional? And can I feel safe by ...
3
votes
0answers
69 views

LuaLatex setup a different font for numbers and the rest

This question is a duplicate of this older question that strayed from the subject. I would like to make a presentation using latex class beamer, however I would like to use different fonts than the ...
0
votes
0answers
104 views

How to run LuaLaTeX or sagetex?

I have OSX. Texlive2014 is installed. I am using Texmaker. But I cannot compile a simple lualatex or sagetex source file. I get lots of errors. I have to install something or set something in the ...
0
votes
0answers
29 views

Trademark and Copyright with language specific symbols

Is there any way to display the trademark,copyright symbols in different language? As Canadian French language is displaying like MC,MD for trademark and copyright symbols respectively. How can we ...