LuaTeX A user's perspective - TUG
luaTeX A user's perspective
Aditya Mahajan
July 29, 2009
What is luaTeX
says
luaTeX is an extended version of pdfTeX using lua as an embedded scripting language
Main objective is to provide an open and configurable variant of TeX which is backward compatible with pdfTeX
Translation Programming in TeX
made easy
How to use lua in ConTeXt
Call lua from TeX
\ctxlua{...} \startluacode ... \stopluacode
Call TeX from lua
tex.print(...) context(...) context.csname(...)
experimental
Simple things are simple
Example: Pick a random option
Encode your Name and Surname as a \startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode
Vyatcheslav Yatskovsky on ntg-context
Example: Convert decimal to binary
Perform logical AND, OR, and XOR of the following pair of hexadecimal numbers: \startluacode
local n = math.random(10,255) local m = math.random(10,255) context("%X, %X", n, m) \stopluacode
Vyatcheslav Yatskovsky on ntg-context
You can parse input without exploding your brain
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- a no frills introduction to lua 5 1 vm instructions
- what is next for lua
- programming in lua types ufrj
- what s next https hisham
- programming in lua handling errors
- lua arithmetic operators
- ml module mania a type safe separately compiled
- fixed point arithmetic an introduction
- lua math library
- the risc v instruction set manual volume i user level
Related searches
- what s in a person s name
- blackrock aladdin user s guide
- become a teacher with a bachelor s degree
- microsoft office 2010 user s guide
- change another user s password
- users vs user s grammar
- is a teller check a cashier s check
- how to delete a user from computer
- delete a user windows 10
- how to delete a user account pc
- howard zinn s a people s history pdf
- change a user password windows10