diff options
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/basic-macros.opm')
-rw-r--r-- | Master/texmf-dist/tex/optex/base/basic-macros.opm | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/optex/base/basic-macros.opm b/Master/texmf-dist/tex/optex/base/basic-macros.opm index 2e8c98d6e3e..ae5c833140d 100644 --- a/Master/texmf-dist/tex/optex/base/basic-macros.opm +++ b/Master/texmf-dist/tex/optex/base/basic-macros.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \sdef {Basic macros for OpTeX <2021-07-20>} % preloaded in format +\_codedecl \sdef {Basic macros for OpTeX <2022-11-22>} % preloaded in format \_doc ------------------------------ \`\bgroup`, \`\egroup`, \`\empty`, \`\space`, and \`\null` @@ -77,11 +77,15 @@ \_public \cs \trycs ; \_doc ------------------------------ - \`\addto` `\macro{<text>}` adds `<text>` to your `\macro`, which must be defined. + \`\addto` `\macro{<text>}` adds `<text>` to your `\macro`, which must be defined.\nl + \`\aheadto` `\macro{<text>}` defines `\macro` as `<text>` followed by the + original `\macro` body. \_cod ------------------------------ \_long\_def \_addto #1#2{\_ea\_def\_ea#1\_ea{#1#2}} -\_public \addto ; +\_long\_def \_aheadto #1#2{\_edef#1{\_unexpanded{#2}\_unexpanded\_ea{#1}}} + +\_public \addto \aheadto ; \_doc ----------------------------- \`\incr``<counter>` increases `<counter>` by one globally. @@ -112,6 +116,15 @@ \_def\_tracingall{\_tracingonline=1 \_loggingall} \_public \loggingall \tracingall ; + \_doc ------------------------ + The `\optexversion` and `\fmtname` are defined in the `optex.ini` file. + Maybe, somebody will need a private version of these macros. + We add \`\_banner` used in `\everyjob` and in \~`\docgen` + \_cod ------------------------ + +\_def\_banner {This is OpTeX (Olsak's Plain TeX), version <\_optexversion>}% +\_private \optexversion \fmtname ; + \_doc ------------------------------ \`\_byehook` is used in the \^`\bye` macro. Write a warning if the user did not load a Unicode Font. @@ -129,6 +142,9 @@ \_endcode % ------------------------------------- +2022-11-22: \_banner definition moved here +2022-11-18: \ahead introduced +2022-10-29: \_fin introduced 2021-07-20: \_unresovedrefs removed from \_byehook 2021-07-18: \_byehook: checking `ref` file consistency added. 2021-05-16: \slet reimplemented (to allow \slet{foo}{undefined}). |