diff options
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/others.opm')
-rw-r--r-- | Master/texmf-dist/tex/optex/base/others.opm | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/optex/base/others.opm b/Master/texmf-dist/tex/optex/base/others.opm index 9b7e3a7ead8..b7ad0556fc4 100644 --- a/Master/texmf-dist/tex/optex/base/others.opm +++ b/Master/texmf-dist/tex/optex/base/others.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \uv {Miscenaleous <2023-12-23>} % preloaded in format +\_codedecl \uv {Miscenaleous <2024-06-27>} % preloaded in format \_doc ---------------------------- \`\useOpTeX` and \`\useoptex` are declared as `\relax`. @@ -94,9 +94,8 @@ First usage of `\lipsum` reads the \LaTeX/ file `lipsum.ltd.tex` by \`\_lipsumload` and prints the selected paragraph(s). Next usages of `\lipsum` - prints the selected paragraph(s) from memory. This second and more - usages of `\lipsum` are fully expandable. If you want to have all - printings of `\lipsum` expandable, use dummy `\lipsum[0]` first. + prints the selected paragraph(s) from memory. + `\lipsum` is fully expandable. `\lipsum` adds `\_par` after each printed paragraph. If you don't need such `\_par` here, use \`\lipsumtext``[<number>]` or `\lipsum[<number>.]` @@ -111,14 +110,15 @@ \_def\_lipsumA #1.#2]#3{\_ifx^#2^\_lipsumB #1\_empty-\_empty\_fin \_else \_lipsumdot[#1].\_fi} \_def\_lipsumB #1-#2\_empty#3\_fin{% \_fornum #1..\_ifx^#2^#1\_else#2\_fi \_do {\_lipsumtext[##1]\_par}} -\_def\_lipsumload{{% - \_setbox\_nonebox=\_vbox{\_tmpnum=0 % vertical mode during \input lipsum.ltd.tex +\_def\_lipsumload{\_beglocalcontrol + {\_setbox\_nonebox=\_vpack{\_tmpnum=0 % vertical mode during \input lipsum.ltd.tex \_def\ProvidesFile##1[##2]{}% \_def\SetLipsumLanguage##1{}% \_def\NewLipsumPar{\_incr\_tmpnum \_sxdef{_lip:\_the\_tmpnum}}% \_opinput {lipsum.ltd.tex}% - \_global\_let\_lipsumload=\_empty - }}} + \_glet\_lipsumload=\_empty + }}% + \_endlocalcontrol} \_def\_lipsumdot[#1]{\_lipsumload \_ea\_ea\_ea \_lipsumdotA \_csname _lip:#1\_endcsname.\_fin} \_def\_lipsumdotA #1.#2\_fin {#1} @@ -145,25 +145,29 @@ the `<cs-name>`. \_cod ----------------------------- -\_def\_regtrick#1{\_ifx#1\_undefined\_def#1{\_loadtrick#1#1}\_else\_badtrick\_fi} -\_def\_loadtrick#1{\_resetnamespace{optextrick}\_setctable\_optexcatcodes +\_def\_regtrick#1{\_ifx#1\_undefined\_def#1{\_loadtrickD#1}\_else\_badtrick\_fi} +\_def\_loadtrickD#1{\_loadtrick#1#1} +\_def\_loadtrick#1{\_beglocalcontrol + \_resetnamespace{optextrick}\_setctable\_optexcatcodes \_savecatcodetable\_tmpcatcodes \_catcodetable\_tmpcatcodes \_long\_def\_loadtrickA ##1\_trick##2#1##3;{##1}% \_wlog{Loading trick macros for \_string#1}% - \_setbox\_nonebox=\_vbox{\_globaldefs=1 \_ea\_loadtrickA \_input {optex-tricks.opm}}% + \_setbox\_nonebox=\_vpack{\_globaldefs=1 \_ea\_loadtrickA \_input {optex-tricks.opm}}% \_restorectable \_endnamespace + \_endlocalcontrol } \_def\_trick #1;{\_endinput} \_public \loadtrick ; \_xargs \_regtrick \begfile \createfile \beglua \begLUA \logginglua - \sethours \setminutes \setseconds \setweekday \showpglists \runsystem + \sethours \setminutes \setseconds \setweekday \showpglists \shownodes \runsystem \directoutput \algol \scaleto \scaletof \ttlineref \easylist \keepstyle \fcread \shadedframe \roundframe \cancel \ignoreinspic \keystroke \colortab \crx \crtop \crbot \crmid \longtable \vcent \vbot \tnote \tabnodes \tablebefore \framedblocks \twoblocks \pstart \settabs \import \incrpp \ispageodd \iniseccc \seccc \makeLOF \makeLOT \captionF \captionT \correctvsize \pgforeground - \onlyifnew ; + \onlyifnew \thedimen \rebox \leftfill \rightfill \lrfill \directchar + \xreplstring \replmacro \tdnum ; \_sdef{_item:m}{\_loadtrick{\style m}\_cs{_item:m}} \_doc ----------------------------- @@ -240,6 +244,10 @@ \_endcode +2024-06-27 \_loadtrickD introduced in order to save format size. +2024-03-11 \_lipsumload+\_loadtrick: \vpack used instead \vbox. +2024-03-04 \_beglocalcontrol used in \_lipsumload. +2024-02-18 \_beglocalcontrol used in \_loadtrik. 2023-12-23 \_nonebox instead box 0 introduced. 2023-10-17 \_loadtrick introduced. 2022-05-04 \lipsum[<num>]. changed to \lipsum[<num>.] to keep macro expandable. |