## LuaTeX format with extended plainTeX macros

Petr Olsak, 2020, 2021

Cesky

optex-doc.pdf

tex-nutshell.pdf
optex-math.pdf
omls.pdf
TUGboat article

OpTeX at github (current)
Discussion forum for users

optex-104.zip (26 Aug 2021)
optex-103.zip (03 Jun 2021)
optex-102.zip (25 Apr 2021)
optex-101.zip (18 Mar 2021)
optex-100.zip (09 Feb 2021)
optex-19.zip (14 Jan 2021)
optex-18.zip (21 Dec 2020)
optex-17.zip (17 Nov 2020)
optex-16.zip (19 Oct 2020)
optex-15.zip (23 Jun 2020)
...

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 are no old obscurities concerning 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.
• Documentation of all features is at single place.
• The user namespace of control sequences is separated from internal namespace of OpTeX and primitives (\foo versus \_foo).

TeXlive includes OpTeX in its last version released at CTAN. You can process your document by optex document. Try optex op-demo for example. If the optex command is not present, try to run luatex -fmt optex op-demo.

If you have a TeX distribution without OpTeX, you need LuaTeX in version 1.10.0 (2019) or later, luaotfload package 3.12 or later, and you can install OpTeX manually:

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. 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.

### Documents

• User documentation + technical reference of OpTeX is in optex-doc.pdf.
• A brief summary of TeX and plain TeX is in tex-nutshell.pdf.
• Summary about math in TeX, plain TeX, and OpTeX is in optex-math.pdf.
• Slides in OpTeX can be prepared by op-slides.pdf.
• Fonts registered by OpTeX macros are catalogized in op-catalog.pdf. You can prepare it by \fontfam[catalog] \bye. Then it shows only fonts registered in OpTeX macros and ready in your system.
• OpTeX markup language standard OMLS declares "standard" control sequences for OpTeX documents and their syntax. It should help to program convertors from/to OpTeX documents.
• The article OpTeX -- A new generation of Plain TeX was published in TUGboat 41:3 in 2020.

### Announcement of version 1.00

February 2021

I published OpTeX for the first time a year ago. Intensive developmnet took place during that time. I collected many reports from users and implemented new features. Thanks for all that reports.

Now, OpTeX has reached a stable state, in my opinion. I wish to offer users the certainty of the immutability of basic principles of OpTeX so that they can create their macros. This is time to release version 1.00 of OpTeX and to remove the word "beta" from the name of the version.

I plan to continue fixing bugs but I will be very careful not to violate basic features on which users can build their macros. Before I add eventually a new feature, I will think about the change in detail with regard to this principle.

Enjoy!