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.tex8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac.tex b/Master/texmf-dist/tex/csplain/opmac/opmac.tex
index fa60ecc3a8f..74883ed93cc 100644
--- a/Master/texmf-dist/tex/csplain/opmac/opmac.tex
+++ b/Master/texmf-dist/tex/csplain/opmac/opmac.tex
@@ -1613,9 +1613,10 @@
\def\magscale[#1]{\mag=#1\def\trueunit{true}%
\ifdim\pgwidth=0pt \else \truedimen\pgwidth \truedimen\pgheight \fi
\ifx\pdfpagewidth\undefined \else
- \truedimen\pdfpagewidth \truedimen\pdfpageheight
- \pdfhorigin=1truein \pdfvorigin=1truein % Origin is independent off \mag
- \fi}
+ \truedimen\pdfpagewidth \truedimen\pdfpageheight
+ \ifx\pdfhorigin\undefined\else
+ \pdfhorigin=1truein \pdfvorigin=1truein % Origin is independent off \mag
+ \fi\fi}
\def\truedimen#1{\ifx\trueunit\empty \else#1=\expandafter\ignorept\the#1truept \fi}
%%%%%%%%%%%%%% XeTeX specific + REF file is read now -- sec 3.26 in opmac-d.pdf
@@ -1766,5 +1767,6 @@ May 2016 \replacestrings improved
\bfshape: \everymath={\boldmath} instead \boldmath directly
\tskip corrected
Jun. 2016 \thefontsize: \fontdim=#1\ptunit added.
+ \pdfhvorigin unknown in XeTeX, bug fixed
%%%%%%%%%%%%%% End of opmac.tex