Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [luatex]

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}.

6
votes
2answers
252 views

Change the catcode and then define a (Unicode) character

The motivation is that I sometimes have, e.g. % !TEX encoding = UTF-8 Unicode \catcode`¯=\active \def¯#1#2{\overline{#1#2}} $¯ab+¯bc=¯ac$ in my code. I thought it would be nice if there is a macro, ...
2
votes
1answer
90 views

Luatexja conflicts with KOMA script

After running into a bit of a wall with certain things in XeTeX I decided to start experimenting a bit with LuaTeX. Unfortunately I ran into a problem I couldn't solve pretty much instantly. I really ...
1
vote
1answer
40 views

Code2000 says it has 晣 but it will not print it

In fact it does not print other more simple Chinese characters either. I checked that it supports 晣 by looking here. So i downloaded it from here. I put the TTF in the same directory as the tex which ...
9
votes
1answer
162 views

Defining new commands from LuaTeX

Latex provides several commands relating to creating new commands such as \newcommand. If I want to define new commands from a Lua script one way is use tex.print to write this directly into the ...
1
vote
1answer
48 views

Serif fonts with beamer and polyglossia

I'm using this code. \documentclass[10pt]{beamer} %\usepackage{polyglossia} %\setdefaultlanguage{french} \usetheme{Boadilla} \usefonttheme{serif} \usefonttheme{professionalfonts} \begin{document} \...
4
votes
1answer
131 views

Using gridset with tikz in LuaLaTeX (Texlive 2017)

We have some LaTeX designed for Texlive 2013, but we're going to bump to Texlive 2017 (because of Ubuntu 14 EOL). We use the gridset package to help us align our text to a grid, and (when debugging) ...
11
votes
1answer
128 views

Is there a LuaLaTeX solution to adjust superscript kerning on large delimiters?

Superscripts can sit very far from large parentheses, more for some fonts than others. I am seeking a Lua-based solution to adjust the kerning of math superscripts on delimiters. Here is an example ...
3
votes
1answer
105 views

Compatibility between LuaLaTeX and the transparent package

If I run the example below with LuaLaTeX, the transparent package doesn't load with the error: Package transparent Warning: Your pdfTeX version does not support color stacks. (a pretty clear error ...
0
votes
1answer
264 views

Lualatex and pdflatex missing with Tex Live 2018 minimum installation on Ubuntu 18.04

I just installed Tex Live 2018 with the minimum scheme on Ubuntu 18.04. Apparently, this minimal scheme does not include applications like lualatex and pdflatex in /usr/local/texlive/2018/bin/x86_64-...
2
votes
0answers
104 views

Shell command error when compiling with LuaLaTeX shell-escape in Fedora 28 [closed]

When compiling this minimal TeX file with lualatex --shell-escape test.tex I get an initial shell error (that is output to stderr), sh: all: command not found (check in the 7th line). The error doesn'...
0
votes
1answer
34 views

glossaries first use style

after searching for like an hour, I still cannot find out how to do the following: \documentclass[11pt, twoside, a4paper, openright]{report} \usepackage[acronym]{glossaries} \makenoidxglossaries \...
15
votes
1answer
670 views

Why Does Word Spacing Change Drastically When Using Libertine/Libertinus with the Various LaTeX Engines?

I was just messing around in LaTeX with the libertine and libertinus packages, and noticed that switching from LaTeX to XeLaTex to LuaLaTeX all produced PDFs that were mostly the same length, except ...
2
votes
1answer
240 views

! Font \TU/lmr/m/n/12=[lmroman12-regular]:+tlig; at 12pt not loadable: metric data not found or bad

I'm currently using MikTeX 2.9.6809 and LuaTeX 1.07.0, and I cannot compile in LuaLaTeX (I can compile in XeLaTeX and pdfTex though). I fully updated MikTeX after encountering this error, still not ...
1
vote
2answers
55 views

Mismatch in small-caps/caps in appendix sections numbering

The MWE below creates a section numbering in the appendices of the form A.1, A.2 with A in small caps, but 1,2,3 in full caps. How can I either make A full caps or the number small caps? \...
0
votes
2answers
48 views

Configuring LaTeX to use fonts installed through portableapp.com

portableapp.com is a windows app that provides (besides a suite a portable apps) a workaround for installing fonts on a windows machine, without admin access. The work around is described in detail ...
1
vote
2answers
77 views

Vertically alignment in tabular seems broken

Using m columns in a tabular, I would expect to get vertically centered cells: \documentclass[a4paper, 12pt]{article} \usepackage{amsmath} \usepackage{array} \begin{document} \normalsize \textbf{...
3
votes
1answer
110 views

Math typesetting with a given OpenType font in LuaLaTeX

Hi! I am trying to typeset math with Arno Pro in LuaLaTeX. However, I have not found a suitable solution yet. As Arno Pro does not have all the symbols required for proper math typesetting, some kind ...
0
votes
1answer
54 views

“CONTENTS” in header issue

I am currently using a header on my document that should do one of a few things. If the current page is before any chapters or sections are defined, the header should only contain a number. If there ...
4
votes
2answers
249 views

LaTeX Fonts with fontspec-package

Today i figured out how to use system-installed-fonts with the fontspec-package and LuaLaTeX. But i can't figure out how to use fonts, that are installed in my texmf-tree! The fontspec-Manual says (...
10
votes
1answer
265 views

Problems with LuaTeX 1.08 even on a very simple document

I just installed luatex 1.08 released yesterday (the installation is a manual process and replaces the original luatex v1.07 that ships with Texlive 2018) on my on GNU/Linux x86_64 machine and re-...
5
votes
1answer
191 views

How to update LuaTeX binary (TeXLive on GNU/Linux)?

MikTeX provides access to the latest binaries through the miktex-nxt update channel. While being windows-only all these years, in 2018, it looks like Mr Schenk is extending his distribution to certain ...
6
votes
2answers
130 views

\hbar not displayed with fontspec on XeLaTeX/LuaLaTeX

With \usepackage{fontspec}, \hbar does not show up correctly. Tested on LaTeX2e <2018-04-01> patch level 5 and fontspec.sty 2018/07/30 vv2.6h. \documentclass{article} \usepackage{fontspec} \...
1
vote
0answers
85 views

PDF/A-1b compliance whilst embedding OTF files

As per this wikipedia article (see Fonts section), only pdf v1.6 and above is able to embed opentype fonts in the document. Now the problem is that, my institution requires pdf /A-1b compliance which ...
0
votes
0answers
25 views

Centred SCtables with sidecap package

I want a centred table with a side caption. I use the sidecap package and the SCtable environment. However, the \centering command which works fine for normal tables does not seem to work. \...
7
votes
1answer
555 views

What advantage does *TeX provide over modern tools like HTML+CSS+js? [closed]

My answer would be 'not much' and I am considering porting *TeX to browser. Sorry if this is not exactly a question, but I don't know better places for collecting expert opinions. I think TeX's major ...
1
vote
2answers
43 views

Math digits are in CM with newtxmath, fontspec and XCharter font (LuaLaTeX)

I've tried to follow this answer (and the subsequent ones cited there), but to no avail. When I try to compile with LuaLaTeX using the XCharter font, the numbers in math mode appear in CM. \...
3
votes
1answer
91 views

Does --no-shell-escape break \pdf@shellescape?

Edit: since posting the question I've fixed a few mistakes. I don't think they affect the answer given below, but I wanted to correct the record for completeness. Background I have a Python script ...
3
votes
1answer
46 views

make4ht/ODT: resizing of images

There have already been several questions regarding the resizing of images with ht4leax/make4ht, but somehow none of the answers seems to resolve my problem. Consider the following MWE \...
0
votes
1answer
63 views

unicode-math and sans serif font with LuaTeX and MacTeX

Using unicode-math I was able to use a sans serif font with LuaTeX in math-mode in pgfplots. It still works with TeXLive 2016 but it doesn't with MacTeX 2017 and 2018. Solution to my original ...
0
votes
1answer
49 views

Error while trying to input external pstricks files

I am trying to use \input{.} to import externally created pstricks graphics. These .tikz pictures are created by inkscape. When I try to import the picture using \input, I get this following error ...
15
votes
2answers
322 views

Aligning a text in 3d diagram

I have a 3d object created with inkscape as shown below: Now I am trying to place a text in the same orientation as the light-blue colored area. However, I want to insert the text with latex instead ...
7
votes
3answers
183 views

Generate random color in way that works with both pdflatex and lualatex

Right now, I am generating a random color in pdftex using \definecolor{randomcolor}{RGB} { \pdfuniformdeviate 255, \pdfuniformdeviate 255, \pdfuniformdeviate 255 } Which works pretty ...
0
votes
0answers
38 views

Defining magic comments in a tex file [duplicate]

In Texstudio, while defining magic comments, for automatically invoking lualatex core, is it sufficient to add %&lualatex or should I add %&lualatex % !TeX program = lualatex so that ...
1
vote
0answers
50 views

Visually highlight portions of a document

I'm looking for a possibility to visually highlight entire portions of a document. It could be a paragraph or entire pages. Ideally by changing the background color, but it could also be a colored bar ...
0
votes
1answer
183 views

How to resolve a LuaLaTeX font error regarding missing or bad metric data? [closed]

I always get the following error when I want to compile my tex file with lualatex: Font \TU/lmr/m/n/10.95=[lmroman10-regular]:+tlig; at 10.95pt not loadable: metric data not found or bad. \normalsize ...
2
votes
1answer
56 views

Use line numbers in text with EBGaramond-math and LuaTex

I try to use line numbers in text with EBGaramond-math font and Luatex. With the code below, the numbers in math mode are lining, but in the text oldstyle font is used. \documentclass[]{standalone} \...
0
votes
1answer
47 views

Determine the relative path of a package

The general idea is that I can get the relative path of my project root by including the package mymacros.sty in my subprojects. I have the following setup: mymacros.sty myimg figure.tikz the ...
5
votes
0answers
122 views

Pre-built preamble with LuaLaTeX and microtype

I have been trying to get super-fast compiles with LuaLaTeX by using a pre-built preamble for my documents. However, every time I try to compile, I get this error: No file main.aux. [\directlua]:1: ...
4
votes
2answers
90 views

Metapost (Graph) LuaLaTeX: intersectionpoint - graph with line not what intended - why?

Good morning! Trying around as MP-Newbie since days to get a correct intersection between my graph p and a horizontal line in red. The point in my example is at the red trianlge in the left bottom. ...
2
votes
1answer
124 views

Read YAML field from LaTeX

Let me explain my problem. I have a simple YAML file automatically generated with a series of experiments that looks like as follows error-metric1: method1: value method2: value method3: ...
1
vote
0answers
49 views

How to align sections and “<section> continued” heading after page-break not to continue after some limits

I want to generate a section cont.. heading on the top of page. I got almost data from [How to generate a "<section> continued" heading after page-break? \documentclass{article} \...
1
vote
2answers
140 views

How to change the font of Japanese characters

Im currently working on a file where I need to display some Kanji in the middle of some English text. For this I created a new environment with the CJKuft8 package, according to this post \usepackage{...
2
votes
1answer
201 views

Pandoc: Exporting Tikz Figures and Other Environments from Latex to other formats

How can I alter the answer from this question (which uses a lua-filter), so that it outputs tikz figures in a docx document, but also extracts content from non-pandoc friendly environments (as it does ...
2
votes
1answer
68 views

\fontspec with scaling + \chemgreek = math font does not scale

I found this question: \chemgreek + \fontspec + Lucida.otf = missing greek characters which in principle solves my problem (missing greek characters). But since I use a scaling for my fonts another ...
3
votes
1answer
67 views

Ligature containing hyphen breaks previous ligature (LuaLaTeX)

I made a font for functional harmonic analysis in music which contains ligatures and other OpenType “magic”. TobiW at this thread on a german-speaking typography forum showed me how to use the font ...
13
votes
2answers
273 views

ſ (long s) and hyphenation

I'm using UTF-8 so it is – if one is using the right font – no problem to implement the different types of s in older German texts (s, ſ, ß). Unfortunately the hyphenation breaks because LaTeX does ...
1
vote
1answer
79 views

Footnote without a marker for moderncv documentclass

I have trouble getting the answer from Footnote without a marker to work for my moderncv document and TeX Live 2017, LuaLaTeX 1.0.4 and Latexmk 4.53a. The following document: \documentclass{moderncv}...
1
vote
1answer
67 views

Stylistic sets for the STIX (One) Fonts

I have been looking for an overview of the stylistic sets for the STIX OTF fonts, but I have only been able to find the documentation for the "LaTeX" fonts which I presume are the Type 1 fonts.
2
votes
1answer
76 views

Hebrew vowel positioning

Is there a way in LuaLaTeX (second best would be XeTeX) to finetune the positioning of Hebrew vowel signs? For some fonts if both vowels and cantillation marks are present, they might overlap, which ...
3
votes
1answer
80 views

Inverted parentheses in RTL text in LuaLaTeX

I want to typeset Hebrew (RTL) text (either within LTR paragraphs or in its own RTL paragraphs) in LuaLaTeX. I manage to do this well with XeLaTeX using the bidi package, but when I use LuaLaTeX’s ...