%% This is part of OpTeX project, see http://petr.olsak.net/optex % Run optex optex-doc (three times) to generate OpTeX documentation. \input doc.opm \let\enddocument=\endinput \typosize[10/12] \let\new=\relax \begingroup \typosize [11/13.5] \insertoutline{OpTeX} \vglue1cm \centerline{\setfontsize{at50pt}\rm\OpTeX} \vskip-8mm \tit Format Based on Plain \TeX/ and OPmac\fnotemark1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \hfill Version 0.10 \centerline{\it Petr Olšák, 2020} \bigskip \centerline{\url{http://petr.olsak.net/optex}} \fnotetext {The OPmac package is a set of simple additional macros to Plain \TeX{}. It enables users to take advantage of \LaTeX/ functionality but keeps Plain \TeX/ simplicity. See \url{http://petr.olsak.net/opmac-e.html} for more information about it.} \bigskip \noindent \OpTeX/ is \LuaTeX/ format with Plain \TeX/ and OPmac. Only \LuaTeX/ engine is supported. \OpTeX/ should be a modern Plain \TeX/ with power from OPmac (Fonts Selection System, colors, graphics, references, hyperlinks, indexing, bibliography, ...) with preferred Unicode fonts. The main goal of \OpTeX/ is: \begitems * \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. * \OpTeX/ provides a powerful Fonts 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 sorting words in the Index\fnotemark1, reading `.bib` files directly\fnotemark1, syntax highlighting\fnotemark1, colors, graphics, hyperlinks, references). \fnotetext{All these features are implemented by \TeX/ macros, no external program is needed.} * 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`). The name spaces for macro writers are designed too. \enditems If you need to customize your document or you need to use something very specific, then you can copy relevant parts of \OpTeX/ macros into your macro file and do changes of these macros here. This is significant difference from \LaTeX/ or ConTeXt, which are an attempt to create a new user level with a plenty of non-primitive parameters and syntax hiding \TeX/ internals. The macros from \OpTeX/ are simple and straightforward because they solve only what is explicitly needed, they does not create a new user level for controlling your document. We have \TeX. You can use \OpTeX/ macros, understand them an modify them. \OpTeX/ offers a markup language for authors of texts (like \LaTeX), i.\,e.\ the fixed set of tags to define the structure of the document. This markup is different from the \LaTeX{} markup. It may offer to write the source text of the document somewhat clearer and more attractive. The manual includes two parts: user documentation and technical documentation. The second part is generated directly from the sources of \OpTeX/. There are many hyperlinks from one part to second and vice versa. This manual describes \OpTeX/ features only. We suppose that user knows \TeX/ basics. They are described in many books. You can see a short document \ulink[http://petr.olsak.net/ftp/olsak/optex/tex-nutshell.pdf] {\TeX/ in nutshell} too. \vfil\break \insertoutline{CONTENTS} \outlines{0} \notoc\nonum \sec Contents \maketoc \chap User documentation \input optex-userdoc \endgroup %\end \input optex-techdoc \vfil\break \def\_printchap#1{\noindent{\_printrefnum[@]\_secfont #1}\medskip} \nonum\chap Index \begmulti 3 \tt \makeindex \endmulti \bye