summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-02-16 19:25:08 +0000
committerKarl Berry <karl@freefriends.org>2009-02-16 19:25:08 +0000
commit48bdc1675c48cf0e776eccb67e28c39e7a2f2246 (patch)
treec8b4074e1b8b6644ca276c4aa7a07af2e537f482 /Master
parent427f333a60437b2607c826d72df6f8693a9d2a65 (diff)
add nopaper size for -t
git-svn-id: svn://tug.org/texlive/trunk@12172 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf/dvips/config/config.ps28
1 files changed, 17 insertions, 11 deletions
diff --git a/Master/texmf/dvips/config/config.ps b/Master/texmf/dvips/config/config.ps
index 812c13910e4..c0c7a80817c 100644
--- a/Master/texmf/dvips/config/config.ps
+++ b/Master/texmf/dvips/config/config.ps
@@ -1,3 +1,4 @@
+% $Id$
% config.ps - configuration file for dvips.
% Tomas Rokicki, Thomas Esser, Karl Berry, et al., 1986ff, public domain.
@@ -51,18 +52,18 @@ j
% Remove the comment and adjust the name:
% p +myfonts.map
-% If we have setpagedevice, use that.
-% else if we have the a4 resp. letter operator, use that.
-% else do nothing to set the page size.
-%
% In the past, the a4size and letterSize definitions did not set the
-% page size, but we want to set it if we can so that ps2pdf can work
-% properly. Here, a4 and a4size, and letter and letterSize, are
-% identical, and we prefer the a4/letter names -- texconfig uses them.
-
-% 0 0 595 842 is the right bounding box that applications expect
-% for A4. Since dvips always rounds up, choose something slightly
-% smaller for our paper size.
+% paper size, but we want to set it if we can so that ps2pdf can work
+% properly. So, a4 and a4size, and letter and letterSize, are made
+% identical here, and we prefer the a4/letter names -- texconfig uses them.
+%
+% In the definitions below, if we have setpagedevice, use that.
+% Else if we have the a4 resp. letter operator, use that.
+% Else do nothing to set the page size.
+%
+% 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.)
@ a4 210mm 297mm
@+ ! %%DocumentPaperSizes: a4
@@ -583,6 +584,11 @@ 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
@+ statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {
@+ setpageparams } stopped end } { true } ifelse { statusdict /setpage known