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

Filter by
Sorted by
Tagged with
15
votes
2answers
824 views

Different answers of calculations in LuaLaTeX on local computer, lua compiler and on overleaf

Here is the code. It makes use of the file matrix.lua available at the following link. https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua The following code is to be run by matrix.lua ...
0
votes
1answer
38 views

LuaLaTex, TeXstudio, biber - Do not compile bibliography when using Compile command

I'm trying to compile a document including a glossary and a bibliography. For adjustment purposes, I need to compile it every few lines I write. For this I use the TeXstudio command "Compile" (F6 in ...
1
vote
0answers
32 views

Turkish.ldf and font substitution with lualatex

Referring to this tread: Xelatex vs Lualatex and font substitution the following code \documentclass[a4paper,12pt]{article} \usepackage{ifxetex,ifluatex} \usepackage{fontspec} \ifluatex \usepackage[...
6
votes
1answer
121 views

Xelatex vs Lualatex and font substitution

As is known, in the Turkish language the i exists as distinct letters in two versions, with and without a dot (with very different pronunciations): the dotted couple i / İ and the dotless couple ı / I....
7
votes
2answers
219 views

Achieving better kerning in text mode italics

In the font I'm using to set italics, the apostrophe / right single quote is outputting poorly kerned: The kerning of the first apostrophe in 'n' and the apostrophes in they've and they're is ...
1
vote
1answer
1k views

FontAwesome is not working in Friggeri resume?

\documentclass[]{friggeri-cv} % \documentclass{article} \usepackage{unicode-math} \usepackage{FontAwesome} \definecolor{light-gray}{gray}{0.55} \definecolor{skype}{HTML}{12A5F4} \definecolor{html5}{...
0
votes
0answers
152 views

Want to add the different icons in Friggeri Resume like email, phone, mobile, skype etc [duplicate]

Want to add the different icons in Friggeri Resume like email, phone, mobile, skype etc. \documentclass[]{myfriggeri-cv} \addbibresource{bibliography.bib} \begin{document} \header{friggeri}{friggeri}...
7
votes
0answers
114 views

Map all ASCII characters in document to Nemeth Braille

My goal is to type regular LaTeX input, and remap the fonts to produce Nemeth Braille. One answer to the question LaTeX to Braille was to download the font http://www.searchfreefonts.com/free/braille....
3
votes
0answers
58 views

How to apply a LuaLaTeX function to only a specific font?

In the italic font I am using, the apostrophe appears too far right in its bounding box, and therefore a space between an apostrophe and a glyph appears smaller than a space between two glyphs. I ...
0
votes
1answer
48 views

LuaTex parse LaTeX to variable

I am currently working on a template to be used by our consultants. For this I have make a set of functions that automatically generate and calculate certain parts of the report. And example of the ...
2
votes
1answer
3k views

Want to add the Skype and LinkedIn Icon on the left side of Friggeri Resume?

\documentclass[]{myfriggeri-cv} % Add 'print' as an option into the square bracket to remove colors from this template for printing \usepackage{unicode-math} \usepackage{fontawesome} \definecolor{...
3
votes
1answer
425 views

Error: Missing \begin{document. Please help!

While running my document in TexWorks using LuaLaTeX Typeset, I first got an error saying: Error: Driver file pgfsys-luatex.def not found. After some research, I downloaded the pgfsys-luatex.def file ...
0
votes
0answers
25 views

When I write while it gives 'do' as well, how can I write while and for equations without getting do

\While{t $<$ maximum number of iterations} \For {each search agent} \State Update the position of current search agent by equation \EndFor \State Update a,A and C \State Calculate fitness of all ...
2
votes
1answer
57 views

Font doesn't change in math mode with mathasfont

I'm trying to change math font to sans serif font (the same I use in the rest of the document) with mathastext package. Letters change but numbers doesn't do it and I don't know why. This is my ...
2
votes
1answer
83 views

LuaLaTex not outputting small caps for Times New Roman

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \begin{document} \textsc{smallcaps} \end{document} When I compile it using XeLaTeX, it ...
1
vote
0answers
54 views

LuaLaTeX not outputting ligatures in Helvetica Neue TrueType Collection

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \setmainfont{HelveticaNeue.ttc}[ UprightFeatures = {FontIndex=0} ] \begin{document} ff fi fl ffi ffl \end{document} ...
0
votes
1answer
26 views

LuaLaTeX: problem with Xy-pic

Just running LuaLaTeX on \documentclass{article} \usepackage{xy} \begin{document} \end{document} produces an error, This is LuaTeX, Version 1.10.0 (MiKTeX 2.9.7050 64-bit) (format=lualatex 2019....
0
votes
0answers
95 views

Issue with xparse and lualatex

I have the following code \documentclass{article} \usepackage{luacode,xparse,amsmath} \begin{luacode*} local matrix = require "matrix" local complex = require "complex" function add(m,n) m=...
3
votes
2answers
50 views

Lua equivalent for @ifpackageloaded

I'm writing a package mostly in Lua files. So far I haven't found a way to test in the Lua code whether a given package is loaded. What I'm doing is using \@ifpackageloaded and call into a Lua ...
4
votes
3answers
155 views

Enumerate list with each item in a new row

Q: How can I create a table which contains a continuous numerating list with each item in a new row. So I can insert content for the other columns in that row. I use luatex. The result should look ...
0
votes
0answers
35 views

glossaries: Setting unicode character as entry label

Why does the following compile with lualatex and fail with pdflatex when setting entry label to be Unicode character? % arara: pdflatex: { options: [ '-synctex=1', '-shell-escape' ]} % arara: ...
1
vote
1answer
74 views

Nesting of functions not working in lualatex

Here is the code. It makes use of the file matrix.lua available at the following link. https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua \documentclass{article} \usepackage{luacode} \...
0
votes
1answer
51 views

Using output of one lua function as input of another function in tex file

The following is the code. \documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode*} function string(x) tex.sprint(x) end function combine(x,y) tex.sprint(x.." "..y) end \end{...
2
votes
1answer
1k views

Hindi words not displayed properly in pdf (generated by xelatex)

The words are not getting displayed properly in the pdf even though they are getting displayed correctly in source file. And when I tried to copy words from the pdf file and paste them, they are ...
4
votes
2answers
120 views

Bug in Lualatex: not printing characters from calculation

I have the following code \documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode*} local matrix = require "matrix" local complex = require "complex" function cmatrix(n) return ...
0
votes
0answers
32 views

How insert structure elements in structure tree using code of lua

In one of the questions i asked,how insert spans around paragraphs,formulas etc. Now i need insert not only spans,but structure elements in structure tree at least for paragraphs at first,but in ...
5
votes
2answers
229 views

Index in KOMA-Script layers

Background. I would like to replace the intentionally blank pages or vacat pages in scrbook with a page which shows a new quote on every new blank page. Thanks to scrbook and LuaTeX this is not ...
0
votes
0answers
23 views

Simplest lstlistring in beamer fails to compile with LuaLaTeX [duplicate]

I expect the following code to compile to a PDF which contains a beamer page with a source code listing containing a. I see no syntax or logical errors. \documentclass{beamer} \usepackage{fontspec} \...
1
vote
1answer
70 views

Adding medium profile in profile section

I want to add my medium profile in the personal section in my resume. Given that this is my first time using TeX, is there any way to do this. As font awesome is supported, so I added these lines: \...
2
votes
2answers
100 views

How to pass array of values in lualatex?

Here is code for matrix multiplication. \documentclass{article} \usepackage{luacode} \begin{luacode} function MatMul( m1, m2 ) if #m1[1] ~= #m2 then return nil end local ...
9
votes
1answer
203 views

Finding Greatest Common Divisor using LuaLatex

Here is my code to find Greatest Common Divisor of two positive integers. \documentclass{article} \usepackage{luacode} \begin{luacode} function gcd(a,b) if b ~= 0 then return gcd(b, a % ...
23
votes
2answers
2k views

Why do I need Lua or LaTeX3 in a plain old technical document?

I wrote and maintain a couple hundred page computer related technical spec in XeLaTeX. I use tables, figures, bitfields, algorithms and other typical trappings. I'm intrigued by LuaTeX and LaTeX3, ...
32
votes
6answers
8k views

Reading data from a relational database into a LaTeX table

I'm using Tex Live 2009 on Debian squeeze. I can upgrade if I really, really have to, but I'd rather not. I was wondering if it would be possible to do the following. Given some data in a (...
2
votes
3answers
61 views

Table with vertical aligned header text [tabularx]

In LuaTeX with document class memoir and use of tabularx, how do I go about making a table (linewidth) layout similar to: Note: Table head is center bottom align Table body is right align A group of ...
1
vote
1answer
46 views

LuaLaTeX doesn't execute plantuml with Cyrrilic-name file

It's derivative from my previous question: \DeclareGraphicsRule for plantuml doesn't work with LuaLaTeX I have this MWE: \documentclass{article} \usepackage{graphicx} \DeclareGraphicsExtensions{...
3
votes
0answers
77 views

XeLaTeX and PDFLaTeX give different outputs for Tikz in TeXLive 2019 [closed]

Consider the following code: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(0,1) node[midway,sloped]{ABCD}; \end{tikzpicture} \end{document} When I ...
6
votes
3answers
171 views

Resources for learning Lua programming

I saw power of LuaLaTeX through several examples on the TeX Stack Exchange site. Could you suggest some books or other resources to learn Lua programming? I want to learn about variables, loops, ...
7
votes
3answers
411 views

Arithmetics in LuaLaTeX

I have the following code. \documentclass{article} \usepackage{luacode} \begin{luacode} function fact(n) if n == 0 then return 1 else tex.sprint ( n * fact(n - 1) ) ...
1
vote
1answer
83 views

Conditional string replacements in LuaLaTeX

I want to process whole tex file content with string replacements using lua. The following are the conditions F, G, H should be replaced by P, Q, R respectively. However if they aren't followed by a,...
1
vote
1answer
24 views

Loading fontspec makes Greek maths styles vanish

If I load fontspec, without unicode-math or mathspec, in LuaLaTex or XeLaTeX, I can no longer use \mathsf{\Phi}, \mathbf{\Phi}, and maybe other variants. Demo: \documentclass[a4paper]{article} \...
0
votes
2answers
51 views

Can anyone explain to me that why `\def` is used together with @ in this cls file

Recently, I have found a CV template class here in GitHub In the file awesome-cv.cls, there are some definitions confuse me, like: % Define writer's name % Usage: \name{<firstname>}{<...
8
votes
2answers
336 views

How to use Noto Color Emoji with lualatex?

I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex? \documentclass{article} \usepackage{...
1
vote
1answer
79 views

Constant word spacing

is there a way to achieve constant word spacing in paragraph using latex/ luatex/ xelatex/ context? I came across posts that mention Tex applies glue between words, but am not sure how to exactly ...
0
votes
2answers
48 views

3 columns with top-align and bottom-align [tabularx]

I'm trying to put together a three column table (in tabularx) that have the following layout (in full line width): Section Description Page 1-5 text text text ...... 7 5-12 ...
0
votes
1answer
28 views

How to change column separation of two column footnote [memoir]

With the document class memoir and use of the built-in footnote setting \twocolumnfootnotes, how do you: Change the size of the column seperation to e.g. 0.2cm? LuaTeX MWE: \documentclass[twoside]{...
2
votes
1answer
57 views

Pattern syntax using luacode

How can I find characters that are not curly braces? If I use this pattern "[^}]" in string.gsub I get an error. EDIT: This is the part of the code that doesn't work: \usepackage{luacode} \begin{...
2
votes
1answer
39 views

Colorize text using LuaLaTeX doesn't work

I need to colorize all occurences of certain symbols/words and so I followed the steps of this answer. This is a test code I have written in TeXstudio: % !TeX program = lualatex \documentclass[11pt]{...
9
votes
2answers
192 views

Tipa not working

I'm trying to type the phonetic transcription of some words with tipa but it's not compiling correctly and the glyphs don't show up. Here's a MWE of my code compiled with LuaLaTeX: \documentclass[...
0
votes
0answers
51 views

Whitespace in \includegraphics in combination with lualatex

When including a graphics file from a different directory than the current working directory having whitespace in its path, I usually put the path in double quotes like this: \usepackage{graphicx} .....
2
votes
0answers
49 views

Hyphenation exception syntax for LuaLaTeX

I want to hyphenate some German words. As an example, for the word Erb-b2-Familie, I want the first hyphen sign to be non-breakable the second hyphen sign to be breakable the rest of the word (...