Skip to main content

Questions tagged [lua]

Lua is a powerful, fast, lightweight, embeddable scripting language.

5 votes
2 answers
70 views

Recently I have discovered the interesting package named luacas (compilable with LuaLaTeX). To pag. 14 of the manual https://ctan.mirror.garr.it/mirrors/ctan/macros/luatex/latex/luacas/doc/luacas.pdf ...
Sebastiano's user avatar
  • 71.1k
10 votes
1 answer
106 views

This question is a followup of a previous question of mine that David kindly answered with the following example: \documentclass{article} \usepackage{csquotes} \def\test#1{% \setbox0\hbox{#1}% \...
Denis Bitouzé's user avatar
3 votes
1 answer
111 views

The following MCE works as expected. \documentclass{article} % \usepackage{babel} % \shorthandoff*{~} \begin{document} \directlua{ local n=0 if n~=42 then tex.print("Foo") else tex.print(...
Denis Bitouzé's user avatar
1 vote
0 answers
38 views

This question has technically been asked before: Creating outlines of 3D surfaces in Tikz. Frankly, here too: Surface outline – pgfplots 3D. I have thought about the problem in some detail, and ...
Jasper's user avatar
  • 12.3k
11 votes
2 answers
237 views

How can I calculate or approximate the intersection(s) or lack thereof of a line and an exponential curve. My goal is to avoid using an approach which first tessellates curves into line segments, and ...
Jasper's user avatar
  • 12.3k
3 votes
1 answer
79 views

How do I add a math kern for a particular glyph belonging to a particular stylistic set in an OpenType MATH font? As shown here, one adds the kern to a particular Unicode slot---[0x211D] in this case. ...
Apoorv Potnis's user avatar
4 votes
1 answer
116 views

I want to add a topright math kern (aka cut-in or staircase kerning) to DOUBLE-STRUCK CAPITAL R (Hex value: 0x211D, Code point: U+211D). I tried the method as shown in this answer of mickep, but it ...
Apoorv Potnis's user avatar
4 votes
1 answer
82 views

This code is derived from code by Max Chernoff, but the mangling is entirely my responsibility. Aim: to add tounicode mappings to the characters in uzdr.pfb (URW's clone of Zapf Dingbats) when ...
cfr's user avatar
  • 259k
2 votes
1 answer
141 views

Background Consider the following: One has several LuaLaTeX packages, which provide similar, but case specific functionality. Consequently, they have slightly different internal logic and require ...
dsacre's user avatar
  • 1,300
4 votes
0 answers
96 views

What is the correct way to doc-string a Lua function? I just picked this up from reading the code of others: --- the dot product --- @param u table<table<number>> a vector --- @param v ...
Jasper's user avatar
  • 12.3k
1 vote
0 answers
71 views

I am trying to add the pre-release version of lua-widow-control to my local TeX directory. In the local folder, I created a new folder lua-widow-control and placed the files lua-widow-control.sty, lua-...
Jinwen's user avatar
  • 10.4k
8 votes
2 answers
204 views

First of all "Merry Christmas" to everyone. I'm trying to get decimal output with luacas and don't get it. \documentclass[paper=a4,fontsize=12pt]{scrartcl} \usepackage{luacas} \begin{...
Fa-Mat's user avatar
  • 83
6 votes
1 answer
180 views

I want to automatically transliterate titles and author names I'm citing if they're written in another script. For example, given an author named مَحْمُود, I would like to be able to cite them inline ...
L33's user avatar
  • 61
2 votes
0 answers
104 views

I have the following MWE: \startluacode local function startenv(keyword, keyval) if keyword[1]:find("=", 1, true) then local cadena = utilities.parsers.array_to_string(keyword, &...
gxono's user avatar
  • 2,625
2 votes
2 answers
224 views

I was inspired by some of the illustrations in https://math.stackexchange.com/a/46222. I wanted to try graphing implicit surfaces myself, and came across the method of marching cubes. See https://...
Jasper's user avatar
  • 12.3k

15 30 50 per page
1
2 3 4 5
30