summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/opmac/opmac.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac/opmac.tex')
-rw-r--r--Master/texmf-dist/tex/csplain/opmac/opmac.tex14
1 files changed, 9 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac.tex b/Master/texmf-dist/tex/csplain/opmac/opmac.tex
index 71833814afc..42dc999a998 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{Apr. 2013}
+\def\OPmacversion{May 2013}
\immediate\write16{This is OPmac (Olsak's Plain macros), version <\OPmacversion>}
@@ -971,7 +971,7 @@
%%%%%%%%%%%%%% Outlines -- sec. 3.17 in opmac-d.pdf
-\def\outlines#1{\openref\ifx\toclist\empty
+\def\outlines#1{\pdfcatalog{/PageMode/UseOutlines}\openref\ifx\toclist\empty
\opwarning{\noexpand\outlines -- data unavailable. TeX me again}%
\else
{\let\tocline=\outlinesA
@@ -1014,7 +1014,7 @@
\fi
}
\def\toasciidata{% Removes Czech+Slovak accents
- AA\'AA\"AA\'aa\" aaBBCC\v CC\v ccDD\v DD\v ddEE\'EE\v EE\'ee\v ee%
+ AA\'AA\"AA\'aa\"aaBBCC\v CC\v ccDD\v DD\v ddEE\'EE\v EE\'ee\v ee%
FFGGHHII\'II\'iiJJKKLL\'LL\v LL\'ll\v llMMNN\v NN\v nnOO\'OO\"OO\^OO%
\'oo\"oo\^ooPPQQRR\v RR\v rrSS\v SS\v ssTT\v TT\v ttUU\'UU\"UU\r UU%
\'uu\"uu\r uuVVWWXXYY\'YY\'yyZZ\v ZZ\v zz%
@@ -1511,6 +1511,7 @@
\newdimen\pgwidth \newdimen\pgheight \pgwidth=0pt
\newdimen\shiftoffset
+\newif\ifmarginshook \marginshookfalse
\def\margins/#1 #2 (#3,#4,#5,#6)#7 {\def\tmp{#7}%
\ifx\tmp\empty
@@ -1537,10 +1538,11 @@
\advance\vsize -#5\tmp \advance\vsize -#6\tmp
\advance\voffset #5\tmp
\fi\fi
- \if 1#1\else \if 2#1% double-page layout
+ \if 1#1\shiftoffset=0pt \else \if 2#1% double-page layout
\shiftoffset=\pgwidth \advance\shiftoffset -\hsize
\advance\shiftoffset -2\hoffset \advance\shiftoffset -2in
- \addto\pghook{\ifodd\pageno \else \advance\hoffset \shiftoffset \fi}
+ \ifmarginshook \else \marginshooktrue
+ \addto\pghook{\ifodd\pageno \else \advance\hoffset \shiftoffset \fi}\fi
\else \opwarning{use \string\margins/1 or \string\margins/2}%
\fi\fi\fi
}
@@ -1592,6 +1594,8 @@ Apr. 2013 \table in \table allowed, \catcode`\|=12 set in \table.
\printsec(c): \ifnum\lastpenalty added.
\urlink: ``~ removing'' corrected
{\em text}\macro error corrected.
+May 2013 \margins (2pages laylout) can be redefined by new \margins
+ \outlines use \pdfcatalog{/PageMode/UseOutlines}
%%%%%%%%%%%%%% End of opmac.tex