We’re rewarding the question askers & reputations are being recalculated! Read more.

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
7
votes
0answers
117 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
51 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
431 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
64 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
102 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
62 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
32 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
100 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
56 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
163 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
39 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
77 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
54 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
123 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
35 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
230 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
25 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
89 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
103 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
216 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
9k 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
48 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
79 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
182 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
422 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
97 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
52 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>}{<...
1
vote
1answer
81 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
54 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
33 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
60 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
213 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[...
1
vote
0answers
66 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
50 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 (...
1
vote
0answers
89 views

Can't execute jar from directory with umlaut

Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here. I have written a Java program that I am calling from inside ...
0
votes
1answer
60 views

Justify footnote text in two column footnotes [memoir]

The documentclass memoir provides a default option for two columns footnotes with the setting \twocolumnfootnotes, however the text in the footnote per default are aligned left and not justified. How ...
4
votes
1answer
159 views

MacTeX 2019 gives “! LaTeX3 Error: Control sequence \not= already defined.”

I have a document, that compiles fine on MacTeX 2017, which is installed on my desktop machine. I now installed MacTeX 2019 on my laptop and get this cryptic error: (/usr/local/texlive/2019/texmf-...
0
votes
1answer
52 views

Package showkeys, switch off/on key display

Is there a trick (I have seen no option for that) to switch on/off the printing of the keys? Switch off would be enough. Because at the end of my draft document I have toc's that help me in my work, ...
0
votes
1answer
23 views

Manipulating page number in table of content

I would like to add a new line to the toc, but with full control of the page number on the right. That is, in the following picture I would like a 17 instead of a 5. Below is my attempt, that I do ...
1
vote
2answers
75 views

How do I get the first page number of the currect chapter/section?

I would like to get the page number of the first page of the current chapter the page number of the first page of the current section Is it possible? The goal is to add the chapter/section to a ...
0
votes
0answers
55 views

What are to differences pros/cons for Latex, Luatex, Context, etc? [duplicate]

I have used Latex several times for small papers and thesis' for University. So I know a bit about how to create formulars, tables and stuff. However, I still consider myself a newbie, who barely ...
1
vote
0answers
58 views

Generate pdfx a-b1 with Lualatex

update since pdfx and hyperxmp is not copatible I try to use lualatex to generate pdf a-b1 compatible files without creating and xmp file. My attempt does not work. The pdf is generated but adobe ...