🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #319

Re: Help! What do these options mean?

#319
From: Jerry Leichter
Date: Fri, 14 Jul 1989 19:53
67 lines
3671 bytes
In article <3222@wpi.wpi.edu>, john@wpi.wpi.edu (John F Stoffel) writes...
>Hello,
>	I'm having a slight problem that is driving me up the wall.  I
>have a file I'm printing, and instead of printing out all 33 pages to
>make sure I did everything right, I want to just print out the first
>three pages.  I run the file through latex and I get the .dvi file.  I
>then run it through dvijep, which works well when printing *all* of
>the pages, but I can't get it to print only the first three....
>	I then tried to do a man dvijep, but I couldn't get anything
>out of man, it just don't exist at our site.  The man pages we *do*
>have for dvi2ps have totally different options.

First of all, complain loudly to your site manager.  dvijep comes with
excellent documentation - a user's manual, a man page, and even an internals
manual.  Someone has neglected to make them available to users.

To solve your immediate problem:  Page ranges are selected with the -o
option, whose syntax is:

	-o<first>:<last>:<step>

where <first> is the PHYSICAL page number of the first page to print, <last>
is the corresponding last page, and <step> is the inter-page increment.  That
is, the pages printed are <first>, <first>+<step>, <first>+2<step>, ...
All but <first> are optional; the defaults are <last>=<first> (i.e., print
just one page) and <step>=1.  (In case you are wondering why <step> is there:
If foo is two-sided, then you do dvijep -o1:9999:2 to print the "odd pages",
stick the paper back into the printer, and do dvijep -o2:9999:2 to print the
corresponding even pages.)

Also, page numbers can be negative, counting from the last page (-1) back.

Notes:
	- NO SPACE between -o and the page numbers;
	- By a "physical page number", I mean just that:  Count pages, don't
		look at TeX's page numbers.  dvijep's log file will show you
		the correspondence - as it works on each page, it outputs
		something like [p{t}] to show that it is on TeX page t, phy-
		sical page p.
	- Keep the values of <first>, <last>, and <step> less than 32768.
		They are parsed as 16-bit values, and random things happen
		if you try something like -o1:99999.  (This is a minor bug
		of all existing versions of the software.)
	- You can have multiple -o options to select disjoint page ranges.

Other useful options:

	-b reverses the order of the pages from the default.  By default,
		dvijep prints pages from last to first, since a LaserJet Plus
		stacks them in reverse order.  A LaserJet II, however, stacks
		pages in normal order.
	-c<n> prints <n> copies of each page.  You have to collate them.
	-x<d> and -y<d> change the x or y offset from the standard 1in each
		to the dimension <d>, specified exactly as in TeX (e.g., 10pt)
		except that NO spaces are allowed, nor font-relative units
		(em, ex), nor "true" sizes.

> 
>	Another related problem/question.  I know there is a 'twoside'
>document-style option and it is the default when using the 'book'
>document-style.  Is there a way  to turn it off with a 'oneside'
>option or should I just use the 'report' document style?
> 

Books can be produced only in two-sided mode.

							-- Jerry
Technical Details
Message-ID: <66475@yale-celray.yale.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!yale!leichter

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!yale!leichter
From: leichter@CS.YALE.EDU (Jerry Leichter)
Newsgroups: comp.text
Subject: Re: Help!  What do these options mean?
Message-ID: <66475@yale-celray.yale.UUCP>
Date: 14 Jul 89 19:53:28 GMT
Sender: root@yale.UUCP
Organization: Yale Computer Science Department, New Haven, Connecticut, USA
Lines: 67
X-from: leichter@CS.YALE.EDU (Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU))