diff options
author | Norbert Preining <norbert@preining.info> | 2020-11-18 03:00:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-11-18 03:00:45 +0000 |
commit | a1f21689acf2d63ab8b813a55c5bf4374a06d964 (patch) | |
tree | 5572ad616a82b00013219ff8e846d694abaa54e2 /macros/luatex/optex/base/prefixed.opm | |
parent | ae5cb0f32e931708a1fe4e7e84793590c0d59df4 (diff) |
CTAN sync 202011180300
Diffstat (limited to 'macros/luatex/optex/base/prefixed.opm')
-rw-r--r-- | macros/luatex/optex/base/prefixed.opm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/luatex/optex/base/prefixed.opm b/macros/luatex/optex/base/prefixed.opm index f3ed071be0..8eb851cc2a 100644 --- a/macros/luatex/optex/base/prefixed.opm +++ b/macros/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 |