john@wpi.wpi.edu (John F Stoffel) (07/14/89)
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. Here is
what it gives when I type "dvijep -"
/usr1/john/tex> dvijep -
[TeX82 DVI Translator Version 2.10]
[Hewlett-Packard LaserJet Plus laser printer]
Usage: dvijep {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-x#{units}} {-y#{units}} dvifile(s)
For documentation on this program, try the operating command(s):
man dvi
or
apropos dvi
dvijep: FATAL--option(): - is not a legal switch
Current TeX page counters: [0]
/usr1/john/tex>
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. Can anyone help me
with this? Specifically, I would like to know what all the above
options do in dvijep. Is there a newer version of dvijep and where
could I get hold of it?
I looked through both "The TeXbook" and "A document
preparation system, LaTeX" and neither had much to say on dvi
conversion programs.
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?
Thanks for all of your help! Please e-mail in preference to
reply to comp.text since I don't have the time to read this group all
that often. And thanks to leslie lamport (thanks 2.432 e34 :-) for
LaTeX!
--
John Stoffel | john@wpi.bitnet | What can you expect of a day
WPI, Box 2432 | john@wpi.wpi.edu | that begins with getting up
Worcester, MA 01609 | husc6!m2c!wpi!john | in the morning?
--Damm the Disclaimers! Full flame ahead!--leichter@CS.YALE.EDU (Jerry Leichter) (07/15/89)
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