Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/luatex/generic/interpreter

This is the README file for the Interpreter package.
Author: Paul Isambert.
E-mail: zappathustra AT free DOT fr
Comments and suggestions are welcome.
Date: June 2012.
Version: 1.2.

Interpreter preprocesses input files on the fly (no external program) and
manipulates input lines, e.g. to turn some markup into proper TeX syntax.
Interpreter doesn't work with ConTeXt.

LuaTeX is required, and the Lua side of the Gates package (i.e.  gates.lua),
version at least 0.2.

Relevant information can be found in interpreter-doc.pdf
or interpreter-doc.txt (source of the doc readable in a text editor).

The files in this distribution are:

interpreter.lua     - main code
interpreter.tex     - \input in plain TeX
interpreter.sty     - wrapper for LaTeX
interpreter-doc.tex - master file for the doc
interpreter-doc.txt - text of the doc
interpreter-doc.pdf - typeset doc
i-doc.lua           - interpretation for the doc (because, of course, the doc
                      is typeset with Interpreter)

Licensing of this package is covered by LPPL.

Files

Name Size Date Notes
README 1043 2012-06-10 09:28
i-doc.lua 8984 2011-12-03 08:22
interpreter-doc.pdf 110003 2012-06-10 09:24
interpreter-doc.tex 2828 2012-06-10 09:19
interpreter-doc.txt 32992 2012-06-10 09:24
interpreter.lua 20499 2012-06-10 09:24
interpreter.sty 667 2012-06-10 09:30
interpreter.tex 1246 2012-06-10 09:29

Down­load the con­tents of this pack­age in one zip archive (126.5k).

in­ter­preter – Trans­late in­put files on the fly

The pack­age pre­pro­cesses in­put files to a Lua(La)TeX run, on the fly.

The user de­fines Lua reg­u­lar ex­pres­sions to search for pat­terns and mod­ify in­put lines (or en­tire para­graphs) ac­cord­ingly, be­fore TeX reads the ma­te­rial. In this way, doc­u­ments may be pre­pared in a non-TeX lan­guage (e.g., some lightweight markup lan­guage) and turned into ‘proper’ TeX for pro­cess­ing.

The source of the doc­u­men­ta­tion is typed in such a lightweight lan­guage and is thus eas­ily read­able in a text ed­i­tor (the PDF file is also avail­able, of course); the trans­for­ma­tion to TeX syn­tax via In­ter­preter's func­tions is ex­plained in the doc­u­men­ta­tion it­self.

In­ter­preter is im­ple­mented us­ing the au­thor’s gates (lua ver­sion), and works for plain TeX and LaTeX, but not ConTeXt.

Pack­age De­tailsin­ter­preter
Ver­sion1.2
Li­censeThe LaTeX Project Public Li­cense
Main­tainerPaul Isam­bert
Con­tained inTeXlive as in­ter­preter
MikTeX as in­ter­preter
Topics im­port files in a non-TeX (or dif­fer­ent TeX) for­mat
sup­port for de­vel­op­ment of (La)TeX macros
Guest Book Sitemap Contact