LuaTeX format with extended plainTeX macros

Petr Olsak, 2020

cz Cesky



OpTeX at github
optex-15.zip (23 Jun 2020)
optex-14.zip (15 Jun 2020)
optex-13.zip (20 May 2020)
optex-12.zip (6 May 2020)
optex-11.zip (30 Apr 2020)
optex-10.zip (25 Apr 2020)

Tips, triks, howto
FTP site

OpTeX is a LuaTeX format based on Plain TeX macros (by Donald Knuth) and on OPmac macros. The main features are:

OpTeX should be a modern plain TeX with power from OPmac (fonts selection system, colors, external graphics, references, hyperlinks...) with unicode fonts.

  • OpTeX keeps the simplicity (like in plain TeX and OPmac macros).
  • There is no old obscurities concerning with various 8-bit encodings and various engines. We are using only Unicode and only LuaTeX.
  • OpTeX provides a powerful font selection system (for Unicode font families, of course).
  • OpTeX supports hyphenations of all languages installed in your TeX system.
  • All features from OPmac macros are copied (for example, you can see opmac-prospectus.pdf)
  • Macros are documented in the same place where code is.
  • User name space of control sequences is separated from internal name space of OpTeX and primitives (\foo versus \_foo).

Installation: Use TeXlive (for example) and unzip the installation file. Run:

   unzip optex-(version).zip
   cd optex/base
   luatex -ini optex.ini

The format file is generated. Copy the optex.fmt file somewhere to your TeX system where format files can be read by LuaTeX. Copy *.opm files to a directory where LuaTeX can read them. For example:

   mkdir -p ~/texmf/web2c/luatex/ ~/texmf/tex/optex/
   cp optex.fmt ~/texmf/web2c/luatex/
   cp *.opm ~/texmf/tex/optex/
You can process your document by
   luatex -fmt optex document.tex 

or you can create an alias with name optex (to luatex -fmt optex) in your system. You can try luatex -fmt optex op-demo.tex if the files op-demo.tex and op-ring.png from optex/demo are in your actual directory (or somewhere LuaTeX can find them).

See optex-doc.pdf file for more information.

License: Public domanin. More precisely, it is the same as for OPmac macros.