summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/tex/plain/fixpdfmag/fixpdfmag.tex36
-rw-r--r--Master/texmf-dist/tpm/fixpdfmag.tpm22
-rw-r--r--Master/texmf/tpm/collection-plainextra.tpm1
3 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/plain/fixpdfmag/fixpdfmag.tex b/Master/texmf-dist/tex/plain/fixpdfmag/fixpdfmag.tex
new file mode 100644
index 00000000000..b19f3719657
--- /dev/null
+++ b/Master/texmf-dist/tex/plain/fixpdfmag/fixpdfmag.tex
@@ -0,0 +1,36 @@
+% fixpdfmag.tex
+% Author: Javier Bezos, 2007
+%
+% This is Public Domain. You are free to use, copy, modify,
+% distribute or whatever you want without restrictions. It is
+% unsupported, so please, do not contact the author, just
+% modify the file.
+%
+% Unfortunately, pdftex has changed recently its behaviour and
+% now the page size is affected by \magnification, usually not a
+% wanted effect. It has been proposed to modify Plain TeX when
+% used with pdftex, by making a few changes in the pdftex.ini
+% file, but many people do not know or simply do not want to
+% modify Plain TeX or a custom made format. This file provides
+% an alternative which requires to modify the documents, as
+% the following example illustrates:
+%
+% \magnification3000
+% \input fixpdfmag % <- after \magnification
+%
+% Hello
+% \bye
+%
+% If you are using a custom page size, it is preserved,
+% as it just converts pt units to truept ones.
+
+\ifx\pdfpageheight\undefined\else
+ \begingroup
+ \catcode`\@=11
+ \global\pdfpageheight\expandafter\getf@ctor\the\pdfpageheight truept
+ \global\pdfpagewidth\expandafter\getf@ctor\the\pdfpagewidth truept
+ \global\pdfhorigin\expandafter\getf@ctor\the\pdfhorigin truept
+ \global\pdfvorigin\expandafter\getf@ctor\the\pdfvorigin truept
+ \endgroup
+\fi
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tpm/fixpdfmag.tpm b/Master/texmf-dist/tpm/fixpdfmag.tpm
new file mode 100644
index 00000000000..c5bc4b5cfdd
--- /dev/null
+++ b/Master/texmf-dist/tpm/fixpdfmag.tpm
@@ -0,0 +1,22 @@
+<!DOCTYPE rdf:RDF SYSTEM "../../support/tpm.dtd">
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:TPM="http://texlive.dante.de/">
+ <rdf:Description about="http://texlive.dante.de/texlive/Package/fixpdfmag.zip">
+ <TPM:Name>fixpdfmag</TPM:Name>
+ <TPM:Type>Package</TPM:Type>
+ <TPM:Date>1970/01/01 00:00:00</TPM:Date>
+ <TPM:Version></TPM:Version>
+ <TPM:Creator>karl</TPM:Creator>
+ <TPM:Title>The fixpdfmag package.</TPM:Title>
+ <TPM:Description></TPM:Description>
+ <TPM:Author></TPM:Author>
+ <TPM:Size>1311</TPM:Size>
+ <TPM:License></TPM:License>
+ <TPM:Build/>
+ <TPM:RunFiles size="2099">
+texmf-dist/tex/plain/fixpdfmag/fixpdfmag.tex
+texmf-dist/tpm/fixpdfmag.tpm
+ </TPM:RunFiles>
+ <TPM:Provides>Package/fixpdfmag</TPM:Provides>
+ </rdf:Description>
+</rdf:RDF>
+
diff --git a/Master/texmf/tpm/collection-plainextra.tpm b/Master/texmf/tpm/collection-plainextra.tpm
index 35699e14798..e3c720bb2a2 100644
--- a/Master/texmf/tpm/collection-plainextra.tpm
+++ b/Master/texmf/tpm/collection-plainextra.tpm
@@ -20,6 +20,7 @@ A collection of add-on packages and macros for plain TeX.
<TPM:Requires>
<TPM:Package name="cellular"/>
<TPM:Package name="colortab"/>
+ <TPM:Package name="fixpdfmag"/>
<TPM:Package name="fontch"/>
<TPM:Package name="hyplain"/>
<TPM:Package name="jsmisc"/>