texlive[48552] Master/texmf-dist/tex/csplain/opmac/opmac.tex: csplain

commits+karl at tug.org commits+karl at tug.org
Sun Sep 2 23:17:18 CEST 2018


Revision: 48552
          http://tug.org/svn/texlive?view=revision&revision=48552
Author:   karl
Date:     2018-09-02 23:17:18 +0200 (Sun, 02 Sep 2018)
Log Message:
-----------
csplain (2sep18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/csplain/opmac/opmac.tex

Modified: trunk/Master/texmf-dist/tex/csplain/opmac/opmac.tex
===================================================================
--- trunk/Master/texmf-dist/tex/csplain/opmac/opmac.tex	2018-09-02 21:16:59 UTC (rev 48551)
+++ trunk/Master/texmf-dist/tex/csplain/opmac/opmac.tex	2018-09-02 21:17:18 UTC (rev 48552)
@@ -5,7 +5,7 @@
 %% The history of versions is at the end of this file, after \endpinput
 
 \ifx\OPmacversion\undefined \else \endinput \fi
-\def\OPmacversion{Mar. 2018a}  
+\def\OPmacversion{May 2018}  
 \immediate\write16{This is OPmac (Olsak's Plain macros), version <\OPmacversion>}
 
 %%%%%%%%%%%%%% Basic macros, sec. 3.1 in opmac-d.pdf
@@ -324,7 +324,7 @@
 
 %%%%%%%%%%%%%% Chapters, sections, subsections -- sec. 3.8 in opmac-d.pdf
 
-\def\printchap#1{\vfil\break
+\def\printchap#1{\vfill\supereject
   {\chapfont \noindent \mtext{chap} \dotocnum{\thetocnum}\par
    \nobreak\smallskip\noindent #1\nbpar}\mark{}%
   \nobreak \remskip\bigskipamount \firstnoindent
@@ -355,6 +355,7 @@
 \eoldef\chap#1{\ifnonum\else \global\advance\chapnum by1 \fi
   \chaphook {\globaldefs=1 \secnum=0 \seccnum=0 \tnum=0 \fnum=0 \dnum=0}\relax
   \edef\thechapnum{\the\chapnum}\let\thetocnum=\thechapnum 
+  \edef\thesecnum{\othe\chapnum.\the\secnum}%
   \def\dotocnumafter{\wtotoc0\bfshape{#1}}%
   \printchap{#1}\resetnonumnotoc
 }
@@ -913,7 +914,7 @@
 \def\linkactive[#1:#2]#3#4{\leavevmode\pdfstartlink height.9em depth.3em
       \pdfborder{#1} goto name{#1:#2}\relax {#3#4}\pdfendlink
 }
-\def\link[#1]#2#3{\leavevmode#3}
+\def\link[#1]#2#3{\leavevmode{#3}}
 
 \def\urllink[#1:#2]#3{{\let~=\relax \let\\=\relax \let\{=\relax \let\}=\relax
    \leavevmode\pdfstartlink height.9em depth.3em
@@ -921,10 +922,10 @@
    {\def~{\nobreak\space}\urlcolor#3}\pdfendlink}%
 }
 \def\toclink#1{\toclinkA{#1}}
-\def\pglink#1{\pgfolioA{#1}\relax}
-\def\citelink#1#2{\leavevmode#2}
-\def\reflink[#1]#2{\leavevmode#2}
-\def\ulink[#1]#2{{\leavevmode#2}}
+\def\pglink#1{\leavevmode{\pgfolioA{#1}}}
+\def\citelink#1#2{\leavevmode{#2}}
+\def\reflink[#1]#2{\leavevmode{#2}}
+\def\ulink[#1]#2{\leavevmode{#2}}
 \def\urlcolor{}
 
 \def\hyperlinks#1#2{%
@@ -1814,5 +1815,9 @@
            \fnotetext: \everypar={} added (bug correction)
 Mar. 2018  \frame: \relax after \kern\hhkern added (bug correction)
 Mar. 2018a \uv defined as \long
+May  2018  \chap: \edef\thesecnum added (J. Sustek)
+           \printchap: \vfill\supereject instead \vfil\break
+           \link: argument in group in both: \hyperlinks on/off (J. Sustek)
 
 %%%%%%%%%%%%%% End of opmac.tex
+



More information about the tex-live-commits mailing list