diff options
author | Karl Berry <karl@freefriends.org> | 2020-11-18 22:07:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-11-18 22:07:01 +0000 |
commit | 02b9b5088ecbc641f23303a276dd360ecfd0a805 (patch) | |
tree | 6ad10b2e03f0ed872dd770a1fb6d63da1572dda5 /Master/texmf-dist/tex/luatex/optex/base/prefixed.opm | |
parent | d0c7f8c4e981eb166507f4d5d09c36b9318fdd51 (diff) |
optex (18nov20)
git-svn-id: svn://tug.org/texlive/trunk@56960 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/prefixed.opm')
-rw-r--r-- | Master/texmf-dist/tex/luatex/optex/base/prefixed.opm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm b/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm index f3ed071be03..8eb851cc2ab 100644 --- a/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm +++ b/Master/texmf-dist/tex/luatex/optex/base/prefixed.opm @@ -74,7 +74,7 @@ Now, we define the macros \`\_namespace` `{<pkg label>}`, \`\_resetnamespace` `{<pkg label>}`, \`\_endnamespace`, \`\_nspublic` and \`\_nsprivate` - for package writers, see section~\ref[pkg-namespace]. + for package writers, see section~\ref[pkg-namespace].{\hbadness=2200\par} \_cod ----------------------------- \_def \_pkglabel{} @@ -88,14 +88,14 @@ \_ea \_gdef \_csname namesp:#1\_endcsname {}% \_gdef \_pkglabel{_#1}% \_directlua{ - callback.register_x("process_input_buffer", + callback.add_to_callback("process_input_buffer", function (str) return string.gsub(str, "\_nbb[.]([a-zA-Z])", "\_nbb _#1_\_pcent 1") - end ) + end, "_namespace") }% } \_def\_endnamespace {% - \_ifmathsb \_mathsbon \_else \_mathsboff \_fi + \_directlua{ callback.remove_from_callback("process_input_buffer", "_namespace") }% \_gdef \_pkglabel{}% } @@ -168,7 +168,7 @@ example `\my_control_sequence`, but with the following exceptions: \begitems * Control sequences which begin with `_` are reserved for \TeX/ primitives, - \OpTeX/ internal macros and macro package writers. + \OpTeX/ internal macros and packages internal macros. * Control sequences (terminated by non-letter) in the form `\<word>_` or `\<word>_<one-letter>`, where <word> is a sequence of letters, are inaccessible, because they |