diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-11 23:04:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-11 23:04:27 +0000 |
commit | 97be66f542a3bdec06dcf1444bc62e10ba3937e6 (patch) | |
tree | cde18043dedc33659a08bbc67f6dd9fdbf61affa /Master/texmf-dist/tex/csplain | |
parent | 3d301d39c8bdf35a29ba9f9c9595c7504f496baa (diff) |
csplain (11apr16)
git-svn-id: svn://tug.org/texlive/trunk@40414 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/csplain')
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex | 3 | ||||
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/opmac.tex | 35 |
2 files changed, 23 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex b/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex index 4b94be25b21..b12ebd554fd 100644 --- a/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex +++ b/Master/texmf-dist/tex/csplain/opmac/opmac-bib-iso690.tex @@ -98,7 +98,7 @@ \mtdef{bib.masthesis} {Master's Thesis} {Diplomová práce} {Diplomová práca} \mtdef{bib.phdthesis} {Ph.D. Thesis} {Disertační práce} {Dizertačná práca} \mtdef{bib.available} {Available from } {Dostupné na } {} -\mtdef{bib.availablealso} {Available also from } {Dostupné též na } {Dotupné tiež na } +\mtdef{bib.availablealso} {Available also from } {Dostupné též na } {Dostupné aj na } \mtdef{bib.citedate} {cit.~} {vid.~} {} \mtdef{bib.volume} {Vol.~} {ročník~} {} \mtdef{bib.number} {No.~} {č.~} {} @@ -932,3 +932,4 @@ Jan. 2016: \doyear -- unwanted space corrected ~ed. ~vyd. instead space ed., space vyd. \frenchspacing added Mar. 2016: et~al. -> , et~al. corrected. +Apr. 2016: Dostupne aj (in slovak) corrected diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac.tex b/Master/texmf-dist/tex/csplain/opmac/opmac.tex index fbd35930f14..6f7e5da9002 100644 --- a/Master/texmf-dist/tex/csplain/opmac/opmac.tex +++ b/Master/texmf-dist/tex/csplain/opmac/opmac.tex @@ -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. 2016} +\def\OPmacversion{Apr. 2016a} \immediate\write16{This is OPmac (Olsak's Plain macros), version <\OPmacversion>} %%%%%%%%%%%%%% Basic macros, sec. 3.1 in opmac-d.pdf @@ -41,10 +41,14 @@ \csname iftrue\expandafter\endcsname \fi}% end of \def\tmp \expandafter\tmp#1\endlistsep#2\end } -\long\def\isnextchar#1#2#3{\begingroup\def\tmpa{\endgroup#2}\def\tmpb{\endgroup#3}% +\long\def\isnextchar#1#2#3{\begingroup\toks0={\endgroup#2}\toks1={\endgroup#3}% \let\tmp=#1\futurelet\next\isnextcharA } -\def\isnextcharA{\ifx\tmp\next\expandafter\tmpa\else\expandafter\tmpb\fi} +\def\isnextcharA{\the\toks\ifx\tmp\next0\else1\fi\space} + +\def\eoldef#1{\def#1{\begingroup \catcode`\^^M=12 \eoldefA#1}% + \expandafter\def\csname\string#1:M\endcsname} +{\catcode`\^^M=12 \gdef\eoldefA#1#2^^M{\endgroup\csname\string#1:M\endcsname{#2}}} \def\maybebreak{\afterassignment\maybebreakA\tmpdim=} \def\maybebreakA{\ifvmode \vskip0pt plus\tmpdim \penalty-130 \vskip0pt plus-\tmpdim @@ -329,9 +333,9 @@ {\seccfont \noindent \dotocnum{\thetocnum\quad}#1\nbpar}% \nobreak \remskip\medskipamount \firstnoindent } -\def\tit#1\par{\vglue4em +\eoldef\tit#1{\vglue4em {\leftskip=0pt plus1fill \rightskip=\leftskip - \titfont \noindent #1\unskip\par}% + \titfont \noindent #1\par}% \nobreak\bigskip } \def\titfont{\typobase\typoscale[\magstep4/\magstep4]\bfshape} @@ -344,23 +348,23 @@ \newif\ifnotoc \notocfalse \def\notoc{\global\notoctrue} \newif\ifnonum \nonumfalse \def\nonum{\global\nonumtrue} -\def\chap#1\par{\ifnonum\else \global\advance\chapnum by1 \fi +\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 \def\dotocnumafter{\wtotoc0\bfshape{#1}}% - \printchap{#1\unskip}\resetnonumnotoc + \printchap{#1}\resetnonumnotoc } -\def\sec#1\par{\ifnonum\else \global\advance\secnum by1 \fi +\eoldef\sec#1{\ifnonum\else \global\advance\secnum by1 \fi \sechook {\globaldefs=1 \seccnum=0 \tnum=0 \fnum=0 \dnum=0}\relax \edef\thesecnum{\othe\chapnum.\the\secnum}\let\thetocnum=\thesecnum \def\dotocnumafter{\wtotoc1\rm{#1}}% - \printsec{#1\unskip}\resetnonumnotoc + \printsec{#1}\resetnonumnotoc } -\def\secc#1\par{\ifnonum\else \global\advance\seccnum by1 \fi +\eoldef\secc#1{\ifnonum\else \global\advance\seccnum by1 \fi \secchook {}\relax \edef\theseccnum{\othe\chapnum.\the\secnum.\the\seccnum}\let\thetocnum=\theseccnum \def\dotocnumafter{\wtotoc2\rm{#1}}% - \printsecc{#1\unskip}\resetnonumnotoc + \printsecc{#1}\resetnonumnotoc } \def\wtotoc#1#2#3{% #1 = level, #2 = info, #3 = titletext \ifnotoc\else @@ -479,7 +483,7 @@ \ifischap\advance\leftskip by\iindent\fi \ifnum#1>1 \advance\leftskip by\iindent\fi \toclinehook \noindent\llap{#2\toclink{#3}\enspace}% - {#2#4\unskip}\nobreak\tocdotfill\pglink{#5}\nobreak\hskip-2\iindent\null\par}} + {#2#4}\nobreak\tocdotfill\pglink{#5}\nobreak\hskip-2\iindent\null\par}} \def\tocdotfill{\leaders\hbox to.8em{\hss.\hss}\hskip 1em plus1fill\relax} \def\maketoc{\par \ifx\toclist\empty @@ -1199,9 +1203,9 @@ \edef\vrule{\orivrule width\the\tmpdim}} \long\def\frame#1{% - \hbox{\vrule\vtop{\vbox{\hrule\kern\vvkern{% + \hbox{\vrule\vtop{\vbox{\hrule\kern\vvkern \hbox{\kern\hhkern#1\kern\hhkern}% - }}\kern\vvkern\hrule}\vrule}} + }\kern\vvkern\hrule}\vrule}} %%%%%%%%%%%%%% \inspic -- sec. 3.20 in opmac-d.pdf @@ -1758,5 +1762,8 @@ Nov. 2015 \parskip=0 in \doverbinput, \vskip\parskip before first \ttskip Jan. 2016 \inspicpage introduced \isolangset: \chardef..Patt added Mar. 2016 \thefnote default changed: ^{num}) -> ^{num} +Apr. 2016 \frame: redundant group removed + \isnextchar improved (using \toks) + \eoldef introduced to \tit, \chap, \sec, \secc, see OPmac trick 0121 %%%%%%%%%%%%%% End of opmac.tex |