From 277c704145fc53d03e29c11ca1f20c6de294897e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 4 Aug 2022 20:34:18 +0000 Subject: optex (4aug22) git-svn-id: svn://tug.org/texlive/trunk@64050 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/optex/base/sections.opm | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/optex/base/sections.opm') diff --git a/Master/texmf-dist/tex/optex/base/sections.opm b/Master/texmf-dist/tex/optex/base/sections.opm index 25d31cabaa2..9ff2c2d4367 100644 --- a/Master/texmf-dist/tex/optex/base/sections.opm +++ b/Master/texmf-dist/tex/optex/base/sections.opm @@ -1,6 +1,6 @@ %% This is part of the OpTeX project, see http://petr.olsak.net/optex -\_codedecl \chap {Titles, chapters, sections, subsections <2021-03-03>} % preloaded in format +\_codedecl \chap {Titles, chapters, sections, subsections <2022-08-02>} % preloaded in format \_doc --------------------------- We are using scaled fonts for titles @@ -69,7 +69,7 @@ \enditems \_cod --------------------------- -\_def\_printchap #1{\_vfill\_supereject +\_def\_printchap #1{\_vfill\_supereject \_prevdepth=0pt \_vglue\_medskipamount % shifted by topkip+\medskipamount {\_chapfont \_noindent \_mtext{chap} \_printrefnum[@]\_par \_nobreak\_smallskip @@ -78,13 +78,13 @@ \_firstnoindent } \_def\_printsec#1{\_par - \_abovetitle{\_penalty-400}\_bigskip + \_abovetitle{\_penalty-151}\_bigskip {\_secfont \_noindent \_raggedright \_printrefnum[@\_quad]#1\_nbpar}\_insertmark{#1}% \_nobreak \_belowtitle{\_medskip}% \_firstnoindent } \_def\_printsecc#1{\_par - \_abovetitle{\_penalty-200}{\_medskip\_smallskip} + \_abovetitle{\_penalty-101}{\_medskip\_smallskip} {\_seccfont \_noindent \_raggedright \_printrefnum[@\_quad]#1\_nbpar}% \_nobreak \_belowtitle{\_medskip}% \_firstnoindent @@ -295,15 +295,17 @@ \_doc ----------------------------- \OpTeX/ sets `\headline={}` by default, so no running headings are printed. - You can activate the running headings by following code, for example: + You can activate the running headings by following code, for example. + See also \ulink[https://github.com/olsak/OpTeX/issues/100]{issue 100}. \begtt - \addto\_chapx {\_edef\_runningchap {\_thechapnum: \_unexpanded\_ea{\_savedtitle}}} + \addto\_chapx {\globaldefs=0 \vfil\break % headline of previous chapter is printed + \xdef\_runningchap {\_thechapnum: \unexpanded\_ea{\_savedtitle}}} \def \formathead #1#2{\isempty{#1}\iffalse #1: #2\fi} \headline = {% \ifodd \pageno \hfil \ea\formathead\firstmark{}{}% \else - Chapter: \runningchap \hfil + \ifx\_runningchap\_undefined \else Chapter \_runningchap \fi \hfil \fi } \endtt @@ -459,6 +461,8 @@ \_endcode % ------------------------------------- +2022-08-02 Penalties in \_printsec, \_printsecc changed +2022-07-11 \_printchap: \_prevdepth=0pt added, see issue 100 2021-03-03 \_captionsep introduced, \_othe used in \_thetnum, \_thefnum. 2021-02-09 \thisoutline implemented 2021-01-26 \_nl: \unskip added -- cgit v1.2.3