[comp.text.tex] How can I offset output from dvips

hugh@slee01.srl.ford.com (Hugh Fader) (11/21/90)

I am running a Sparcstation 1 under SunOS 4.1 with a LaserWriter II. I
just installed dvips (from neon.stanford.edu) and it works fine except
for one problem -- the bottom of the page (i.e. the page number) is
clipped by a small amount (about 10pt).

Up until now, I have been using MC-TeX, which has arguments for X and Y
offset which I used to fix this. Dvips doesn't seem to allow for this.
Does anyone out there know how to solve this problem?

Thanks in advance.
--
Hugh Fader
hugh@slee01.srl.ford.com

tas@tasman.cc.utas.edu.au (Tasman Derk Van Ommen) (11/21/90)

hugh@slee01.srl.ford.com (Hugh Fader) writes:

>I am running a Sparcstation 1 under SunOS 4.1 with a LaserWriter II. I
>just installed dvips (from neon.stanford.edu) and it works fine except
>for one problem -- the bottom of the page (i.e. the page number) is
>clipped by a small amount (about 10pt).

Try using the -t <modename> command line option to set the paper size
to either letter, a4 or legal (the other option, landscape does not
sound appropriate).   viz.  dvips -ta4 mydoc

Once you have found the right size you can put this option in your
config.ps file.

ajcd@cs.edinburgh.ac.uk (Angus Duggan) (11/23/90)

In article <tas.659154687@tasman>, tas@tasman.cc.utas.edu.au (Tasman Derk Van Ommen) writes:
> hugh@slee01.srl.ford.com (Hugh Fader) writes:
> 
> >I am running a Sparcstation 1 under SunOS 4.1 with a LaserWriter II. I
> >just installed dvips (from neon.stanford.edu) and it works fine except
> >for one problem -- the bottom of the page (i.e. the page number) is
> >clipped by a small amount (about 10pt).
> 
> Try using the -t <modename> command line option to set the paper size
> to either letter, a4 or legal (the other option, landscape does not
> sound appropriate).   viz.  dvips -ta4 mydoc
> 
> Once you have found the right size you can put this option in your
> config.ps file.

You can also put a line like:

        h printer-offset.ps

into your config.printer file, and have a PostScript header file called
printer-offset.ps in the header directory which contains something like:

        % printer-offset.ps: translate printer origin 15/72 inch up
        0 15 translate

The default header directory(ies) is(are) specified by the HEADERPATH variable
in the Makefile.

This is one of the nice things about dvips---it is really easy to set up
configurations for multiple printers using the config.printer files.

A.
-- 
Angus Duggan, Department of Computer Science,	| I'm pink, therefore I'm Spam.
University of Edinburgh, JCMB,			| JANET:  ajcd@uk.ac.ed.lfcs
The King's Buildings, Mayfield Road,		| VOICE:  (UK) 031 650 5126
Edinburgh, EH9 3JZ, Scotland.	| OR:  ajcd%lfcs.ed.ac.uk@nsfnet-relay.ac.uk

teexdwu@ioe.lon.ac.uk (DOMINIK WUJASTYK) (11/24/90)

In article <2424@skye.cs.ed.ac.uk> ajcd@cs.edinburgh.ac.uk (Angus Duggan) writes:
>
>This is one of the nice things about dvips---it is really easy to set up
>configurations for multiple printers using the config.printer files.
>

I was rather worried that it didn't seem possible with dvips to specify
the paper size very precisely: just a4, letter, etc.

What about if I am printing a tiny booklet, say with pages only 3
inches wide, and 4 inches high, and sending output to bromide.  I don't
want to pay for an a4 page area of bromide for each of my 3x4 pages.
In DVItoPS you can specify the paper size exactly, if it isn't one of
the standard preset sizes, and this seems to me desirable.

Is there some simple way to do this with dvips?  Without needing to
know PostScript, preferably?

Dominik

rokicki@Neon.Stanford.EDU (Tomas G. Rokicki) (11/24/90)

> I was rather worried that it didn't seem possible with dvips to specify
> the paper size very precisely: just a4, letter, etc.
> What about if I am printing a tiny booklet, say with pages only 3
> inches wide, and 4 inches high, and sending output to bromide.  I don't
> want to pay for an a4 page area of bromide for each of my 3x4 pages.

Do you have a printer that cuts the paper down to size automatically for you,
and only feeds tiny sheets?  Or what?  I don't understand what you mean.
What's this `pay for an a4 page area'?

-tom

teexdwu@ioe.lon.ac.uk (DOMINIK WUJASTYK) (11/25/90)

In article <1990Nov24.055535.9979@Neon.Stanford.EDU> rokicki@Neon.Stanford.EDU (Tomas G. Rokicki) writes:
>
>> I was rather worried that it didn't seem possible with dvips to specify
>> the paper size very precisely: just a4, letter, etc.
>> What about if I am printing a tiny booklet, say with pages only 3
>> inches wide, and 4 inches high, and sending output to bromide.  I don't
>> want to pay for an a4 page area of bromide for each of my 3x4 pages.
>
>Do you have a printer that cuts the paper down to size automatically for you,
>and only feeds tiny sheets?  Or what?  I don't understand what you mean.
>What's this `pay for an a4 page area'?

Tom, when I send my files over Janet to the Univ. of London's Linotronic,
the results come back to me printed on a long, uncut roll of bromide.
Like lavatory paper (the final denouement of TeX's anatomical metaphor).
The text is normally printed parallel to the long edge of the bromide:

-------------------------------------------------------------------
 ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  
 ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~ 
 ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~
 ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~  ~~~~~ 
-------------------------------------------------------------------

So if I have a tiny print area, but an a4 "page", there is masses
of white bromide for which I am still charged.  

-------------------------------------------------------------------
 ~~~~       ~~~~       ~~~~       ~~~~       ~~~~       ~~~~      
 ~~~~       ~~~~       ~~~~       ~~~~       ~~~~       ~~~~      
 ~~~~       ~~~~       ~~~~       ~~~~       ~~~~       ~~~~      
 ~~~~       ~~~~       ~~~~       ~~~~       ~~~~       ~~~~      
-------------------------------------------------------------------

Yes, my sheets are cut down, although it's not automatic: I usually do
it with a guillotine, by hand, although there may be machines that do
this.  But since it is only once per book, it isn't too arduous.  One
way round this is to use a tool like your dvidvi to jiggle the DVI 
pages around so that there are two "pages" per a4 page.  But it would
be simpler if I could just tell the Linotronic to start a new page after
a certain length, i.e., tell it my page width.

Dominik

rokicki@Neon.Stanford.EDU (Tomas G. Rokicki) (11/27/90)

>>> I was rather worried that it didn't seem possible with dvips to specify
>>> the paper size very precisely: just a4, letter, etc.

>>Do you have a printer that cuts the paper down to size automatically for you,
>>and only feeds tiny sheets?  Or what?  I don't understand what you mean.

>But it would be simpler if I could just tell the Linotronic to start a new
>page after a certain length, i.e., tell it my page width.

How does the Linotronic know the size to advance?  Does it use the global
document bounding box comment?  I may provide a special for setting that
(among other things, so figures from dvips can be included as graphics.)
Could you get me that information?  (The choices as I see them are that it
either advances it a fixed amount each page, or advances it based on the
bounding box, or advances it based on some parameter entered by hand.)

-tom

amanda@visix.com (Amanda Walker) (11/28/90)

In article <1990Nov27.003356.9886@Neon.Stanford.EDU>
rokicki@Neon.Stanford.EDU (Tomas G. Rokicki) writes:
>How does the Linotronic know the size to advance?

It just uses the current page size.  There are standard letter/a4/etc.
operators, as well as an operator called `setpageparams' which lets you set
any page size that the controller itself can handle.  I have used this to set
11.5 x 17.5" pages to allow for two-up pages with cut and fold marks, for
example.

If the pages are small enough, it's also possible to print two-up across the
roll, which can also lower the amount of film or bromide used, especially on
an L500 (which has a 15" carriage instead of the L300's 12" one).

I'd advise trying to get a copy of the Lino "PostScript Supplement," which
explains all of this stuff in detail.  If you can't find one, though, I can
post a short description of `setpageparams' operator.

-- 
Amanda Walker						      amanda@visix.com
Visix Software Inc.					...!uunet!visix!amanda
--
X Windows: Warn you friends about it.