diff options
Diffstat (limited to 'macros/luatex/optex/base/output.opm')
-rw-r--r-- | macros/luatex/optex/base/output.opm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/macros/luatex/optex/base/output.opm b/macros/luatex/optex/base/output.opm index 8bf02af753..5bb93c2477 100644 --- a/macros/luatex/optex/base/output.opm +++ b/macros/luatex/optex/base/output.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \nopagenumbers {Output routine <2020-03-28>} % preloaded in format +\_codedecl \nopagenumbers {Output routine <2021-02-25>} % preloaded in format \_doc ----------------------------- \`\_optexoutput` is the default output routine. You can create another... @@ -38,7 +38,8 @@ (for headlines and footlines, for instance). This value is set from the current value of `\hsize` when \`\_setxhsize` macro is called. This macro destroys itself, so the value is set only once. Typically it is - done when first \^`\_optexoutput` routine is called (see \^`\_begoutput`). + done in \^`\margins` macro or + when first \^`\_optexoutput` routine is called (see \^`\_begoutput`). Or it is called at the begining of the \^`\begtt`...`\endtt` environment before `\hsize` value is eventually changed by the user in this environment. \_cod ----------------------------- @@ -130,7 +131,7 @@ \_def \_folio {\_ifnum\_pageno<0 \_romannumeral-\_pageno \_else \_number\_pageno \_fi} \_def \_nopagenumbers {\_footline={}} \_def \_advancepageno {% - \_ifnum\_pageno<0 \_global\_advance\_pageno by-1 \_else \_incr\_pageno \_fi + \_ifnum\_pageno<0 \_decr\_pageno \_else \_incr\_pageno \_fi } % increase |pageno| \_def \_raggedbottom {\_topskip=\_dimexpr\_topskip plus60pt \_pgbottomskip=0pt plus1fil\_relax} \_def \_normalbottom {\_topskip=\_dimexpr\_topskip \_pgbottomskip=0pt\_relax} @@ -214,10 +215,10 @@ \_global\_let\_draftfont=\_draftfont } \_def \_draftbox #1{\_setbox0=\_hbox{#1}% - \_kern.5\_vsize \_kern4.5\_wd0 - \_hbox to0pt{\_kern.5\_xhsize \_kern-1\_wd0 + \_kern.5\_vsize \_kern\_voffset \_kern4.5\_wd0 + \_hbox to0pt{\_kern.5\_xhsize \_kern\_hoffset \_kern-2\_wd0 \_pdfsave \_pdfrotate{55}\_pdfscale{10}{10}% - \_hbox to0pt{\_localcolor\LightGrey \_box0\_hss}% + \_hbox to0pt{\_localcolor\_setgreycolor{.8}\_box0\_hss}% \_pdfrestore \_hss}% } @@ -260,5 +261,7 @@ The output routine \^`\_optexoutput` is similar as in plain \TeX. It does: \_endinput +2021-02-25 \_draftbox improved +2021-02-15 \_advance -> \_decr 2020-05-12 \vfootB: \uskip -> \unskip bug fixed 2020-03-28 Released |