Difference between revisions of "LuaTeX"

From Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
LuaTeX is an extended version of [[PdfTeX]] using [http://www.lua.org Lua], as an embedded scripting language. The LuaTeX project's main objective is to provide an open and configurable variant of TeX while at the same time offering downward compatibility.
+
LuaTeX is an extended version of [[PdfTeX - Old Content]] using [http://www.lua.org Lua], as an embedded scripting language. The LuaTeX project's main objective is to provide an open and configurable variant of TeX while at the same time offering downward compatibility.
  
 
The project started in the summer of 2005, and has since progressed into a first official early beta that was released during the TUG2007 conference in San Diego. Development is supported by a grant from Colorado State University and the TeX User groups.
 
The project started in the summer of 2005, and has since progressed into a first official early beta that was released during the TUG2007 conference in San Diego. Development is supported by a grant from Colorado State University and the TeX User groups.
Line 6: Line 6:
  
 
== Links ==
 
== Links ==
 +
* other [[:Category:Lua|Lua topics]]
 +
* how [[LuaTeX callbacks|Callbacks]] work in Context
 +
* The [[Lua]] in LuaTeX
 +
* [[Programming in LuaTeX]]
 +
* [http://luatex.org/ LuaTeX homepage]
 +
* [http://www.lua.org/manual/5.1/manual.html Lua Manual] (Reference)
 +
* [http://lua-users.org/wiki/LuaDirectory Lua-Users Wiki] (Tutorials etc.)
 +
* [http://www.luatex.de/ Patrick’s German LuaTeX Blog]
  
* http://luanet.net/lua
+
== Fonts ==
 
 
== Some tricks ==
 
 
 
=== Testing for UTF-8-aware TeX ===
 
 
 
<i>(By [[User:Taco|Taco]]); this hint should be place to a better location on the wiki</i>
 
 
 
For luatex, one may test if <code>\directlua</code> is defined.
 
 
 
The next weird macro definition should work for testing xetex/luatex, because only xetex and luatex accept 5- and 6-byte caret notation (hex 22 == double quote):
 
<texcode>
 
\def\"{0}\expandafter\def\csname^^^^^00022\endcsname{1}
 
\ifnum\"=0 \message{tex82}\else\message{newstuff}\fi
 
</texcode>
 
  
But that is not quite the same as testing for native UTF-8. Better is a trick like this:
+
See [[Fonts in LuaTeX]]
 
+
See [[Miscellaneous Lua Topics]]
<texcode>
 
\def\test#1#2!{\def\secondarg{#2}}
 
\test χ!\relax % That's Chi, a 2-byte utf-8 sequence
 
\ifx\secondarg\empty \message{newstuff}\else \message{tex82}\fi
 
</texcode>
 
 
 
ConTeXt offers <code>\beginNEWTEX ... \endNEWTEX</code> to test if one is using LuaTeX or XeTeX.
 
 
 
== Fonts ==
 
  
See [[Fonts in LuaTex]]
+
[[Category:Tools]]

Latest revision as of 18:38, 8 June 2020

LuaTeX is an extended version of PdfTeX - Old Content using Lua, as an embedded scripting language. The LuaTeX project's main objective is to provide an open and configurable variant of TeX while at the same time offering downward compatibility.

The project started in the summer of 2005, and has since progressed into a first official early beta that was released during the TUG2007 conference in San Diego. Development is supported by a grant from Colorado State University and the TeX User groups.

The official website offers some more information.

Links

Fonts

See Fonts in LuaTeX See Miscellaneous Lua Topics