source: trunk/third/tex/xdvi/XDVI.RNH @ 9103

Revision 9103, 20.9 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9102, which included commits to RCS files with non-trunk default branches.
Line 
1.!
2.! This is a RUNOFF source file that produces a VMS-style HELP library
3.! for the XDVI program.
4.!
5.! This file was created by hand-converting XDVI.MAN.  The internal date
6.! in the XDVI.MAN file was "27 March 1990".  If you improve this file,
7.! please let me know.  Pete Siemsen,  siemsen@usc.edu
8.!
9.! Merged with patchlevel 8.001 help file for VMS by Scott Allendorf.
10.! Added new switches for patchlevel 10.  Scott Allendorf.
11.! Added new switches for patchlevel 11.  Scott Allendorf.
12.! Added new switches for patchlevel 14.  Scott Allendorf.
13.! Added new switches for patchlevel 16.  Scott Allendorf.
14.! Updated for patchlevel 17.             Scott Allendorf.
15.! Updated for patchlevel 18.             Scott Allendorf.
16.!
17.NO PAGING
18.NO FLAGS ALL
19.RIGHT MARGIN 71
20.LITERAL
21!
22! DO NOT EDIT THIS FILE.  It was produced by passing a .RNH file through
23! RUNOFF.  Edit the .RNH file instead.
24!
25.END LITERAL
26.LEFT MARGIN 1
27
28.INDENT -1
291 XDVI
30.BREAK
31XDVI is a program which runs under the DECWindows system. It is used to
32preview DVI files, such as those produced by TeX and LaTeX.
33.SKIP
34XDVI has the capability of displaying the file reduced by various
35(integer) factors, and also has a "magnifying glass" which allows one
36to see a small part of the unshrunk image momentarily.
37.SKIP
38Before displaying any page or part thereof, XDVI checks to see if
39the DVI file has changed since the last time it was displayed.  If this
40is the case, XDVI will reinitialize itself for the new DVI file.  For
41this reason, exposing parts of the XDVI window while TeX is running
42should be avoided.  This feature allows you to preview many versions
43of the same file while running XDVI only once.
44
45.SKIP
46Format:
47.SKIP
48.INDENT +3
49XDVI [Options] dvi_file
50
51.INDENT -1
522 Options
53.BREAK
54In addition to specifying the DVI file (with or without the .DVI extension),
55XDVI supports the following command line options.  If the option
56begins with a "+" instead of a "-", the option is restored to its
57default value.  By default, these options can be set via the resource
58names given in the description of each option.
59.INDENT -1
603 +
61.BREAK
62+<page>
63.SKIP
64Specifies the first page to show.  If + is given without a number, the
65last page is assumed; the first page is the default.
66.INDENT -1
673 -altfont
68.BREAK
69-altfont <font>
70.SKIP
71Declares a default font to use when the font in the DVI file cannot be
72found.  This is useful, for example, with PostScript fonts.
73.SKIP
74The resource name is ".altFont".
75.INDENT -1
763 -background
77.BREAK
78-background <color>
79.SKIP
80Determines the color of the background.  Same as -bg.
81.SKIP
82The resource name is ".background".
83.INDENT -1
843 -bd
85.BREAK
86-bd <color>
87.SKIP
88Determines the color of the window border.
89.SKIP
90The resource name is ".borderColor".
91.INDENT -1
923 -bg
93.BREAK
94-bg <color>
95.SKIP
96Determines the color of the background.
97.SKIP
98The resource name is ".background".
99.INDENT -1
1003 -bordercolor
101.BREAK
102-bordercolor <color>
103.SKIP
104Same as -bd.
105.INDENT -1
1063 -borderwidth
107.BREAK
108-borderwidth <width>
109.SKIP
110Specifies the width of the border of the window.  Same as -bw.
111.SKIP
112The resource name is ".borderWidth".
113.INDENT -1
1143 -bw
115.BREAK
116-bw <width>
117.SKIP
118Specifies the width of the border of the window.
119.SKIP
120The resource name is ".borderWidth".
121.INDENT -1
1223 -copy
123.BREAK
124Always use the copy operation when writing characters to the display.
125This option may be necessary for correct operation on a color display,
126but overstrike characters will be incorrect.  If greyscale anti-aliasing
127is in use, the -copy operation will disable the use of colorplanes and make
128overstrikes come out incorrectly.  See also -thorough.
129.SKIP
130The resource name is ".copy".
131.INDENT -1
1323 -cr
133.BREAK
134-cr <color>
135.SKIP
136Determines the color of the cursor.  The default is the
137color of the page border.
138.SKIP
139The resource name is ".cursorColor".
140.INDENT -1
1413 -debug
142.BREAK
143-debug <bitmask>
144.SKIP
145If nonzero, prints additional debugging information on standard output.
146The bitmask should be given as a decimal number.  The values of the bits
147are defined in the source file xdvi.h .
148.SKIP
149The resource name is ".debugLevel".
150.INDENT -1
1513 -density
152.BREAK
153-density <density>
154.SKIP
155Determines the density used when shrinking bitmaps for fonts.  A
156higher value produces a lighter font.  The default value is 40.
157.SKIP
158The resource name is ".densityPercent".
159.INDENT -1
1603 -display
161.BREAK
162-display <display>
163.SKIP
164Specifies the host, display, and screen to be used for displaying the DVI file.
165The display must be specified in the form node::display.screen.  The default
166is obtained from the logical name "DECW$DISPLAY", which may be defined using the
167SET DISPLAY command.
168.INDENT -1
1693 -fg
170.BREAK
171-fg <color>
172.SKIP
173Determines the color of the text (foreground).
174.SKIP
175The resource name is ".foreground".
176.INDENT -1
1773 -foreground
178.BREAK
179-foreground <color>
180.SKIP
181Same as -fg.
182.INDENT -1
1833 -gamma
184.BREAK
185-gamma <gamma>
186.SKIP
187Controls the interpolation of colors in the greyscale anti-aliasing color
188palette.  The default value is 1.0.  For 0 < gamma < 1, the fonts will be
189lighter (more like the background), and for gamma > 1, the fonts will be darker
190(more like the foreground).  Negative values behave the same way, but use a
191slightly different algorithm.
192.SKIP
193The resource name is ".gamma".
194.INDENT -1
1953 -geometry
196.BREAK
197-geometry <geometry>
198.SKIP
199Specifies the initial geometry of the window.
200.SKIP
201The resource name is "*geometry".
202.INDENT -1
2033 -hl
204.BREAK
205-hl <color>
206.SKIP
207Determines the color of the page border.  The default is the foreground color.
208.SKIP
209The resource name is ".highlight".
210.INDENT -1
2113 -hush
212.BREAK
213Causes XDVI to suppress all suppressible warnings.
214.SKIP
215The resource name is ".Hush".
216.INDENT -1
2173 -hushchars
218.BREAK
219Causes XDVI to suppress warnings about references to characters which
220are not defined in the font.
221.SKIP
222The resource name is ".hushLostChars".
223.INDENT -1
2243 -hushchecksums
225.BREAK
226-hushchecksums
227.SKIP
228Causes XDVI to supress warnings about checksum mismatches between the DVI file
229and the font file.
230.SKIP
231The resource name is ".hushChecksums".
232.INDENT -1
2333 -hushspecials
234.BREAK
235Causes XDVI to suppress warnings about \special strings which it cannot process.
236.SKIP
237The resource name is ".hushSpecials".
238.INDENT -1
2393 -icongeometry
240.BREAK
241-icongeometry <geometry>
242.SKIP
243Specifies the initial position for the icon.
244.SKIP
245The resource name is ".iconGeometry".
246.INDENT -1
2473 -iconic
248.BREAK
249-iconic
250.SKIP
251Causes the XDVI window to start in the iconic state.  The default is to start
252with the window open.
253.SKIP
254The resource name is ".iconic".
255.INDENT -1
2563 -keep
257.BREAK
258-keep
259.SKIP
260Sets a flag to indicate that XDVI should not move to the home position when
261moving to a new page.  See also `k' under the Keystrokes help entry.
262.SKIP
263The resource name is ".keepPosition".
264.INDENT -1
2653 -l
266.BREAK
267Causes the names of the fonts used to be listed.
268.SKIP
269The resource name is ".listFonts".
270.INDENT -1
2713 -margins
272.BREAK
273-margins <dimen>
274.SKIP
275Specifies the size of both the top and side margins.  This should be a
276decimal number optionally followed by "cm", e.g., 1.5 or 3cm, giving a
277measurement in inches or centimeters.
278XDVI determines the "home" position of
279the page within the window as follows.  If the entire page fits in the
280window, then the margin settings are ignored.  If, even after removing
281the margins from the left, right, top, and bottom, the page still
282cannot fit in the window, then the page is put in the window such that
283the top and left margins are hidden, and presumably the upper
284left-hand corner of the text on the page will be in the upper
285left-hand corner of the window.  Otherwise, the text is centered in
286the window.  See also -sidemargin, -topmargin under the Options help entry,
287and `M' under the Keystrokes help entry.
288.SKIP
289The resource name is ".Margin".
290.INDENT -1
2913 -mfmode
292.BREAK
293-mfmode <mode-def>
294.SKIP
295Specifies a `mode-def' string, which can be used in searching for fonts
296(see also the 'Logical_Names' entry).
297It is also passed to METAFONT during automatic creation of fonts.
298.SKIP
299The resource name is ".mfMode"
300.INDENT -1
3013 -mgs[n]
302.BREAK
303-mgs[n] <size>
304.SKIP
305Specifies the size of the window to be used for the "magnifying glass"
306for Button n.  The size may be given as an integer (indicating that the
307magnifying glass is to be square), or it may be given in the form WxH.  See
308the Mouse_Actions section.
309Defaults are 200x150, 400x250, 700x500, 1000x800, and 1200x1200.
310.SKIP
311The resource name is ".magnifierSize[n]".
312.INDENT -1
3133 -mgs
314.BREAK
315-mgs <size>
316.SKIP
317Same as -mgs1.
318.INDENT -1
3193 -nogrey
320.BREAK
321-nogrey
322.SKIP
323Turns off the use of greyscale anti-aliasing when printing shrunken bitmaps.
324In this case, the logic of the corresponding resource is the reverse:
325-nogrey corresponds to grey:off; +nogrey to grey:on.
326See also 'G' under the Keystrokes help entry.
327.SKIP
328The resource name is ".grey".
329.INDENT -1
3303 -nomakepk
331.BREAK
332-nomakepk
333.SKIP
334Turns off the automatic generation of missing font files that cannot be
335found by other means.
336For this option, the logic of the corresponding resource is reversed:
337-nogrey corresponds to makePK:off; +nogrey to makePK:on.
338.SKIP
339The resource name is ".makePK".
340.INDENT -1
3413 -offsets
342.BREAK
343-offsets <dimen>
344.SKIP
345Specifies the size of both the horizontal and vertical offsets of the
346output on the page.  This should be a decimal number optionally followed by
347"cm", e.g., 1.5 or 3cm, giving a measurement in inches or centimeters.
348By decree
349of the Stanford TeX Project, the default TeX page origin is always 1 inch
350over and down from the top-left page corner, even when non-American paper
351sizes are used.  Therefore, the default offsets are 1.0 inch.  See also -xoffset
352and -yoffset.
353.SKIP
354The resource name is ".Offset".
355.INDENT -1
3563 -p
357.BREAK
358-p <pixels>
359.SKIP
360Defines the size of the fonts to use, in pixels per inch.  The
361default value is 300.
362.SKIP
363The resource name is ".pixelsPerInch".
364.INDENT -1
3653 -paper
366.BREAK
367-paper <papertype>
368.SKIP
369Specifies the size of the printed page.  This may be of the form WxH
370(or WxHcm), where W is the width in inches (or cm) and H is the height
371in inches (or cm), respectively.  There are also synonyms which may be
372used: us (8.5x11), usr (11x8.5), legal (8.5x14), foolscap (13.5x17),
373as well as the ISO sizes a1-a7, b1-b7, c1-c7, a1r-a7r (a1-a7 rotated),
374etc.  The default size is 8.5 x 11 inches.
375.SKIP
376The resource name is ".paper".
377.INDENT -1
3783 -rv
379.BREAK
380Causes the page to be displayed with white characters on a black
381background, instead of vice versa.
382.SKIP
383The resource name is ".reverseVideo".
384.INDENT -1
3853 -s
386.BREAK
387-s <shrink>
388.SKIP
389Defines the initial shrink factor.  The default value is 3.
390.SKIP
391The resource name is ".shrinkFactor".
392.INDENT -1
3933 -sidemargin
394.BREAK
395-sidemargin <dimen>
396.SKIP
397Specifies the side margin (see -margins).
398.SKIP
399The resource name is ".sideMargin".
400.INDENT -1
4013 -thorough
402.BREAK
403XDVI will usually try to ensure that overstrike characters (e.g.,
404\notin) are printed correctly.  On monochrome displays, this is always
405possible with one logical operation, either AND or OR.  On color
406displays, however, this may take two operations, one to set the
407appropriate bits and one to clear other bits.  If this is the case,
408then by default XDVI will instead use the copy operation, which does
409not handle overstriking correctly.  The -thorough option chooses the
410slower but more correct choice.  See also -copy.
411.SKIP
412The resource name is ".thorough".
413.INDENT -1
4143 -topmargin
415.BREAK
416-topmargin <dimen>
417.SKIP
418Specifies the top and bottom margins (see -margins).
419.SKIP
420The resource name is ".topMargin".
421.INDENT -1
4223 -version
423.BREAK
424-version
425.SKIP
426Print information on the version of XDVI.
427.INDENT -1
4283 -xoffset
429.BREAK
430-xoffset <dimen>
431.SKIP
432Specifies the size of the horizontal offset of the output on the page.  See
433-offsets.
434.SKIP
435The resource name is ".xOffset".
436.INDENT -1
4373 -yoffset
438.BREAK
439-yoffset <dimen>
440.SKIP
441Specifies the size of the vertical offset of the output on the page.  See
442-offsets.
443.SKIP
444The resource name is ".yOffset".
445
446.INDENT -1
4472 Keystrokes
448.BREAK
449Xdvi recognizes the following keystrokes when typed in its window.
450Each may optionally be preceded by a (positive or negative) number, whose
451interpretation will depend on the particular keystroke.  Note that the
452keystrokes are case sensitive.
453.INDENT -1
4543 q
455.BREAK
456Quits the program.  Control-C, control-D, and control-Z will do this, too.
457.INDENT -1
4583 n
459.BREAK
460Moves to the next page (or to the nth next page if a number is given).
461Synonyms are `f', Space, Return, Line Feed, and <Next Screen>.
462.INDENT -1
4633 p
464.BREAK
465Moves to the previous page (or back n pages).  Synonyms are
466`b', control-H, Delete, and <Prev Screen>.
467.INDENT -1
4683 g
469.BREAK
470Moves to the page with the given number.  Initially, the first page is
471assumed to be page number 1, but this can be changed with the `P'
472keystroke.  If no page number is given, then it goes to the last page.
473.INDENT -1
4743 P
475.BREAK
476"This is page number n."  This can be used to make the `g'
477keystroke refer to actual page numbers instead of absolute page numbers.
478.INDENT -1
4793 Control-L
480.BREAK
481Redisplays the current page.
482.INDENT -1
4833 ^
484.BREAK
485Move to the "home" position of the page.  This is normally the upper
486left-hand corner of the page, depending on the margins as described in
487the -margins option.
488.INDENT -1
4893 u
490.BREAK
491Moves up two thirds of a window-full.  The <Up Arrow> key is a synonym for this
492keystroke.
493.INDENT -1
4943 d
495.BREAK
496Moves down two thirds of a window-full.  The <Down Arrow> key is a synonym for
497this keystroke.
498.INDENT -1
4993 l
500.BREAK
501Moves left two thirds of a window-full.  The <Left Arrow> key is a synonym for
502this keystroke.
503.INDENT -1
5043 r
505.BREAK
506Moves right two thirds of a window-full.  The <Right Arrow> key is a synonym for
507this keystroke.
508.INDENT -1
5093 c
510.BREAK
511Moves the page so that the point currently beneath the cursor is moved to
512the middle of the window.  It also (gasp!) warps the cursor to the same place.
513.INDENT -1
5143 M
515.BREAK
516Sets the margins so that the point currently under the cursor is the upper
517left-hand corner of the text in the page.  Note that this command itself does
518not move the image at all.  For details on how the margins are used, see
519the -margins option.
520.INDENT -1
5213 s
522.BREAK
523Changes the shrink factor to the given number.  If no number is given, the
524smallest factor that makes the entire page fit in the window will be used.
525(Margins are ignored in this computation.)
526.INDENT -1
5273 S
528.BREAK
529Sets the density factor to be used when shrinking bitmaps.  This should
530be a number between 0 and 100; higher numbers produce lighter characters.
531If greyscaling mode is in effect, this changes the value of gamma instead.
532The new value of gamma is the given number divided by 100; negative values
533are allowed.
534.INDENT -1
5353 R
536.BREAK
537Forces the DVI file to be reread.  This allows you to preview many
538versions of the same file while running XDVI only once.
539.INDENT -1
5403 k
541.BREAK
542Normally when XDVI switches pages, it moves to the home position as
543well.  The `k' keystroke toggles a `keep-position' flag which, when
544set, will keep the same position when moving between pages.  Also `0k'
545and `1k' clear and set this flag, respectively.  See also the -keep option.
546.INDENT -1
5473 G
548.BREAK
549The key toggles the use of greyscale anti-aliasing for displaying shrunken
550bitmaps.  In addition, the key sequences `0G' and `1G' clear and set this flag,
551respectively.  See also the -nogrey option.
552
553.INDENT -1
5542 Mouse_Actions
555.BREAK
556If the shrink factor is set to any number other than one, then
557clicking any mouse button will pop up a "magnifying glass" which shows
558the unshrunk image in the vicinity of the mouse click.  This subwindow
559disappears when the mouse button is released.  Different mouse buttons
560produce different sized windows, as indicated by the -mgs option.
561Moving the cursor while holding the button down will move the
562magnifying glass.
563.SKIP
564Also, the scrollbars (if present) behave in the standard X Window way: pushing
565Button 2 in a scrollbar moves the top or left edge of the scrollbar to
566that point and optionally drags it; pushing Button 1 moves the image
567up or right by an amount equal to the distance from the button press
568to the upper left-hand corner of the window; pushing Button 3 moves
569the image down or left by the same amount.  Note that this is
570different than the way
571DECWindows normally defines the actions of the mouse buttons in scrollbars.
572
573.INDENT -1
5742 Logical_Names
575.BREAK
576Some logical names can be defined to override the values defined when
577XDVI was compiled.
578.INDENT -1
5793 DECW$DISPLAY
580.BREAK
581Unless the -display option is used on the command line, XDVI uses the logical
582name "DECW$DISPLAY" to specify which bit map
583display terminal to use.  This logical name may be defined with the SET
584DISPLAY command.
585.INDENT -1
5863 XDVIFONTS
587.BREAK
588The logical name "XDVIFONTS" determines the directory path(s) searched for fonts
589in the following manner.  The string consists of one or more strings
590separated by slashes.  In each such string, the substring "%f" is
591changed to the font name; "%d" is changed to the magnification; and
592"%p" is changed to the font file format ("pk" or "gf").  If no "%f"
593appears in the string, then the string ":%f.%d%p" is added on the end.
594For example, if the string is "TEX_FONTS" and the font is
595cmr10 at 300 dots per inch, then XDVI searches for TEX_FONTS:CMR10.300PK
596and TEX_FONTS:CMR10.300GF,
597in that order.
598An extra slash anywhere in the the "XDVIFONTS" logical name causes the
599system default directories to be tried at that point.  If the font is not
600found in the desired size, then XDVI will try to find the nearest size.  If the
601font cannot be found at all, then XDVI will try to vary the point size
602of the font (within a certain range), and if this fails, then it will
603use the font specified as the alternate font (cf. -altfont).
604.SKIP
605In addition, a "%F" specifier is available; it is a synonym for "%f", but it
606does not inhibit putting the string ":%f.%d%p" at the end.  Finally, a "%b"
607specifier is available; it is converted to the current resolution being used
608(i.e., the value of the -p parameter or the .pixelsperinch resource).
609.SKIP
610For compatibility with some versions of TeX, you may also use the logical name
611"TEXFONTS" in place of "XDVIFONTS", although in that case the string should
612not include any "%" specifiers.  The reason for recognizing "TEXFONTS" is
613that certain versions of TeX also support the convention regarding an extra
614slash in the font path; therefore, users who create their own fonts can put
615both their .TFM and raster file in the same directory and do
616.SKIP
617.LITERAL
618        $ DEFINE TEXFONTS "/MFDIR"
619
620or
621
622        $ DEFINE TEXFONTS "MFDIR/"
623.END LITERAL
624.SKIP
625in order to get TeX and XDVI to search their directory in addition to the
626system standard directories.  The "XDVIFONTS" logical name overrides the
627"TEXFONTS" logical name, so that on those sites where "TEXFONTS" must be set
628explicitly, and therefore this feature is not useful, the "XDVIFONTS" logical
629name may be set to an empty string to cause XDVI to ignore "TEXFONTS".
630.SKIP
631XDVI also recognizes the "PKFONTS" and "TEXPKS" logical names, which are
632checked after "XDVIFONTS" but before "TEXFONTS".
633
634.INDENT -1
6353 XDVISIZES
636.BREAK
637The logical name "XDVISIZES" may be set to indicate which
638sizes of fonts are available.  It should consists of a list of numbers
639separated by slashes.  If the list begins with a slash, the system
640default sizes are used, as well.  Sizes are expressed in dots per
641inch and must be integers.  The current default set of
642sizes is 300/329/360/432/518/622/746.  XDVI will also try the actual
643size of the font before trying any of the given sizes.
644
645.INDENT -1
6463 XDVIVFS
647.BREAK
648Virtual fonts are supported, although XDVI does not have any built-in fonts to
649which they can refer.  The search path for .VF files can be specified with the
650"XDVIVFS" logical name in a similar manner to that for the "XDVIFONTS" logical
651name.  XDVI will also check the "VFFONTS" logical name if the "XDVIFONTS"
652logical name is not defined.  Virtual fonts are searched for immediately after
653looking for the font as a normal font in the exact size specified.
654
655.INDENT -1
6562 Resource_Names
657.BREAK
658   All of the command line options may be set via the resource names given in
659   the descriptions of the options.  This may be used to define a
660   specific set of options as the default each time you run XDVI.  To make use
661   of this feature, create a file named DECW$XDEFAULTS.DAT in the same directory
662   as the rest of your DECW*.DAT files.  Include in this file the resource names
663   and arguments of each of the options you wish to specify.  For example:
664.SKIP
665.LITERAL
666   XDvi.copy: off
667   XDvi.thorough: on
668   XDvi.shrinkFactor: 2
669   XDvi.Margin: 0.95
670   XDvi*geometry: 1015x750+3+25
671.END LITERAL
672.SKIP
673   When XDVI is invoked, it would behave as if it had been invoked with the
674   following command:
675.SKIP
676.LITERAL
677   XDVI +copy -thorough -s 2 -margins 0.95 -geometry 1015x750+3+25 dvifile
678.END LITERAL
679.SKIP
680   Specifying options on the command line will override any options specified
681   via resource names in the DECW$XDEFAULTS.DAT file.
682
683.INDENT -1
6842 Authors
685.BREAK
686.LITERAL
687Eric Cooper, CMU, did a version for direct output to a QVSS.
688Modified for X by Bob Scheifler, MIT Laboratory for Computer Science.
689Modified for X11 by Mark Eichin, MIT SIPB.
690Modified for VMS and DECWindows by Scott Allendorf, University of Iowa.
691Additional enhancements by many others.
692.END LITERAL
Note: See TracBrowser for help on using the repository browser.