summaryrefslogtreecommitdiff
path: root/Master/texmf/dvips
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-26 18:30:44 +0000
committerKarl Berry <karl@freefriends.org>2009-09-26 18:30:44 +0000
commit02d42e247f1d59c636e0e28a687177a9ac7f3ce4 (patch)
treedaaba7a54773da13f77e69ca234fceb5c1658978 /Master/texmf/dvips
parenta072ab3fdb413ffeb05e0d5136400ad418d89623 (diff)
unknown paper size must come before nopaper in config.ps
git-svn-id: svn://tug.org/texlive/trunk@15465 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/dvips')
-rw-r--r--Master/texmf/dvips/config/config.ps17
1 files changed, 13 insertions, 4 deletions
diff --git a/Master/texmf/dvips/config/config.ps b/Master/texmf/dvips/config/config.ps
index c0c7a80817c..0d47766406e 100644
--- a/Master/texmf/dvips/config/config.ps
+++ b/Master/texmf/dvips/config/config.ps
@@ -64,6 +64,8 @@ j
% If you need to have no paper size stuff in the output at all, e.g., if
% you are producing a multi-page document for further processing, use
% -tnopaper (defined at end). (With a single-page document, you can use -E.)
+%
+% emacs-page
@ a4 210mm 297mm
@+ ! %%DocumentPaperSizes: a4
@@ -584,12 +586,19 @@ j
@+ if
@+ %%EndPaperSize
-% use -t nopaper to get no paper size stuff in the output at all.
-@ nopaper 0in 0in
-@+ % nopaper
-
% use -t unknown with a \special{papersize=...} for a nonstandard page size.
@ unknown 0in 0in
+@+ % dvips-unknown
@+ statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {
@+ setpageparams } stopped end } { true } ifelse { statusdict /setpage known
@+ { hsize vsize 1 statusdict begin { setpage } stopped pop end } if } if
+
+% use -t nopaper to get no paper size stuff in the output at all.
+% This should remain as the last thing in the file, because the first
+% 0in 0in entry is chosen when there is nothing better; ordinarily, we
+% want to that to be "unknown", so that the correct nonstandard paper
+% size is output, instead of just being omitted.
+% http://groups.google.com/group/fr.comp.text.tex/browse_thread/thread/1b08961cf9b8a5ab/6b1d0b32443905e3
+% and mactex mailing list thread from 24 Sep 2009 11:36:26.
+@ nopaper 0in 0in
+@+ % dvips-nopaper