Debian Codegraph @

texk/xdvik/xdvi.1.in

raw
1 .\" Copyright 1990-2022 Paul Vojta and others
2 .\"
3 .\" This is Paul's license, included here only for reference, it does not apply
4 .\" to all parts of the k version.
5 .\" ----
6 .\" Permission is hereby granted, free of charge, to any person obtaining a copy
7 .\" of this software and associated documentation files (the "Software"), to
8 .\" deal in the Software without restriction, including without limitation the
9 .\" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 .\" sell copies of the Software, and to permit persons to whom the Software is
11 .\" furnished to do so, subject to the following conditions:
12 .\"
13 .\" The above copyright notice and this permission notice shall be included in
14 .\" all copies or substantial portions of the Software.
15 .\"
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 .\" PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 .\" DEALINGS IN THE SOFTWARE.
23 .\" ----
24 .\" This is the xdvik license:
25 .\" Redistribution and use in source and binary forms, with or without
26 .\" modification, are permitted provided that the following conditions
27 .\" are met:
28 .\" 1. Redistributions of source code must retain the above copyright
29 .\" notice, this list of conditions and the following disclaimer.
30 .\" 2. Redistributions in binary form must reproduce the above copyright
31 .\" notice, this list of conditions and the following disclaimer in the
32 .\" documentation and/or other materials provided with the distribution.
33 .\"
34 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
35 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
37 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
38 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
40 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
42 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
43 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
44 .\" SUCH DAMAGE.
45 .\"
46 .\" following is UGLY ... use La\*(Te\& instead:
47 .\" .if t .ds La L\\h'-0.1667m'\\v'-0.20v'A\\v'0.20v'\\h'-0.1667m'T\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X
48 .\" .if n .ds La LaTeX
49 .if t .ds Te T\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X
50 .if n .ds Te TeX
51 .\" # small and boldface (not all -man's provide it)
52 .de SB
53 \&\fB\s-1\&\\$1 \\$2\s0\fR
54 ..
55 .TH XDVI 1 "@XDVI_DATE@" "Xdvik @XDVI_VERSION@"
56 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
57 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
58 .SH NAME
59 xdvi \- DVI Previewer for the X Window System
60 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
61 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
62 .SH SYNOPSIS
63 .B xdvi
64 .nh
65 [\fB+\fP[\fIpage\fP]]
66 [\fB\--help\fP]
67 #ifps
68 [\fB\-allowshell\fP]
69 #endif
70 [\fB\-altfont\fP \fIfont\fP]
71 [\fB\-anchorposition\fP \fIanchor\fP]
72 [\fB\-bg\fP \fIcolor\fP]
73 [\fB\-browser\fP \fIWWWbrowser\fP]
74 [\fB\-copy\fP]
75 [\fB\-cr\fP \fIcolor\fP]
76 [\fB\-debug\fP \fIbitmask\fP|\fIstring[,string ...]\fP]
77 [\fB\-display\fP \fIhost:display\fP]
78 [\fB\-dvipspath\fP \fIpath\fP]
79 [\fB\-editor\fP \fIcommand\fP]
80 [\fB\-expert\fP]
81 [\fB\-expertmode\fP \fIflag\fP]
82 [\fB\-fg\fP \fIcolor\fP]
83 [\fB\-findstring\fP \fIstring\fP]
84 [\fB\-font\fP \fIfont\fP]
85 [\fB\-fullscreen \fP]
86 #ifgrey
87 [\fB\-gamma\fP \fIg\fP]
88 #endif
89 [\fB\-geometry\fP \fIgeometry\fP]
90 #ifghost
91 [\fB\-gsalpha\fP]
92 #endif
93 #ifghost
94 [\fB\-gspalette\fP \fIpalette\fP]
95 #endif
96 [\fB\-h\fP]
97 [\fB\-help\fP]
98 [\fB\-hl\fP \fIcolor\fP]
99 [\fB\-hush\fP]
100 [\fB\-hushbell\fP]
101 [\fB\-hushchars\fP]
102 [\fB\-hushchecksums\fP]
103 [\fB\-hushstdout\fP]
104 [\fB\-icongeometry\fP \fIgeometry\fP]
105 [\fB\-iconic\fP]
106 #ifgrey
107 [\fB\-install\fP]
108 #endif
109 #ifghost
110 [\fB\-interpreter\fP \fIpath\fP]
111 #endif
112 [\fB\-keep\fP]
113 [\fB\-l\fP]
114 [\fB\-license\fP]
115 [\fB\-linkcolor\fP \fIcolor\fP]
116 [\fB\-linkstyle\fP \fI0|1|2|3\fP]
117 [\fB\-margins\fP \fIdimen\fP]
118 #ifkpathsea
119 [\fB\-mfmode\fP \fImode-def\fP[\fB:\fP\fIdpi\fP]]
120 #endif
121 #ifnokpathsea
122 [\fB\-mfmode\fP \fImode-def\fP]
123 #endif
124 [\fB\-mgs\fP[\fIn\fP] \fIsize\fP]
125 [\fB\-mousemode\fP \fI0|1|2\fP]
126 #ifcolor
127 [\fB\-nocolor\fP]
128 #endif
129 #ifdps
130 [\fB\-nodps\fP]
131 #endif
132 [\fB\-nofork\fP]
133 #ifghost
134 [\fB\-noghostscript\fP]
135 #endif
136 #ifgrey
137 [\fB\-nogrey\fP]
138 #endif
139 #ifghost
140 [\fB\-nogssafer\fP]
141 #endif
142 #ifgrey
143 [\fB\-noinstall\fP]
144 #endif
145 #ifmakepk
146 [\fB\-nomakepk\fP]
147 #endif
148 [\fB\-nomatchinverted\fP]
149 #ifnews
150 [\fB\-nonews\fP]
151 #endif
152 [\fB\-noomega\fP]
153 [\fB\-noscan\fP]
154 [\fB\-notempfile\fP]
155 #ift1
156 [\fB\-notype1fonts\fP]
157 #endif
158 #ifxi21
159 [\fB\-noxi2scrolling\fP]
160 #endif
161 [\fB\-offsets\fP \fIdimen\fP]
162 [\fB\-p\fP \fIpixels\fP]
163 [\fB\-paper\fP \fIpapertype\fP]
164 [\fB\-pause\fP]
165 [\fB\-pausespecial\fP \fIspecial-string\fP]
166 #ifps
167 [\fB\-postscript\fP \fIflag\fP]
168 #endif
169 [\fB\-rulecolor\fP \fIcolor\fP]
170 [\fB\-rv\fP]
171 [\fB\-S\fP \fIdensity\fP]
172 [\fB\-s\fP \fIshrink\fP]
173 [\fB\-safer\fP]
174 [\fB\-sidemargin\fP \fIdimen\fP]
175 [\fB\-sourceposition\fP \fIline\fP[\fB:\fP\fIcol\fP][\ ]\fIfilename\fP]
176 [\fB\-statusline\fP]
177 [\fB\-text-encoding\fP \fIencoding\fP]
178 [\fB\-thorough\fP]
179 [\fB\-topmargin\fP \fIdimen\fP]
180 [\fB\-unique\fP]
181 [\fB\-version\fP]
182 [\fB\-visitedlinkcolor\fP \fIcolor\fP]
183 [\fB\-warnspecials\fP]
184 [\fB\-watchfile\fP \fIsecs\fP]
185 [\fB\-wheelunit\fP \fIpixels\fP]
186 [\fB\-xoffset\fP \fIdimen\fP]
187 [\fB\-yoffset\fP \fIdimen\fP]
188 [\fIdvi_file\fP]
189 .hy
190 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
191 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
192 .SH DESCRIPTION
193 .B Xdvi
194 is a program for previewing
195 .I dvi
196 files, as produced e.g. by the
197 .BR tex (1)
198 program, under the X window system.
199 .PP
200 .B Xdvi
201 can show the file shrunken by various
202 integer factors, and it has a ``magnifying glass'' for viewing
203 parts of the page enlarged (see the section MAGNIFIER below). This version
204 of
205 .B xdvi
206 is also referred to as
207 .B xdvik
208 since it uses the kpathsea library to locate and generate font files.
209 In addition to that, it supports the following features:
210 .RS 2
211 .TP 2
212 -
213 hyperlinks in DVI files (section HYPERLINKS),
214 .TP
215 -
216 #ift1
217 direct rendering of PostScript<tm> Type 1 fonts (section TYPE 1 FONTS),
218 .TP
219 -
220 #endif
221 source specials in the DVI file (section SOURCE SPECIALS),
222 .TP
223 -
224 string search in DVI files (section STRING SEARCH),
225 .TP
226 -
227 saving or printing (parts of) the DVI file (sections PRINT DIALOG and SAVE DIALOG).
228 .RE
229 .PP
230 .B Xdvi
231 can be compiled with the Motif toolkit or the Xaw (Athena) toolkit
232 (and variants of it), and the Motif version has a slightly different GUI;
233 these differences are noted below.
234 .PP
235 Before displaying a page of a DVI file,
236 .B xdvi
237 will check to see if the file has changed since the last time it was
238 displayed. If this is the case, it will reload the file. This
239 feature allows you to preview many versions of the same file while
240 running
241 .B xdvi
242 only once. Since it cannot read partial DVI files,
243 .B xdvik
244 versions starting from 22.74.3 will create a temporary copy of the
245 DVI file being viewed, to ensure that the file can be viewed without
246 interruptions. (The
247 .B \-notempfile
248 can be used to turn off this feature).
249 #ifps
250 .PP
251 .B Xdvi
252 can show PostScript<tm> specials by any of three methods.
253 It will try first to use Display PostScript<tm>, then NeWS, then it
254 will try to use Ghostscript to render the images. All of these options
255 depend on additional software to work properly; moreover, some of them
256 may not be compiled into this copy of
257 .BR xdvi .
258 .PP
259 For performance reasons,
260 .B xdvi
261 does not render PostScript specials in the magnifying glass.
262 #endif
263 .PP
264 If no file name has been specified on the command line,
265 xdvi will try to open the most recently opened file; if the file
266 history (accessible via the
267 .B File > Open Recent
268 menu) is empty, or if none of the files in the history are valid DVI files,
269 it will pop up a file selector for choosing a file name.
270 (In previous versions, which didn't have a file history, the file selector
271 was always used; you can set the X resource
272 .B noFileArgUseHistory
273 to
274 .I false
275 to get back the old behaviour.)
276 .PP
277 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
278 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
279 .SH OPTIONS
280 In addition to specifying the
281 .I dvi
282 file (with or without the
283 .B .dvi
284 extension),
285 .B xdvi
286 supports the following command line options. If the option begins with a
287 .RB ` + '
288 instead of a
289 .RB ` \- ',
290 the option is restored to its default value. By default, these options can
291 be set via the resource names given in parentheses in the description of
292 each option.
293 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
294 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
295 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
296 .TP
297 .BI + page
298 Specifies the first page to show. If
299 .B +
300 is given without a number, the last page is assumed; the first page is
301 the default.
302 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
303 #ifps
304 .TP
305 .B \-allowshell
306 .RB ( .allowShell )
307 This option enables the shell escape in PostScript specials.
308 (For security reasons, shell escapes are disabled by default.)
309 This option should be rarely used; in particular it should not be used just
310 to uncompress files: that function is done automatically if the file name
311 ends in
312 .BR .Z ,
313 .BR .gz ,
314 or
315 .BR .bz2 .
316 Shell escapes are always turned off if the
317 .B \-safer
318 option is used.
319 #endif
320 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
321 .TP
322 .BI \-altfont " font"
323 .RB ( .altFont )
324 Declares a default font to use when the font in the
325 .I dvi
326 file cannot be found. This is useful, for example, with PostScript <tm> fonts.
327 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
328 .TP
329 .BI \-anchorposition " anchor"
330 Jump to
331 .I anchor
332 after opening the DVI file. This is only useful when invoking
333 .B xdvi
334 from other applications.
335 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
336 .TP
337 .BI \-background " color"
338 .RB ( .background )
339 Determines the color of the background. Same as
340 .BR -bg .
341 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
342 .TP
343 .BI \-bg " color"
344 .RB ( .background )
345 Determines the color of the background.
346 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
347 .TP
348 .BI \-browser " browser"
349 .RB ( .wwwBrowser )
350 Defines the web browser used for handling external URLs. The value of this
351 option or resource has the same syntax as the
352 .B BROWSER
353 environment variable; see the explanation of that variable in the
354 section `ENVIRONMENT' below for a detailed description.
355 If neither the option nor the X resource
356 .I wwwBrowser
357 is specified, the environment variables
358 .B BROWSER
359 and
360 .B WWWBROWSER
361 (in that order) are used to determine the browser command. If these are
362 not set either, the following default value is used:
363 \fBxdg-open %s:htmlview %s:firefox -remote -remote "openURL(%s,new-window)":mozilla -remote "openURL(%s,new-window)":netscape -raise -remote "openURL(%s,new-window)":xterm -e w3m %s:xterm -e lynx %s:xterm -e wget %s\fP
364 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
365 #ifgrey
366 .TP
367 .B \-copy
368 .RB ( .copy )
369 Always use the
370 .I copy
371 operation when writing characters to the display.
372 This option may be necessary for correct operation on a color display, but
373 overstrike characters will be incorrect.
374 If greyscale anti-aliasing is in use, the
375 .B \-copy
376 operation will disable the use of colorplanes and make overstrikes come
377 out incorrectly.
378 #endif
379 See also
380 .BR \-thorough .
381 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
382 .TP
383 .BI \-cr " color"
384 .RB ( .cursorColor )
385 Determines the color of the mouse cursor. The default is the same as
386 the foreground color.
387 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
388 .TP
389 .BI \-debug " bitmask|string[,string ...]"
390 .RB ( .debugLevel )
391 If nonzero, prints additional information on standard output. The
392 argument can be either a bitmask specified as a decimal number, or
393 comma-separated list of strings.
394 .br
395 For the bitmask representation, multiple values can
396 be specified by adding the numbers that represent the individual bits;
397 e.g. to debug all file searching and opening commands, use 4032
398 (= 2048 + 1024 + 512 + 256 + 128 + 64). Use -1 to turn on debugging
399 of everything (this will produce huge output).
400 .br
401 For the string representation, use the strings listed in the following
402 table, with a comma to separate the values; e.g. to debug
403 all file searching and opening commands, use
404 .BR search,expand,paths,hash,stat,open .
405 (The option `kpathsea' is provided as a shorthand for these.)
406 Note that such a list may need to be quoted to prevent the shell
407 from interpreting commas or spaces in the list.
408 .br
409 The individual numbers and strings have the following meanings:
410 .nf
411 .sp 1n
412 .ta 1L +8L +12L
413 1 bitmap Bitmap creation
414 2 dvi DVI translation
415 4 pk PK fonts
416 8 batch Batch mode: Exit after
417 reading the DVI file
418 16 event Event handling
419 32 ps PostScript interpreter calls
420 64 stat Kpathsea stat(2) calls
421 128 hash Kpathsea hash table lookups
422 256 open Kpathsea file opening
423 512 paths Kpathsea path definitions
424 1024 expand Kpathsea path expansion
425 2048 search Kpathsea searching
426 4032 kpathsea All Kpathsea options
427 4096 htex Hypertex specials
428 8192 src Source specials
429 16384 client Client/server mode (see -unique
430 and -sourceposition options)
431 32768 ft FreeType library messages (Type 1 fonts)
432 65536 ft_verbose Verbose FreeType library messages (currently unused)
433 131072 gui GUI elements
434 262144 find Searching for strings in the DVI file
435 524288 files File history and opening DVI files
436 .sp 1n
437 .fi
438 Some of the Kpathsea debugging options are actually provided by Kpathsea;
439 see the Debugging section in the Kpathsea manual for more information on
440 these.
441 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
442 .TP
443 .BI \-density " density"
444 .RB ( .densityPercent )
445 Determines the density used when shrinking bitmaps for fonts.
446 A higher value produces a lighter font. The default value is 40.
447 #ifgrey
448 If greyscaling is in use, this argument does not apply; use
449 .B \-gamma
450 instead.
451 #endif
452 See also the
453 .RB ` S '
454 keystroke.
455 Same as
456 .BR \-S .
457 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
458 .TP
459 .BI \-display " host" : display
460 Specifies the host and screen to be used for displaying the
461 .I dvi
462 file. By default this is obtained from the environment variable
463 .SB DISPLAY.
464 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
465 .TP
466 .BI \-dvipspath " path"
467 .RB ( .dvipsPath )
468 Use
469 .I path
470 as the
471 .B dvips
472 program to use when printing. The default for this is
473 .BR dvips .
474 The program or script should read the DVI file from standard input,
475 and write the PostScript file to standard output.
476 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
477 .TP
478 .BI \-editor " editor"
479 .RB ( .editor )
480 Specifies the editor that will be invoked when the
481 .I source-special()
482 action is triggered to start a reverse search (by default via Ctrl-Mouse 1).
483 The argument to this option is a format string in which occurrences of
484 .RB `` %f ''
485 are replaced by the file name, occurrences of
486 .RB `` %l ''
487 are replaced by the line number within the file, and optional
488 occurrences of
489 .RB `` %c ''
490 are replaced by the column number within the line.
491 .sp
492 If neither the option nor the X resource
493 .I .editor
494 is specified, the following environment variables are checked
495 to determine the editor command:
496 .BR XEDITOR ,
497 .BR VISUAL ,
498 and
499 .B EDITOR
500 (in this sequence). If the string is found as the value
501 of the
502 .SB VISUAL
503 or
504 .SB EDITOR
505 environment variables, then
506 .RI `` "xterm -e "''
507 is prepended to the string; if the editor is specified by other means, then
508 it must be in the form of a shell command to pop up an X window with an
509 editor in it. If none of these variables is set, a warning message is displayed
510 and the command
511 .RI `` "xterm -e vi +%l %f"''
512 is used.
513 .sp
514 If no
515 .RB `` %f ''
516 or
517 .RB `` %l ''
518 occurs in the string, the missing format strings are appended automatically.
519 (This is for compatibility with other programs when using one of the environment
520 variables).
521 .sp
522 A new instance of the editor is started each time this command is used;
523 therefore it is preferable to use an editor that can be invoked in
524 `client' mode to load new files into the same instance. Example
525 settings are:
526 .RS 7
527 .TP 7
528 .SB emacsclient --no-wait
529 (older Emacsen)
530 .TP
531 .SB gnuclient -q
532 (XEmacs and newer Emacsen)
533 .TP
534 .SB gvim --servername xdvi --remote
535 (VIM v6.0+; the `--servername xdvi' option will cause gvim to run a
536 dedicated instance for the files opened by xdvi.)
537 .TP
538 .SB nc
539 (nedit)
540 .PP
541 .sp
542 Note that those strings need to be enclosed
543 into quotes when using them on the command-line
544 to protect them from the shell; when using them
545 as argument for the
546 .I .editor
547 resource in an X resource file, no quotes should be used.
548 .sp
549 .B NOTE ON SECURITY:
550 The argument of this option isn't executed as a shell command,
551 but via
552 .I exec()
553 to prevent evil tricks with the contents of source specials.
554 .RE
555 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
556 .TP
557 .B \-expert
558 This option is only supported for backwards compatibility;
559 it is equivalent to
560 .BR "\-expertmode 0" ,
561 which should be preferred.
562 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
563 .TP
564 .BI \-expertmode " flag"
565 .RB ( .expertMode )
566 With an argument of
567 .IR 0 ,
568 this option switches off the display of the buttons, scrollbars,
569 the toolbar (Motif only),
570 the statusline and the page list. These GUI elements
571 can also be (de)activated separately, by combining the
572 appropriate values in the
573 .I flag
574 argument. This acts similar to the
575 .B \-debug
576 option: The integer
577 .I flag
578 is treated as a bitmap where each bit represents one
579 element. If the bit has the value
580 .IR 1 ,
581 the element is switched on, if it has the value
582 .IR 0 ,
583 the element is switched off. The meaning of the bits
584 is as follows:
585 .nf
586 .sp 1n
587 .ta 1L +8L +12L
588 1 statusline
589 2 scrollbars
590 4 Motif: pagelist, Xaw: buttons and pagelist
591 8 toolbar (Motif only)
592 16 menubar (Motif only)
593 .sp 1n
594 .fi
595 For example, to turn on only the statusline and the scrollbars,
596 use 3 (= 1 + 2).
597 See also the
598 .RB ` x '
599 keystroke, where the bits are addressed by their positions, from 1 to
600 3 (Xaw) or 5 (Motif), respectively.
601 .PP
602 If the statusline is not active, all messages
603 that would normally be printed to the statusline will be printed to
604 .IR stdout ,
605 unless the
606 .B \-hushstdout
607 option is used.
608 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
609 .TP
610 .BI \-fg " color"
611 .RB ( .foreground )
612 Determines the color of the text (foreground).
613 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
614 .TP
615 .B \-findstring\fP \fIstring\fP
616 This option triggers a search for
617 .I string
618 in the DVI file mentioned on the command-line, similar to forward search
619 (see the description of the
620 .B sourceposition
621 option):
622 If there is already another
623 instance of
624 .B xdvi
625 running on the displaying that DVI file, it will cause that instance
626 to perform the search instead. The search starts at the top of the current
627 page of the DVI file.
628 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
629 .TP
630 .BI \-font " font"
631 .RB ( *font )
632 Sets the font used in menus, buttons etc., as described in the
633 .I X(7x)
634 man page. The font for child windows can be set separately,
635 e.g.:
636 .RS 7
637 .nf
638 .ft 3
639 .sp 1n
640 xdvi*statusline*font: \e
641 -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
642 .sp 1n
643 .ft
644 .fi
645 .RE
646 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
647 .TP
648 .BI \-foreground " color"
649 Same as
650 .BR -fg .
651 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
652 .TP
653 .B \-fullscreen
654 When this option is used, xdvi will (try to) run in fullscreen mode, with
655 no window decorations.
656 This option is not guaranteed to work with all windowmanagers/desktops;
657 if you're experiencing problems with it, please use the
658 .B \-geometry
659 option instead, and a suitable window manager setting to remove
660 the window decorations.
661 When using this option for presentations, you might want
662 to get rid of all the control widgets as well, using the
663 .B -expertmode
664 option. This option can also be toggled at runtime using the
665 .B fullscreen
666 action (by default bound to Ctrl-l).
667 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
668 #ifgrey
669 .TP
670 .BI \-gamma " gamma"
671 .RB ( .gamma )
672 Controls the interpolation of colors in the greyscale anti-aliasing color
673 palette. Default value is 1.0. For 0 <
674 .I gamma
675 < 1, the fonts will be lighter (more like the background), and for
676 .I gamma
677 > 1, the fonts will be darker (more like the foreground). Negative
678 values behave the same way, but use a slightly different algorithm.
679 For color and grayscale displays; for monochrome, see
680 .BR \-density .
681 See also the
682 .RB ` S '
683 keystroke.
684 #endif
685 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
686 .TP
687 .BI \-geometry " geometry"
688 .RB ( .geometry )
689 Specifies the initial geometry of the main window,
690 as described in the
691 .I X(7x)
692 man page. The geometry of child windows can be set
693 separately, e.g.:
694 .br
695 .I xdvi*helpwindow.geometry: 600x800
696 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
697 .TP
698 .B \-gsalpha
699 .RB ( .gsAlpha )
700 Causes
701 .B Ghostscript
702 to be called with the
703 .B x11alpha
704 driver instead of the
705 .B x11
706 driver. The
707 .B x11alpha
708 driver enables anti-aliasing in PostScript specials, for a nicer appearance.
709 It is available on newer versions of
710 .BR Ghostscript .
711 This option can also be toggled with the
712 .RB ` V '
713 keystroke.
714 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
715 #ifghost
716 .TP
717 .BI \-gspalette " palette"
718 .RB ( .palette )
719 Specifies the palette to be used when using Ghostscript for rendering
720 PostScript specials. Possible values are
721 .BR Color ,
722 .BR Greyscale ,
723 and
724 .BR Monochrome .
725 The default is
726 .BR Color .
727 #endif
728 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
729 .TP
730 .BR \-h , " \-help" , " \--help"
731 Prints a short help text with an overview of the command-line options
732 to standard output.
733 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
734 .TP
735 .BI \-hl " color"
736 .RB ( .highlight )
737 Determines the color of the page border, of the ruler in `ruler mode',
738 and of the highlighting markers in forward search and string search.
739 The default is the foreground color.
740 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
741 .TP
742 .B \-hush
743 .RB ( .Hush )
744 Causes
745 .B xdvi
746 to suppress all suppressible warnings.
747 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
748 .TP
749 .B \-hushbell
750 .RB ( .hushBell )
751 Don't sound the X bell when an error occurs.
752 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
753 .TP
754 .B \-hushchars
755 .RB ( .hushLostChars )
756 Causes
757 .B xdvi
758 to suppress warnings about references to characters which are not defined
759 in the font.
760 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
761 .TP
762 .B \-hushchecksums
763 .RB ( .hushChecksums )
764 Causes
765 .B xdvi
766 to suppress warnings about checksum mismatches between the
767 .I dvi
768 file and the font file.
769 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
770 .TP
771 .B \-hushstdout
772 .RB ( .hushStdout )
773 Suppresses printing of status messages to
774 .IR stdout .
775 Note that errors or warnings will still be printed to
776 .I stderr
777 even if this option is used.
778 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
779 .TP
780 .BI \-icongeometry " geometry"
781 .RB ( .iconGeometry )
782 Specifies the initial position for the icon.
783 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
784 .TP
785 .B \-iconic
786 .RB ( .iconic )
787 Causes the
788 .B xdvi
789 window to start in the iconic state. The default is to start with the
790 window open.
791 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
792 #ifgrey
793 .TP
794 .B \-install
795 .RB ( .install )
796 If
797 .B xdvi
798 is running under a
799 .B PseudoColor
800 visual, then (by default) it will check for
801 .B TrueColor
802 visuals with more bits per pixel, and switch to such a visual if one exists.
803 If no such visual exists, it will use the current visual and colormap. If
804 .B \-install
805 is selected, however, it will still use a
806 .B TrueColor
807 visual with a greater depth, if one is available; otherwise, it will
808 install its own colormap on the current visual. If the current visual is not
809 .BR PseudoColor ,
810 then
811 .B xdvi
812 will not switch the visual or colormap, regardless of its options.
813 The default value of the
814 .B install
815 resource is the special value,
816 .BR maybe .
817 There is no
818 .B +install
819 option. See also
820 .BR \-noinstall ,
821 and the GREYSCALING AND COLORMAPS section.
822 #endif
823 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
824 #ifghost
825 .TP
826 .BI \-interpreter " filename"
827 .RB ( .interpreter )
828 Use
829 .I filename
830 as the Ghostscript interpreter. By default it uses
831 .BR @GS_PATH@ .
832 #endif
833 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
834 .TP
835 .B \-keep
836 .RB ( .keepPosition )
837 Sets a flag to indicate that
838 .B xdvi
839 should not move to the home position when moving to a new page. See also the
840 .RB ` k '
841 keystroke. This flag is honored by all page switching actions and by
842 .B up-or-previous() /
843 .BR down-or-next() ,
844 although the latter only honor the horizontal position, not the vertical one.
845 This allows for a "continuous" scrolling back an forth through a document with
846 a display window narrower than a page width.
847 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
848 .TP
849 .B \-l
850 .RB ( .listFonts )
851 List the names of all fonts used.
852 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
853 .TP
854 .B \-license
855 Prints licensing information.
856 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
857 .TP
858 .B \-linkcolor
859 .RB ( .linkColor )
860 Color used for unvisited hyperlinks (`Blue2' by default). Hyperlinks
861 are unvisited before you click on them, or after the DVI file has been reloaded.
862 The value should be either a valid X color name (such as
863 .IR DarkGoldenrod4 )
864 or a hexadecimal color string (such as
865 .IR #8b6508 ).
866 See also
867 .B \-visitedlinkcolor
868 and
869 .BR \-linkstyle .
870 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
871 .TP
872 .B \-linkstyle
873 .RB ( .LinkStyle )
874 Determines the style in which hyperlinks are displayed. Possible
875 values and their meanings are:
876 .nf
877 .sp 1n
878 .ta 1L +8L
879 0 No highlighting of links
880 1 Underline links with \fIlink color\fR
881 2 No underlining, color text with \fIlink color\fR
882 3 Underline and display text colored with
883 \fIlink color\fR
884 .sp 1n
885 .fi
886 The values for \fIlink color\fR are specified by the options/resources
887 .B \-linkcolor
888 and
889 .B \-visitedlinkcolor
890 (which see).
891 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
892 .TP
893 .BI \-margins " dimen"
894 .RB ( .Margin )
895 Specifies the size of both the top margin and side margin.
896 This determines the ``home'' position of the page within the window as
897 follows. If the entire page fits in the window, then the margin settings
898 are ignored. If, even after removing the margins from the left, right,
899 top, and bottom, the page still cannot fit in the window, then the page
900 is put in the window such that the top and left margins are hidden, and
901 presumably the upper left-hand corner of the text on the page will be
902 in the upper left-hand corner of the window.
903 Otherwise, the text is centered in the window.
904 The dimension should be a decimal number optionally followed by
905 any of the two-letter abbreviations for units accepted by \*(Te\&
906 .RB ( pt ,
907 .BR pc ,
908 .BR in ,
909 .BR bp ,
910 .BR cm ,
911 .BR mm ,
912 .BR dd ,
913 .BR cc ,
914 or
915 .BR sp ).
916 By default, the unit will be
917 .BR @DEFAULT_UNIT@.
918 See also
919 .BR \-sidemargin ", " \-topmargin ,
920 and the keystroke
921 .RB ` M .'
922 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
923 #ifkpathsea
924 .TP
925 .BI \-mfmode " mode-def"
926 #endif
927 #ifnokpathsea
928 .BI \-mfmode " mode-def\fR[\fP\fB:\fPdpi\fR]\fP"
929 #endif
930 .RB ( .mfMode )
931 Specifies a
932 .I mode-def
933 string, which can be used in searching for fonts (see ENVIRONMENT, below).
934 Generally, when changing the
935 .IR mode-def ,
936 it is also necessary to change the font size to the appropriate value
937 for that mode. This is done by adding a colon and the value in dots per inch;
938 for example,
939 .BR "\-mfmode ljfour:600" .
940 This method overrides any value given by the
941 .B pixelsPerInch
942 resource or the
943 .B \-p
944 command-line argument.
945 #ifmakepk
946 The metafont mode is also passed to
947 .B metafont
948 during automatic creation of fonts.
949 #endif
950 By default, it is
951 .BR "@MFMODE@" .
952 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
953 .TP
954 .BI \-mgs " size"
955 Same as
956 .BR \-mgs1 .
957 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
958 .TP
959 .BI \-mgs[ n ] " size"
960 .RB ( .magnifierSize\fR[\fIn\fR] )
961 Specifies the size of the window to be used for the ``magnifying glass''
962 for Button
963 .IR n .
964 The size may be given as an integer (indicating that the magnifying glass
965 is to be square), or it may be given in the form
966 .IR width x height .
967 See the MOUSE ACTIONS section. Defaults are 200x150, 400x250, 700x500,
968 1000x800, and 1200x1200.
969 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
970 .TP
971 .BI \-mousemode " " [ 0 | 1 | 2 ]
972 .RB ( .mouseMode )
973 Specifies the default mode of xdvi at startup: Magnifier (0), Text Selection Mode (1)
974 or Ruler Mode (2). See the section
975 .BR MODES ,
976 below, for more information.
977 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
978 #ifcolor
979 .TP
980 .B \-nocolor
981 .RB ( .color )
982 Turns off the use of color specials. This option can be toggled with the
983 .RB ` C '
984 keystroke.
985 (Note:
986 .B \-nocolor
987 corresponds to
988 .BR color:off ;
989 .B +nocolor
990 to
991 .BR color:on .)
992 #endif
993 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
994 #ifdps
995 .TP
996 .B \-nodps
997 .RB ( .dps )
998 Inhibits the use of Display PostScript<tm> for displaying PostScript<tm>
999 specials. Other forms of PostScript emulation, if installed, will be used
1000 instead.
1001 (Note:
1002 .B \-nodps
1003 corresponds to
1004 .BR dps:off ;
1005 .B +nodps
1006 to
1007 .BR dps:on .)
1008 #endif
1009 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1010 .TP
1011 .B \-nofork
1012 .RB ( .fork )
1013 With the
1014 .B \-sourceposition
1015 and
1016 .B \-unique
1017 options, the default behavior is for
1018 .B xdvi
1019 to put itself into the background (like a daemon) if there
1020 is no appropriate instance of
1021 .B xdvi
1022 already running.
1023 This argument makes it run in the foreground instead. This is useful
1024 for debugging, or if your client application cannot deal well with
1025 a program self-backgrounding itself in this way -- e.g. the IPC functions
1026 in
1027 .B emacs
1028 are known to have problems with this.
1029 If no
1030 .B \-sourceposition
1031 or
1032 .B \-unique
1033 argument is given, then this option has no effect.
1034 (Note:
1035 .B \-nofork
1036 corresponds to
1037 .BR fork:off ;
1038 .B +nofork
1039 to
1040 .BR fork:on .)
1041 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1042 #ifghost
1043 .TP
1044 .B \-noghostscript
1045 .RB ( .ghostscript )
1046 Inhibits the use of Ghostscript for displaying PostScript<tm> specials.
1047 (Note:
1048 .B \-noghostscript
1049 corresponds to
1050 .BR ghostscript:off ;
1051 .B +noghostscript
1052 to
1053 .BR ghostscript:on .)
1054 #endif
1055 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1056 #ifgrey
1057 .TP
1058 .B \-nogrey
1059 .RB ( .grey )
1060 Turns off the use of greyscale anti-aliasing when printing shrunken bitmaps.
1061 (Note:
1062 .B \-nogrey
1063 corresponds to
1064 .BR grey:off ;
1065 .B +nogrey
1066 to
1067 .BR grey:on .)
1068 See also the
1069 .RB ` G '
1070 keystroke.
1071 #endif
1072 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1073 #ifghost
1074 .TP
1075 .B \-nogssafer
1076 .RB ( .gsSafer )
1077 Normally, if Ghostscript is used to render PostScript specials, the Ghostscript
1078 interpreter is run with the option
1079 .BR \-dSAFER .
1080 The
1081 .B \-nogssafer
1082 option runs Ghostscript without
1083 .BR \-dSAFER .
1084 The
1085 .B \-dSAFER
1086 option in Ghostscript disables PostScript operators such as
1087 .BR deletefile ,
1088 to prevent possibly malicious PostScript programs from having any effect.
1089 If the
1090 .B \-safer
1091 option is specified, then this option has no effect; in that case Ghostscript
1092 is always run with
1093 .BR \-dSAFER .
1094 (Note:
1095 .B \-nogssafer
1096 corresponds to
1097 .BR gsSafer:off ;
1098 .B +nogssafer
1099 to
1100 .BR gsSafer:on .)
1101 #endif
1102 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1103 #ifgrey
1104 .TP
1105 .B \-noinstall
1106 .RB ( .install )
1107 Inhibit the default behavior of switching to a
1108 .B TrueColor
1109 visual if one is available with more bits per pixel than the current visual.
1110 (Note:
1111 \-noinstall
1112 corresponds
1113 .BR install:off ;
1114 there is no
1115 .B +noinstall
1116 option.)
1117 See also
1118 .BR \-install ,
1119 and the GREYSCALING AND COLORMAPS section.
1120 #endif
1121 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1122 #ifmakepk
1123 .TP
1124 .B \-nomakepk
1125 .RB ( .makePk )
1126 Turns off automatic generation of font files that cannot be found by other
1127 means.
1128 (Note:
1129 .B \-nomakepk
1130 corresponds to
1131 .BR makePk:off ;
1132 .B +nomakepk
1133 to
1134 .BR makePK:on .)
1135 #endif
1136 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1137 .TP
1138 .B \-nomatchinverted
1139 .RB ( .matchInverted )
1140 Don't highlight string search matches in inverted color; instead, draw a rectangle in
1141 .I highlight
1142 color (see the
1143 .B \-hl
1144 option) around the match. This option is activated automatically if
1145 the display isn't running in TrueColor.
1146 (Note:
1147 .B \-nomatchinverted
1148 corresponds to
1149 .BR matchInverted:off ;
1150 .B +nomatchinverted
1151 to
1152 .BR matchInverted:on .)
1153 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1154 #ifnews
1155 .TP
1156 .B \-nonews
1157 .RB ( .news )
1158 Inhibits the use of NeWS<tm> for displaying PostScript<tm> specials.
1159 Ghostscript, if enabled by the installation, will be used instead.
1160 (Note:
1161 .B \-nonews
1162 corresponds to
1163 .BR news:off ;
1164 .B +nonews
1165 to
1166 .BR news:on .)
1167 #endif
1168 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1169 .TP
1170 .B \-noomega
1171 .RB ( .omega )
1172 This will disable the use of Omega extensions when interpreting DVI files.
1173 By default, the additional opcodes
1174 .I 129
1175 and
1176 .I 134
1177 are recognized by xdvi as Omega extensions and interpreted as requests
1178 to set 2-byte characters. The only drawback is that the virtual font
1179 array will require 65536 positions instead of the default 256 positions,
1180 i.e. the memory requirements of xdvi will be slightly larger. If you find
1181 this unacceptable or encounter another problem with the Omega extensions,
1182 you can switch this extension off by using
1183 .B \-noomega
1184 (but please do send a bug report if you find such problems - see the bug
1185 address in the
1186 .B AUTHORS
1187 section below).
1188 .br
1189 (Note:
1190 .B \-noomega
1191 corresponds to
1192 .BR "omega: off" ;
1193 .B +noomega
1194 to
1195 .BR "omega: on" .)
1196 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1197 .TP
1198 .B \-noscan
1199 .RB ( .prescan )
1200 By default,
1201 .B xdvi
1202 does a preliminary scan of the
1203 .I dvi
1204 file to process any
1205 .B papersize
1206 specials; this is especially important at startup since the paper size may be
1207 needed to determine the window size.
1208 #ifps
1209 If PostScript<tm> is in use, then prescanning is also necessary in order to
1210 properly process header files.
1211 #endif
1212 #ifcolor
1213 In addition, prescanning is needed to correctly determine the background color
1214 of a page.
1215 #endif
1216 This option turns off such prescanning.
1217 (Prescanning will be automatically be turned back on if
1218 .B xdvi
1219 detects any of the specials mentioned above.)
1220 (Note:
1221 .B \-noscan
1222 corresponds to
1223 .BR prescan:off ;
1224 .B +noscan
1225 to
1226 .BR prescan:on .)
1227 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1228 .TP
1229 .B \-notempfile
1230 .RB ( .tempFile )
1231 As mentioned in the section
1232 .B DESCRIPTION
1233 above, xdvi will create a temporary copy of the DVI file so that it
1234 can be accessed without interruptions even while the file is being
1235 rewritten by
1236 .BR TeX .
1237 Since this introduces the overhead of copying the file every time
1238 it has changed, the
1239 .B \-notempfile
1240 allows you to turn off this behaviour. In this case, exposing parts of the
1241 window while the DVI file is being written by \*(Te\& will erase the current
1242 window contents until the DVI file can be completely reread.
1243 .br
1244 (Note:
1245 .B \-notempfile
1246 corresponds to
1247 .BR tempFile:off ;
1248 .B +notempfile
1249 to
1250 .BR tempFile:on .)
1251 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1252 #ift1
1253 .TP
1254 .B \-notype1fonts
1255 .RB ( .type1 )
1256 This will disable the use of the FreeType library to display PostScript<tm>
1257 Type 1 fonts.
1258 Use this option as a workaround when you encounter problems with the
1259 display of Type 1 fonts (but please don't forget to send a bug report in
1260 this case, to the URL mentioned in the section AUTHORS below).
1261 .br
1262 (Note:
1263 .B \-notype1fonts
1264 corresponds to
1265 .BR type1:off ;
1266 .B +notype1fonts
1267 to
1268 .BR type1:on .)
1269 #endif
1270 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1271 #ifxi21
1272 .TP
1273 .B \-noxi2scrolling
1274 .RB ( .xi2Scrolling )
1275 This will disable the use of high-resolution scrolling using the XInput 2.1
1276 features of the X Server. When enabled, horizontal and vertical scrolling is
1277 done in smaller increments than would correspond to a single click of a
1278 mouse wheel. This is only available for hardware that supports the feature,
1279 generally touchpads. It is not available for traditional wheel mice.
1280 If suitable hardware is not present or if the X server does not support
1281 XInput 2.1 or higher, then the high-resolution scrolling feature
1282 is turned off and has no effect.
1283 .br
1284 (Note:
1285 .B \-noxi2scrolling
1286 corresponds to
1287 .BR xi2Scrolling:off ;
1288 .BR +noxi2scrolling ,
1289 to
1290 .BR xi2Scrolling:on .)
1291 #endif
1292 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1293 .TP
1294 .BI \-offsets " dimen"
1295 .RB ( .Offset )
1296 Specifies the size of both the horizontal and vertical offsets of the
1297 output on the page. By decree of the Stanford \*(Te\& Project,
1298 the default \*(Te\& page origin is always 1 inch over and down from
1299 the top-left page corner, even when non-American paper sizes are used.
1300 Therefore, the default offsets are 1.0 inch.
1301 The argument
1302 .I dimen
1303 should be a decimal number optionally followed by any of the two-letter
1304 abbreviations for units accepted by \*(Te\&
1305 .RB ( pt ,
1306 .BR pc ,
1307 .BR in ,
1308 .BR bp ,
1309 .BR cm ,
1310 .BR mm ,
1311 .BR dd ,
1312 .BR cc ,
1313 or
1314 .BR sp ).
1315 By default, the unit will be
1316 .BR @DEFAULT_UNIT@.
1317 See also
1318 .B \-xoffset
1319 and
1320 .BR \-yoffset .
1321 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1322 .TP
1323 .BI \-p " pixels"
1324 .RB ( .pixelsPerInch )
1325 Defines the size of the fonts to use, in pixels per inch. The
1326 default value is @BDPI@. This option is provided only for backwards
1327 compatibility; the preferred way is to set both the resolution
1328 and the Metafont mode via the
1329 .B \-mfmode
1330 option (which see).
1331 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1332 .TP
1333 .BI \-paper " papertype"
1334 .RB ( .paper )
1335 Specifies the size of the printed page. Note that in most cases it's
1336 best to specify the paper size in the TeX input file via the line
1337 .sp
1338 .B \eusepackage[dvips]{geometry}
1339 .sp
1340 which will be recognized by both dvips and xdvi; in that case the
1341 use of a `-paper' option should be unnecessary.
1342 .br
1343 The paper size may be specified in the form
1344 \fIwidth\fBx\fIheight\fR optionally followed by a unit, where
1345 .I width
1346 and
1347 .I height
1348 are decimal numbers giving the width and height of the paper, respectively,
1349 and the unit is any of the two-letter abbreviations for units accepted
1350 by \*(Te\&
1351 .RB ( pt ,
1352 .BR pc ,
1353 .BR in ,
1354 .BR bp ,
1355 .BR cm ,
1356 .BR mm ,
1357 .BR dd ,
1358 .BR cc ,
1359 or
1360 .BR sp ).
1361 By default, the unit is
1362 .BR @DEFAULT_UNIT@\fR.
1363 .br
1364 There are also synonyms which may be used:
1365 .B us
1366 (8.5x11in),
1367 .B legal
1368 (8.5x14in),
1369 .B foolscap
1370 (13.5x17in),
1371 as well as the ISO sizes
1372 .BR a1 - a7 ,
1373 .BR b1 - b7 ,
1374 .BR c1 - c7 .
1375 Each of these also has a landscape or `rotated' variant:
1376 .B usr
1377 (11x8.5in),
1378 .BR a1r - a7r ,
1379 etc. For compatibility with
1380 .BR dvips ,
1381 the formats
1382 .B letter
1383 (8.5x11in),
1384 .B ledger
1385 (17x11in)
1386 and
1387 .B tabloid
1388 (11x17in)
1389 are also supported (these don't have rotated variants).
1390 .br
1391 Any of the above sizes may be preceded by a plus sign
1392 .RB (` + ');
1393 this causes the paper size given here to override any paper size given in the
1394 .I dvi
1395 file. The default paper size is @DEFAULT_PAGE_SIZE@.
1396 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1397 .TP
1398 .B \-pause
1399 .RB ( .pause )
1400 This option provides a simple implementation of incremental
1401 (stepwise) display, which can be used for presentations.
1402 When this option is used,
1403 .B xdvi
1404 will pause the display of the current page whenever it encounters a
1405 special
1406 .I special-string
1407 .RI ( xdvi:pause
1408 by default; the string can be customized via
1409 .IR \-pausespecial ,
1410 see below), and the cursor will change its shape. The action
1411 .B unpause-or-next()
1412 (by default bound to the
1413 .B Space
1414 key) will display the next portion of the page up to the following
1415 .IR special-string ,
1416 or until the end of the page is reached.
1417 When the option is not used, specials containing
1418 .I special-string
1419 will be ignored.
1420 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1421 .TP
1422 .BI \-pausespecial " special-string"
1423 .RB ( .pauseSpecial )
1424 Sets the special string that causes xdvi to pause when the
1425 .I -pause
1426 option is active. The default value of
1427 .I special-string
1428 is
1429 .IR xdvi:pause .
1430 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1431 #ifps
1432 .TP
1433 .BI \-postscript " flag"
1434 .RB ( .postscript )
1435 If
1436 .I flag = 0,
1437 rendering of PostScript<tm> specials is disabled; instead, bounding
1438 boxes will be displayed (if available). A value of
1439 .I 1
1440 (the default) switches PostScript<tm> specials on. With a value of
1441 .IR 2 ,
1442 the PostScript<tm> specials are displayed along with their
1443 bounding boxes; this allows you to visually check the correctness
1444 of the bounding boxes. The values can also be toggled at runtime
1445 with the
1446 .RB ` v '
1447 keystroke and the corresponding numerical prefix arguments 0, 1 and 2.
1448 #endif
1449 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1450 .TP
1451 .BI \-ps2pdfpath " path"
1452 .RB ( .ps2pdfPath )
1453 Use
1454 .I path
1455 as a conversion program from PostScript to PDF. The program or script
1456 should accept two command-line arguments: The PostScript file as first
1457 argument, and the PDF output file as second argument.
1458 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1459 .TP
1460 .BI \-rulecolor " color"
1461 .RB ( .ruleColor )
1462 Determines the color of the rules used for the magnifier
1463 (default: foreground color).
1464 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1465 .TP
1466 .B \-q
1467 .RB ( .noInitFile )
1468 Ignore the
1469 .I $HOME/.xdvirc
1470 startup file (i.e. don't read it at startup, and don't write it
1471 at exit). This forces the defaults defined in
1472 .I $HOME/.Xdefaults
1473 to be used. See
1474 .B FILES
1475 for more information on
1476 .IR $HOME/.xdvirc .
1477 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1478 .TP
1479 .B \-rv
1480 .RB ( .reverseVideo )
1481 Causes the page to be displayed with white characters on a black background,
1482 instead of vice versa.
1483 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1484 .TP
1485 .BI \-S " density"
1486 .RB ( .densityPercent )
1487 Same as
1488 .B \-density
1489 (which see).
1490 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1491 .TP
1492 .BI \-s " shrink"
1493 .RB ( .shrinkFactor )
1494 Defines the initial shrink factor. The default value is @SHRINK@. If
1495 .I shrink
1496 is given as 0, then the initial shrink factor is computed so that the
1497 page fits within the window (as if the `s' keystroke were given without
1498 a number).
1499 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1500 .TP
1501 .B \-safer
1502 .RB ( .safer )
1503 This option turns on all available security options; it is designed for use when
1504 .B xdvi
1505 is called by a browser that obtains a
1506 .I dvi
1507 or \*(Te\& file from another site.
1508 #ifps
1509 This option selects
1510 #endif
1511 #ifghost
1512 .B +nogssafer
1513 and
1514 #endif
1515 #ifps
1516 .BR +allowshell .
1517 #endif
1518 #ifnops
1519 Otherwise, it has no effect, since
1520 .B xdvi
1521 has been compiled without support for PostScript specials.
1522 #endif
1523 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1524 .TP
1525 .BI \-sidemargin " dimen"
1526 .RB ( .sideMargin )
1527 Specifies the side margin (see
1528 .BR \-margins ).
1529 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1530 .TP
1531 .BI \-sourceposition " line" [: col "][ ]" filename
1532 This option makes
1533 .B xdvi
1534 search in the
1535 .I dvi
1536 file for the place corresponding to the indicated line (and, optionally,
1537 column) in the .tex source file, and highlight the place found by drawing a
1538 rectangle in the
1539 .I highlight
1540 color (see the
1541 .B \-hl
1542 option) around the corresponding text. In addition, when run with this
1543 argument (and the
1544 .B \-nofork
1545 option is not given, which see),
1546 .B xdvi
1547 will always return immediately: if it finds another instance of
1548 .B xdvi
1549 already showing
1550 .I dvi_file,
1551 then it will cause that instance to raise its window and move to the given
1552 place in the
1553 .I dvi
1554 file; otherwise it will start up its own instance in the background.
1555 If several instances of xdvi are displaying the respective
1556 .I dvi
1557 file, the instance which was last raised to the foreground will be used.
1558 .sp
1559 The space before
1560 .I filename
1561 is only needed if the filename starts
1562 with a digit. When the space is used, the argument
1563 needs to be enclosed in quotes to prevent the shell from
1564 misinterpreting the space as argument separator.
1565 .sp
1566 This option requires that
1567 .I dvi_file
1568 be prepared with source special information. See the section on SOURCE SPECIALS
1569 for details on how to do this.
1570 .sp
1571 Here is a more detailed description of how the filename in the
1572 .I \-sourceposition
1573 argument is matched with the filename in the source specials:
1574 .RS 7
1575 .TP 3
1576 1.
1577 If neither of the filenames contains a path name component, the filenames
1578 are compared ignoring the
1579 .RI ` .tex '
1580 extensions in both filenames.
1581 .TP
1582 2.
1583 Otherwise, if one of the filenames does contain a path component (e.g.:
1584 .IR ./test.tex ,
1585 .IR ../test.tex ,
1586 .I /my/homedir/tex/test.tex
1587 or any combination of these), both filenames are expanded to a full path,
1588 with any occurrences of
1589 .I ../
1590 and
1591 .I ./
1592 expanded, and multiple slashes removed.
1593 .br
1594 The pathname in the
1595 .I \-sourceposition
1596 is expanded relative to the current working directory of the
1597 .I xdvi \-sourceposition
1598 invocation, and the pathnames in the source specials are expanded
1599 relative to the path of the current DVI file being viewed.
1600 .br
1601 The path names are then compared ignoring the
1602 .RI ` .tex '
1603 extensions in both path names.
1604 .RE
1605 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1606 .TP
1607 .B \-statusline\fP
1608 .RB ( .statusline )
1609 This option is obsolete; use
1610 \fB\-expertmode \fP \fIflag\fP
1611 instead (which see).
1612 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1613 .TP
1614 .BI \-text-encoding " encoding"
1615 .RB ( .textEncoding )
1616 Use
1617 .I encoding
1618 as the text encoding of the string in the "Find" window. Usually, this
1619 should not be needed since the encoding is determined from the locale settings.
1620 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1621 .TP
1622 .B \-thorough
1623 .RB ( .thorough )
1624 .B Xdvi
1625 will usually try to ensure that overstrike characters (e.g.\&
1626 .BR \enotin )
1627 are printed correctly. On monochrome displays, this is always possible
1628 with one logical operation, either
1629 .I and
1630 or
1631 .IR or .
1632 On color displays, however, this may take two operations, one to set the
1633 appropriate bits and one to clear other bits. If this is the case, then
1634 by default
1635 .B xdvi
1636 will instead use the
1637 .I copy
1638 operation, which does not handle overstriking correctly. The
1639 .B \-thorough
1640 option chooses the slower but more correct choice. See also
1641 .BR \-copy .
1642 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1643 .TP
1644 .BI \-topmargin " dimen"
1645 .RB ( .topMargin )
1646 Specifies the top and bottom margins (see
1647 .BR \-margins ).
1648 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1649 .TP
1650 .B \-unique
1651 .RB ( .unique )
1652 This option will make another instance of xdvi running on the same display
1653 act as a `server'. For example, the invocation
1654 .sp
1655 .B xdvi -unique +5 file.dvi
1656 .sp
1657 will cause this other instance to load
1658 .I file.dvi
1659 on page 5 in place of the file that it is currently displaying. If there is
1660 already another instance of xdvi already displaying the file
1661 .IR file.dvi ,
1662 then it will just jump to page 5.
1663 If the other instance of xdvi is displaying a different file, it will load
1664 .I file.dvi
1665 instead. Otherwise, if no other instance of
1666 xdvi is currently running on the display, this option instead
1667 starts a new instance of xdvi in the background (unless the
1668 .I \-nofork
1669 option is specified, which see) displaying page 5 of
1670 .IR file.dvi .
1671 .br
1672 The filename and the
1673 .B +n
1674 option for the page number are the only options available for
1675 controlling a remote instance of xdvi like this; all other options are
1676 currently ignored.
1677 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1678 .TP
1679 .B \-useTeXpages
1680 Use logical \*(Te\& pages (the values of the
1681 .I \ecount0
1682 register) instead of physical pages for the pagelist labels and
1683 when jumping to a page in a document with the `g' keystroke (or the
1684 .B goto-page()
1685 action).
1686 This option can be toggled via the
1687 .RB ` T '
1688 keystroke.
1689 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1690 .TP
1691 .B \-version
1692 Print information on the version of
1693 .BR xdvi .
1694 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1695 .TP
1696 .B \-visitedlinkcolor
1697 .RB ( .visitedLinkColor )
1698 Color used for visited hyperlinks (`Purple4' by default). Hyperlinks become
1699 visited once you click on them. As for
1700 .BR linkColor ,
1701 the value should be either a valid X color name or a hexadecimal color string.
1702 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1703 .TP
1704 .B \-warnspecials
1705 .RB ( .warnSpecials )
1706 Causes
1707 .B xdvi
1708 to print warnings about
1709 .B \especial
1710 strings that it cannot process to stderr. These warnings are suppressed by default.
1711 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1712 .TP
1713 .BI \-watchfile " n"
1714 .RB ( .watchFile )
1715 If this option is set to a value larger than 0, xdvi will check
1716 the DVI file for changes every
1717 .I n
1718 seconds. If the DVI file has been completely written by TeX, it will
1719 be reloaded automatically. Fractional values (e.g. `2.5') are
1720 possible. The default for this option is 0, i.e. no watching.
1721 .br
1722 Since xdvi cannot handle partial DVI files, it tries not to reload
1723 the file while it is being rewritten. However, use of the magnifier
1724 or switching of pages requires reading (a part of) the DVI file, and
1725 if the
1726 .B tempfile
1727 option is switched off, this will erase the current contents of the window
1728 until the DVI file can be read entirely.
1729 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1730 .TP
1731 .BI \-wheelunit " pixels"
1732 .RB ( .wheelUnit )
1733 Sets the number of pixels that a motion of a wheel mouse will move the
1734 image up, down, left, or right. (See the
1735 .B wheel
1736 and
1737 .B hwheel
1738 actions, below, for more information on this.)
1739 If set to zero, the wheel mouse functionality is (essentially) disabled.
1740 The default value is 80.
1741 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1742 .TP
1743 .BI \-xoffset " dimen"
1744 .RB ( .xOffset )
1745 Specifies the size of the horizontal offset of the output on the page. See
1746 .BR \-offsets .
1747 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1748 .TP
1749 .BI \-yoffset " dimen"
1750 .RB ( .yOffset )
1751 Specifies the size of the vertical offset of the output on the page. See
1752 .BR -offsets .
1753 .PP
1754
1755
1756
1757 .SH KEYSTROKES
1758 .B Xdvi
1759 recognizes the following keystrokes when typed in its window.
1760 Each may optionally be preceded by a (positive or negative) number, a
1761 `prefix argument', whose interpretation will depend on the particular keystroke.
1762 This prefix argument can be discarded by pressing the ``Escape'' key.
1763 If present, the ``Help'', ``Prior'' and ``Next'' keys are synonyms for
1764 .RB ` ? ',
1765 .RB ` b ',
1766 and
1767 .RB ` f '
1768 keys, respectively.
1769 .PP
1770 The key bindings listed here are those that
1771 .B xdvi
1772 assigns by default. The names appearing in brackets at the beginning
1773 of the descriptions are the names of the actions associated with the
1774 keys; these can be used to customize the key bindings, as explained in
1775 more detail in the section
1776 .B CUSTOMIZATION
1777 below. If only a lowercase binding is listed, both upper- and lowercase
1778 keys will work for that binding.
1779 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1780 .\"
1781 .\" SPECIAL KEYS
1782 .\"
1783 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1784 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1785 .TP
1786 .BR ESC " key"
1787 .RB [ discard-number() ]
1788 The escape key discards the numerical prefix for all actions
1789 (useful when you mistyped a number).
1790 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1791 .TP
1792 .BR Return " key"
1793 .RB [ forward-page() ]
1794 Moves to the next page (or to the
1795 .IR n th
1796 next page if a number is given). Synonyms are
1797 .RB ` n ',
1798 .RB ` f '
1799 and Line Feed.
1800 .TP
1801 .BR Backspace " key"
1802 .RB [ back-page() ]
1803 Moves to the previous page (or back
1804 .I n
1805 pages). Synonyms are
1806 .RB ` p ',
1807 .RB ` b '
1808 and
1809 .BR Ctrl-h .
1810 .TP
1811 .BR Delete " key"
1812 .RB [ up-or-previous() ]
1813 Moves up two-thirds of a window-full, or to the top of the previous page
1814 if already at the top of the page. With a float argument, moves up the
1815 corresponding fraction of a window-full.
1816 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1817 .TP
1818 .BR Space " key"
1819 .RB [ unpause-or-next() ]
1820 Moves down two-thirds of a window-full, or to the next page if already at
1821 the bottom of the page.
1822 .br
1823 When the option
1824 .BI \-pause " special-string"
1825 is used and the display is currently paused, this key will instead
1826 display the next portion of the page until the next
1827 .I special-string
1828 or the end of the page is encountered. See the description of the
1829 .B \-pause
1830 option for details. The action
1831 .RB [ down-or-next() ]
1832 does a similar thing, but without pausing; it is not bound to a key
1833 by default.
1834 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1835 .TP
1836 .BR Ctrl-Home " (Xaw), " Ctrl-osfBeginLine " (Motif)"
1837 .RB [ goto-page(1) ]
1838 Moves to the first page of the document.
1839 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1840 .TP
1841 .BR Ctrl-End " (Xaw), " Ctrl-osfEndLine " (Motif)"
1842 .RB [ goto-page() ]
1843 Moves to the last page of the document.
1844 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1845 .TP
1846 .BR Home " (Xaw), " osfBeginLine " (Motif)"
1847 .RB [ home-or-top() ]
1848 Move to the ``home'' position of the page, or to the top of the page if
1849 the
1850 .I keep
1851 flag is set (in this case, the page doesn't scroll horizontally).
1852 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1853 .TP
1854 .BR End " (Xaw), " osfEndLine " (Motif)"
1855 .RB [ end-or-bottom() ]
1856 Move to the ``end'' position of the page (the lower right-hand corner),
1857 or to the bottom of the page if the
1858 .I keep
1859 flag is set (in this case, the page doesn't scroll horizontally).
1860 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1861 .\"
1862 .\" ARROW KEYS
1863 .\"
1864 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1865 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1866 .TP
1867 .B Down arrow
1868 .RB [ down(0.015) ]
1869 Scrolls page down.
1870 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1871 .TP
1872 .B Up arrow
1873 .RB [ up(0.015) ]
1874 Scrolls page up.
1875 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1876 .TP
1877 .B Right arrow
1878 .RB [ right(0.015) ]
1879 Scrolls page right.
1880 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1881 .TP
1882 .B Left arrow
1883 .RB [ left(0.015) ]
1884 Scrolls page left.
1885 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1886 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1887 .\"
1888 .\" ORDINARY KEYS. Note that the special symbols ([ ] + - etc.) are not in
1889 .\" strict ASCII order (found that more intuitive). Sequence for each letter
1890 .\" is: Alt-Ctrl, Ctrl, uppercase, lowercase.
1891 .\"
1892 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1893 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1894 .TP
1895 .B Alt-Ctrl-+
1896 .RB [ change-density(25) ]
1897 Increase the darkness of the fonts in the DVI window by adding to the gamma value
1898 (see also the
1899 .RB ` S '
1900 keystroke).
1901 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1902 .TP
1903 .B Alt-Ctrl--
1904 .RB [ change-density(-25) ]
1905 Decrease the darkness of the fonts in the DVI window by subtracting from the gamma value
1906 (see also the
1907 .RB ` S '
1908 keystroke).
1909 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1910 .TP
1911 .B Ctrl-+
1912 .RB [ set-shrink-factor(+) ]
1913 Increase the shrink factor (see also the
1914 .RB ` s '
1915 keystroke).
1916 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1917 .TP
1918 .B Ctrl--
1919 .RB [ set-shrink-factor(-) ]
1920 Decrease the shrink factor (see also the
1921 .RB ` s '
1922 keystroke).
1923 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1924 .TP
1925 .B Ctr-[
1926 .RB [ pagehistory-delete-backward() ]
1927 Delete the current item in the page history and move to the history
1928 item before the deleted one. With a prefix argument
1929 .BR n ,
1930 delete
1931 .B n
1932 previous history items. See
1933 .B PAGE HISTORY
1934 for details.
1935 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1936 .TP
1937 .B [
1938 .RB [ pagehistory-back() ]
1939 Move back in the page history (see
1940 .B PAGE HISTORY
1941 for details). With a prefix argument
1942 .BR n ,
1943 move back
1944 .B n
1945 history items.
1946 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1947 .TP
1948 .B Ctr-]
1949 .RB [ pagehistory-delete-forward() ]
1950 Delete the current item in the page history and move to the history
1951 item after the deleted one. With a prefix argument
1952 .BR n ,
1953 delete
1954 .B n
1955 next history items. See
1956 .B PAGE HISTORY
1957 for details.
1958 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1959 .TP
1960 .B ]
1961 .RB [ pagehistory-forward() ]
1962 Move forward in the page history (see
1963 .B PAGE HISTORY
1964 for details). With a prefix argument
1965 .BR n ,
1966 move forward
1967 .B n
1968 history items.
1969 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1970 .TP
1971 .B ^
1972 .RB [ home() ]
1973 Move to the ``home'' position of the page. This is normally the upper
1974 left-hand corner of the page, depending on the margins as described in the
1975 .B \-margins
1976 option, above.
1977 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1978 .TP
1979 .B ?
1980 .RB [ help() ]
1981 Same as the
1982 .B h
1983 key (which see).
1984 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1985 .TP
1986 .B B
1987 .RB [ htex-back() ]
1988 This key jumps back to the previous hyperlink anchor. See the
1989 section
1990 .B HYPERLINKS
1991 for more information on navigating the links.
1992 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1993 .TP
1994 .B b
1995 .RB [ back-page() ]
1996 Moves to the previous page (or back
1997 .I n
1998 pages). Synonyms are
1999 .RB ` p ',
2000 .B Ctrl-h
2001 and
2002 .BR Backspace .
2003 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2004 #ifcolor
2005 .TP
2006 .B C
2007 .RB [ set-color() ]
2008 This key toggles the use of color specials. The key sequences
2009 .RB ` 0C '
2010 and
2011 .RB ` 1C '
2012 turn interpretation of color specials off and on, respectively.
2013 See also the
2014 .B \-nocolor
2015 option.
2016 #endif
2017 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2018 .TP
2019 .B c
2020 .RB [ center() ]
2021 Moves the page so that the point currently beneath the mouse cursor is moved to
2022 the middle of the window, and warps the mouse cursor to the same place.
2023 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2024 .TP
2025 .B D
2026 .RB [ toggle-grid-mode() ]
2027 This key toggles the use of a grid on the displayed page.
2028 If no number is given, the grid mode is switched on or off.
2029 By prepending a number from 1 to 3, 3 different grid levels can be set.
2030 The units of the grid are inches or centimeters, depending
2031 on whether the paper format is letter (in) or a4 (cm).
2032 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2033 .TP
2034 .B d
2035 .RB [ down() ]
2036 Moves page down two thirds of a window-full. With a float argument to ``down'',
2037 moves down the corresponding fraction of a window-full.
2038 .\" Therefore, a more
2039 .\" ``smooth'' scrolling using the ``Up'' and ``Down'' keys can be
2040 .\" achieved by the following setting:
2041 .\" .sp
2042 .\" xdvi.mainTranslations: #override\e
2043 .\" .br
2044 .\" <Key>Up:up(0.01)\en\e
2045 .\" .br
2046 .\" <Key>Down:down(0.01)\en
2047 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2048 .TP
2049 .B Ctrl-f
2050 .RB [ find() ]
2051 Pop up a window to search for a string in the DVI file. See the section
2052 .BR "STRING SEARCH" ,
2053 below, for more details.
2054 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2055 .TP
2056 .B f
2057 .RB [ forward-page() ]
2058 Moves to the next page (or to the
2059 .IR n th
2060 next page if a number is given). Synonyms are
2061 .RB ` n ',
2062 Return, and Line Feed.
2063 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2064 #ifgrey
2065 .TP
2066 .B G
2067 .RB [ set-greyscaling() ]
2068 This key toggles the use of greyscale anti-aliasing for displaying shrunken
2069 bitmaps. In addition, the key sequences
2070 .RB ` 0G '
2071 and
2072 .RB ` 1G '
2073 clear and set this flag, respectively. See also the
2074 .B \-nogrey
2075 option.
2076 .sp
2077 If given a numeric argument that is not 0 or 1, greyscale anti-aliasing is
2078 turned on, and the gamma resource is set to the value divided by
2079 100. E.g.\&
2080 .RB ` 150G '
2081 turns on greyscale and sets gamma to 1.5.
2082 #endif
2083 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2084 .TP
2085 .B Ctrl-g
2086 .RB [ find-next() ]
2087 Find the next match string in the DVI file; this can be used instead
2088 of pressing the `Find' button in the search window.
2089 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2090 .TP
2091 .B g
2092 .RB [ goto-page() ]
2093 Moves to the page with the given number. If no page number is given, xdvi jumps to the last page.
2094 .br
2095 If the option/resource
2096 .B useTeXpages
2097 is active, the numbers correspond to the actual page numbers in the TeX file;
2098 otherwise, absolute page numbers (starting from 1) are used. In the latter case,
2099 the page numbers can be changed with the
2100 .RB ` P '
2101 keystroke, below.
2102 Note that with the
2103 .B useTeXpages
2104 option it is possible that the same page number occurs multiple
2105 times; in such a case, xdvi will use the first page number that matches.
2106 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2107 .TP
2108 .B h
2109 Pops up a help window with a short explanation of the most important key
2110 bindings and concepts.
2111 .\"
2112 .\" Ummh, surely nobody will use the following ...
2113 .\"
2114 .\" For I18n purposes, the help texts and menu entries are configurable
2115 .\" via the following X resources:
2116 .\" .BR helpGeneral ,
2117 .\" #ifhyper
2118 .\" .BR helpHypertex ,
2119 .\" #endif
2120 .\" .BR helpOthercommands ,
2121 .\" .BR helpMarking ,
2122 .\" .BR helpPagemotion ,
2123 .\" .BR helpMousebuttons ,
2124 .\" .BR helpRulermode ,
2125 .\" .BR helpSearch and
2126 .\" .BR helpSourcespecials .
2127 .\" The values of this resource should be a text string, the first line of
2128 .\" which should contain two fields separated by `\en'. The first field is
2129 .\" used as list entry for the list of help topics on the left of the help
2130 .\" window, and the second field is used as the heading on the right-hand side.
2131 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2132 .TP
2133 .B k
2134 .RB [ set-keep-flag() ]
2135 Normally when
2136 .B xdvi
2137 switches pages, it moves to the home position as well. The
2138 .RB ` k '
2139 keystroke toggles a `keep-position' flag which, when set, will keep
2140 the same position when moving between pages. Also
2141 .RB ` 0k '
2142 and
2143 .RB ` 1k '
2144 clear and set this flag, respectively. See also the
2145 .B \-keep
2146 option.
2147 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2148 .TP
2149 .B Ctrl-l
2150 .RB [ fullscreen(toggle) ]
2151 Toggles fullscreen mode (see the description of the
2152 .B \-fullscreen
2153 option for more information on this). This is even more flaky than
2154 using the command-line option: There is no universal standard
2155 how a window could change its own geometry or window decorations at
2156 run-time, so this will not work with most window managers or
2157 desktops. Generally, it's better to use the window manager controls to
2158 change the size or decorations of the xdvi window.
2159 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2160 .TP
2161 .B l
2162 .RB [ left() ]
2163 Moves page left two thirds of a window-full.
2164 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2165 .TP
2166 .B M
2167 .RB [ set-margins() ]
2168 Sets the margins so that the point currently under the mouse cursor defines
2169 the upper left-hand corner of the text in the page. Note that the command
2170 does
2171 .I not
2172 move the image, but only determines the margins
2173 for the page switching commands. For details on how the margins
2174 are used, see the
2175 .B \-margins
2176 option.
2177 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2178 .TP
2179 .B m
2180 .RB [ toggle-mark() ]
2181 Toggles the mark for the current page in the page list. When a page
2182 is marked, it is displayed with a small star `*' next to the page number.
2183 The marked pages can then be printed or saved to a file.
2184 A page or several pages can also be marked by clicking or dragging
2185 .B Mouse-2
2186 in the page list.
2187 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2188 .TP
2189 .B Ctrl-n
2190 .RB [ toggle-mark()forward-page() ]
2191 Toggles the mark for the current page in the page list, and moves to
2192 the next page. This lets you quickly mark a series of subsequent pages.
2193 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2194 .TP
2195 .B n
2196 .RB [ forward-page() ]
2197 Moves to the next page (or to the
2198 .IR n th
2199 next page if a number is given). Synonyms are
2200 .RB ` f ',
2201 Return, and Line Feed.
2202 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2203 .TP
2204 .B Ctrl-o
2205 .RB [ select-dvi-file() ]
2206 Read a new
2207 .I dvi
2208 file. A file-selection widget is popped up for you to choose the DVI
2209 file from. If a prefix argument
2210 .I n
2211 is given, the
2212 .I n th
2213 file from the file history is opened instead.
2214 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2215 .TP
2216 .B P
2217 .RB [ declare-page-number() ]
2218 ``This is page number
2219 .IR n .''
2220 This can be used to make the
2221 .RB ` g '
2222 keystroke refer to a different page number than the physical page.
2223 (If you want to use `logical' or \*(Te\& page numbers instead of physical pages,
2224 consider using the option
2225 .B \-useTeXpages
2226 instead.)
2227 The argument
2228 .I n
2229 should be given as prefix to this key.
2230 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2231 .TP
2232 .B Ctrl-p
2233 .RB [ print() ]
2234 Opens a popup window for printing the DVI file, or parts of it.
2235 See the section
2236 .B PRINT DIALOG
2237 for an explanation of the options available, and the resources to customize
2238 the default behaviour.
2239 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2240 .TP
2241 .B p
2242 .RB [ back-page() ]
2243 Moves to the previous page (or back
2244 .I n
2245 pages). Synonyms are
2246 .RB ` b ',
2247 .B Ctrl-h
2248 and
2249 .BR Backspace .
2250 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2251 .TP
2252 .B q
2253 .RB [ quit() ]
2254 Quits the program.
2255 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2256 .TP
2257 .B Ctrl-r
2258 .RB [ forward-page(0) ]
2259 Redisplays the current page.
2260 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2261 .TP
2262 .B R
2263 .RB [ reread-dvi-file() ]
2264 Forces the
2265 .I dvi
2266 file to be reread. This allows you to preview many versions of the same
2267 file while running
2268 .B xdvi
2269 only once.
2270 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2271 .TP
2272 .B r
2273 .RB [ right() ]
2274 Moves page right two thirds of a window-full.
2275 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2276 .TP
2277 .B Ctrl-s
2278 .RB [ save() ]
2279 Opens a popup window for saving the DVI file, or parts of it. See the section
2280 SAVE DIALOG below for more information on this.
2281 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2282 .TP
2283 .B S
2284 .RB [ set-density() ]
2285 Sets the density factor to be used when shrinking bitmaps. This should
2286 be a number between 0 and 100; higher numbers produce lighter characters.
2287 #ifgrey
2288 If greyscaling mode is in effect, this changes the value of gamma instead.
2289 The new value of gamma is the given number divided by 100; negative values
2290 are allowed.
2291 #endif
2292 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2293 .TP
2294 .B s
2295 .RB [ set-shrink-factor() ]
2296 Changes the shrink factor to the given number. If no number is given, the
2297 smallest factor that makes the entire page fit in the window will be used.
2298 (Margins are ignored in this computation.)
2299 .\" NOTE: following only works in action string, not interactively!!!
2300 .\" Two special values are
2301 .\" .B +
2302 .\" and
2303 .\" .B -
2304 .\" which zoom in and out respectively, by decrementing/incrementing the
2305 .\" shrinkfactor by one step.
2306 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2307 .TP
2308 .B T
2309 .RB [ use-tex-pages() ]
2310 Use logical \*(Te\& pages (the values of the
2311 .I \ecount0
2312 register) instead of physical pages for the pagelist labels and
2313 when jumping to a page in a document via
2314 .BR goto-page() .
2315 See also the
2316 .B \-useTeXpages
2317 option.
2318 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2319 .TP
2320 .B t
2321 .RB [ switch-magnifier-units() ]
2322 Switches the units used for the magnifier tick marks, and for reporting
2323 the distance between the mouse pointer and the ruler centre in
2324 ruler mode (see the section
2325 .BR MODES ).
2326 The default value is specified by the X resource
2327 .B tickUnits
2328 (`mm' by default). The units toggle through the following
2329 values; except for `px', they all correspond to \*(Te\&'s units:
2330 .I mm
2331 (millimeters)
2332 .I pt
2333 (\*(Te\& points),
2334 .I in
2335 (inches),
2336 .I sp
2337 (scaled points, the unit used internally by \*(Te\&)
2338 .I bp
2339 (big points or `PostScript points'),
2340 .I cc
2341 (cicero points),
2342 .I dd
2343 (didot points),
2344 .I pc
2345 (pica), and
2346 .I px
2347 (screen pixels).
2348 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2349 .TP
2350 .B Ctrl-u
2351 .RB [ back-page()toggle-mark() ]
2352 Moves to the previous page, and toggles the mark for that page. This
2353 is the dual action to
2354 .BR Ctrl-n .
2355 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2356 .TP
2357 .B u
2358 .RB [ up() ]
2359 Moves page up two thirds of a window-full. With a float argument to ``up'',
2360 moves up the corresponding fraction of a window-full.
2361 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2362 .TP
2363 .B Ctrl-v
2364 .RB [ show-source-specials() ]
2365 Show bounding boxes for every source special on the current page, and print
2366 the strings contained in these specials to stderr. With prefix 1,
2367 show every bounding box on the page. This is for debugging purposes mainly.
2368 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2369 #ifghost
2370 .TP
2371 .B V
2372 .RB [ set-gs-alpha() ]
2373 This key toggles the anti-aliasing of PostScript<tm> specials when
2374 .B Ghostscript
2375 is used as renderer. In addition the key sequences
2376 .RB ` 0V '
2377 and
2378 .RB ` 1V '
2379 clear and set this flag, respectively. See also the
2380 .B \-gsalpha
2381 option.
2382 #endif
2383 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2384 #ifps
2385 .TP
2386 .B v
2387 .RB [ set-ps() ]
2388 This key toggles the rendering of PostScript<tm> specials between 3 states:
2389 .RS 7
2390 .TP 0
2391 .SB - specials (like EPS graphics) are displayed;
2392 .TP
2393 .SB - specials are displayed along with their bounding box (if available);
2394 .TP
2395 .SB - only the bounding box is displayed.
2396 .PP
2397 .sp
2398 The states can also be selected directly by using
2399 .RB ` 1v ',
2400 .RB ` 2v '
2401 and
2402 .RB ` 0v '
2403 respectively.
2404 See also the
2405 .B \-postscript
2406 option.
2407 .RE
2408 #endif
2409 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2410 .TP
2411 .B Ctrl-x
2412 .RB [ source-what-special() ]
2413 Display information about the source special next to the mouse cursor in the
2414 statusline. This is the same special that would be found by
2415 .IR source-special() ,
2416 but without invoking the editor. For debugging purposes.
2417 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2418 .TP
2419 .B x
2420 .RB [ set-expert-mode() ]
2421 Toggles expert mode, in which
2422 the statusline, the scrollbars, the menu buttons, the toolbar (Motif only)
2423 and the page list are not shown.
2424 Typing
2425 .RB ` 1x '
2426 toggles the display of the statusline at the bottom of
2427 the window. Typing
2428 .RB ` 2x '
2429 toggles the scrollbars (if available). For Xaw,
2430 .RB ` 3x '
2431 toggles the menu buttons and the page list, for Motif,
2432 it toggles the page list. In Motif, the additional bindings
2433 .RB ` 4x '
2434 toggle the toolbar, and
2435 .RB ` 5x '
2436 the menu bar.
2437 .br
2438 Without a prefix argument, all of the mentioned GUI elements are either
2439 switched on (if they had been invisible before) or off.
2440 .br
2441 Toggling the scrollbars may behave erratically with the
2442 Xaw widgets; e.g. the scrollbars may reappear after
2443 resizing the window, and at certain window sizes one of the
2444 scrollbars may fail to disappear.
2445 .br
2446 See also the option
2447 .B \-expertmode
2448 (the numbers above correspond to the bits in the argument to
2449 .BR \-expertmode ).
2450 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2451 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2452 .SH MOUSE ACTIONS IN THE MAIN WINDOW
2453 The mouse actions can be customized by setting the X resource
2454 .BR mouseTranslations .
2455 Since there are three different mouse modes (see the section
2456 .B MODES
2457 below), there is a special action
2458 .B mouse-modes
2459 which lists the actions for each of the three modes:
2460 \fBmouse-modes("ACTIONS-FOR-MODE1", "ACTIONS-FOR-MODE2", "ACTIONS-FOR-MODE3")\fR.
2461 If only one argument is specified, this action is used for all modes.
2462 The default bindings are as follows:
2463 .RS 5
2464 .nf
2465 .ft 3
2466 .sp 1n
2467 xdvi.mouseTranslations: \e
2468 Shift<Btn1Down>:mouse-modes("drag(+)")\en\e
2469 Shift<Btn2Down>:mouse-modes("drag(|)")\en\e
2470 Shift<Btn3Down>:mouse-modes("drag(-)")\en\e
2471 Ctrl<Btn1Down>:mouse-modes("source-special()")\en\e
2472 <Btn1Down>: mouse-modes("do-href()magnifier(*2)", "text-selection()", "ruler()")\en\e
2473 <Btn2Down>: mouse-modes("do-href-newwindow()magnifier(*2)", "text-selection()", "ruler()")\en\e
2474 <Btn3Down>: mouse-modes("magnifier(*3)")\en\e
2475 <Btn4Down>: mouse-modes("wheel(-0.2)")\en\e
2476 <Btn5Down>: mouse-modes("wheel(0.2)")\en\e
2477 <Btn6Down>: mouse-modes("hwheel(-0.2)")\en\e
2478 <Btn7Down>: mouse-modes("hwheel(0.2)")\en\e
2479 .sp 1n
2480 .ft
2481 .fi
2482 .RE
2483 All of these actions are described in more detail below.
2484 Note the use of quote symbols around the action strings, which are necessary
2485 to group them into one argument.
2486 Buttons 4, 5, 6, and 7 refer to wheel movements (wheel up/down/left/right)
2487 on wheel mice. Not all mice support horizontal scrolling.
2488 .PP
2489 The X Toolkit routines that implement translations do not support event
2490 types of
2491 .B Btn6Down
2492 or
2493 .BR Btn7Down .
2494 Because of this,
2495 .B xdvi
2496 implements its own parser for translations given in
2497 .BR mouseTranslations .
2498 This parser is more limited than the parser built in to the X Toolkit.
2499 The string given in
2500 .B mouseTranslations
2501 should not begin with
2502 .RB `` #replace '',
2503 .RB `` #augment '',
2504 or
2505 .RB `` #override ''.
2506 Modifiers of the form
2507 .BI @ keysym
2508 are not supported, and the event type must be of the form
2509 .B BtnDown
2510 or
2511 .BI Btn n Down\fR,\fP
2512 where
2513 .I n
2514 is a positive integer without leading zeroes. Also, some limitations apply
2515 to the action field.
2516 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2517 .TP
2518 .B do-href()
2519 .TP
2520 .B do-href-newwindow()
2521 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2522 Usually, if a binding specifies more then one action, all actions
2523 are executed in a sequence. The hyperlink bindings
2524 .B do-href()
2525 and
2526 .B do-href-newwindow()
2527 are special in that they are used as an
2528 .I alternative
2529 to other actions that might follow them
2530 .I if
2531 the mouse is currently located on a hyperlink.
2532 In this case, none of the other actions will be executed;
2533 otherwise, only the other actions are executed.
2534 .br
2535 The action
2536 .B do-href()
2537 jumps to the link target in the current xdvi
2538 window (eventually switching to another page), and
2539 .B do-href-newwindow()
2540 opens a new instance of xdvi for the link target.
2541 In both cases, the location of the target is
2542 indicated by a small arrow drawn in the same color
2543 as a visited link
2544 in the left corner of the window.
2545 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2546 .TP
2547 .B magnifier(n x m)
2548 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2549 .TP
2550 .B magnifier(*n)
2551 This action will pop up a ``magnifying glass'' which shows the unshrunk
2552 image of the region around the mouse pointer. The magnifier disappears when
2553 the mouse button is released. Moving the mouse cursor while holding the button down will move the
2554 magnifier.
2555 .br
2556 Different mouse buttons produce different sized
2557 windows, as indicated by
2558 the argument of the
2559 .I magnifier()
2560 action. Its argument is either a string of the form
2561 .IR width x height ,
2562 as in the
2563 .BI \-mgs n
2564 command-line option, or one of the strings
2565 .B *1
2566 through
2567 .BR *5 ,
2568 referring to the value specified by the corresponding
2569 .BI \-mgs n
2570 option.
2571 .\" Note that in order to assign magnifier actions to
2572 .\" the buttons 4 or 5, you need to use the resource
2573 .\" .B wheelTranslations
2574 .\" (more about this resource below), e.g.:
2575 .\" .sp
2576 .\" xdvi.wheelTranslations: <Btn4Down>: magnifier(*4)\en\e
2577 .\" <Btn5Down>: magnifier(*5)\en
2578 .\" .sp
2579 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2580 .TP
2581 .B drag(+)
2582 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2583 .TP
2584 .B drag(|)
2585 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2586 .TP
2587 .B drag(-)
2588 Drags the page with the mouse. This action should have one parameter, the character
2589 .RB `` | '',
2590 .RB `` - '',
2591 or
2592 .RB `` + '',
2593 indicating vertical dragging only, horizontal dragging only, or dragging in all
2594 directions.
2595 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2596 .TP
2597 .B source-special()
2598 This action starts a ``reverse search'',
2599 opening the editor at the location in the \*(Te\& file corresponding
2600 to the pointer location in the DVI file.
2601 See the section on SOURCE SPECIALS, below, for more information on this.
2602 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2603 .TP
2604 .B wheel()
2605 This action can be used to scroll the image with a wheel mouse, where it
2606 is usually bound to mouse button 4 (wheel up) or 5 (wheel down).
2607 The action takes one parameter, giving the distance to scroll the
2608 image. If the parameter contains a decimal point, the distance is
2609 given in wheel units; otherwise, pixels. A negative value scrolls up,
2610 a positive value scrolls down.
2611 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2612 .TP
2613 .B hwheel()
2614 This action can be used to scroll the image horizontally with a wheel mouse,
2615 where it is usually bound to mouse button 6 (wheel left) or 7 (wheel right).
2616 The action takes one parameter, giving the distance to scroll the
2617 image. If the parameter contains a decimal point, the distance is
2618 given in wheel units; otherwise, pixels. A negative value scrolls left,
2619 a positive value scrolls right. Not all mice support horizontal scrolling;
2620 this is mostly for touchpads, trackpads, etc.
2621 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2622 .TP
2623 .B text-selection()
2624 This action allows you to mark a rectangular region of text in the DVI file.
2625 The text is put into the X selection buffer and can be pasted into other
2626 applications (e.g. text editors). This works similar to the Plain text option
2627 in the
2628 .B Save
2629 dialog; see the discussion there for more information on encoding issues.
2630 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2631 .TP
2632 .B ruler()
2633 This action creates a cross-shaped ruler. Moving the mouse and holding
2634 the button down drags the ruler and lets you measure distances on the page.
2635 See the section
2636 .B Ruler Mode
2637 for more information on this.
2638 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2639 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2640 .SH UNBOUND ACTIONS
2641 The following actions are not bound to a key by default, but are available
2642 for customization.
2643 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2644 .TP
2645 .B quit-confirm()
2646 Pops up a confirmation window to quit xdvi. To bind it to the
2647 .RB ` q '
2648 key instead of the default `quit()' action, put the following into your
2649 .I ~/.Xdefaults
2650 file:
2651 .sp
2652 xdvi.mainTranslations: #override\e
2653 .br
2654 <Key>q: quit-confirm()\en
2655 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2656 .TP
2657 .B down-or-next()
2658 Similar to
2659 .IR unpause-or-next() :
2660 Moves down two-thirds of a window-full, or to the next page if already
2661 at the bottom of the page.
2662 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2663 .TP
2664 .B shrink-to-dpi()
2665 This action takes one (required) argument. It sets the shrink factor to
2666 an integer so as to approximate the use of fonts with the corresponding
2667 number of dots per inch. If
2668 .B xdvi
2669 is using fonts scaled for
2670 .I p
2671 dots per inch, and the argument to
2672 .B shrink-to-dpi
2673 is
2674 .IR n ,
2675 then the corresponding shrink factor is the ratio
2676 .IR p / n ,
2677 rounded to the nearest integer.
2678 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2679 .TP
2680 .B user-exec()
2681 This action takes one (required) argument. Runs an external program
2682 specified by the argument, which is tokenized on whitespace. The
2683 .B XDVI_FILE
2684 environment variable is set to the absolute pathname of the DVI file,
2685 so that the program can find the DVI. As an example, to establish the
2686 key
2687 .RB ` m '
2688 as a keybinding that regenerates the DVI file with `make', put the
2689 following into your
2690 .I ~/.Xdefaults
2691 file:
2692 .sp
2693 xdvi.mainTranslations: #override\e
2694 .br
2695 <Key>m: user-exec(xdvi-remake)\en
2696
2697 where `xdvi-remake' names a program in your
2698 .B PATH
2699 analogous to `cd $(dirname $XDVI_FILE) && make $(basename $XDVI_FILE)'.
2700 (See also the section
2701 .B SIGNALS
2702 for a way to get
2703 .B xdvi
2704 to reload the DVI file once it has been regenerated.)
2705 .PP
2706 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2707 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2708 .SH CUSTOMIZATION
2709 Key and mouse button assignments can be changed by setting the
2710 .B mainTranslations
2711 resource to a string of translations as defined in the documentation for the
2712 X toolkit. The actions should take the form of action names listed in the
2713 KEYSTROKES and MOUSE ACTIONS sections.
2714 .PP
2715 An exception to this are the Motif keys
2716 .IR osfPageUp " (" PgUp ),
2717 .IR osfPageDown " (" PgDown ),
2718 .IR osfBeginLine " (" Home )
2719 and
2720 .IR osfEndLine " (" End )
2721 which are currently not customizable in the Motif version.
2722 .PP
2723 Key actions will usually be without arguments; if they are passed an argument,
2724 it represents the optional number or `prefix argument' typed prior to the action.
2725 .PP
2726 Some key actions may take special arguments, as follows: The argument of
2727 .B goto-page
2728 may be the letter
2729 .RB ` e ',
2730 indicating the action of going to the end of the document.
2731 The argument of
2732 .B set-shrink-factor
2733 may be the letter
2734 .RB ` a ',
2735 indicating that the shrink factor should be set to the smallest value such that
2736 the page will fit in the window, or one of the signs
2737 .RB ` + '
2738 or
2739 .RB ` - ',
2740 indicating that the shrink factor should be increased or decreased, respectively.
2741 Finally, actions that would perform a toggle, such as
2742 .BR set-keep-flag ,
2743 may receive an argument
2744 .RB ` t ',
2745 indicating that the action should toggle regardless of the current prefix argument.
2746 .PP
2747 Mouse actions should refer only to
2748 .B ButtonPress
2749 events (e.g.\&
2750 .BR "<Btn1Down>:magnifier(*1)" ).
2751 The corresponding motion and release events will be handled internally.
2752 A key action may be bound to a mouse event, but not vice versa.
2753 .PP
2754 Usually the string of translations should begin with
2755 .RB `` #override '',
2756 indicating that the default key and mouse button assignments should not
2757 be discarded.
2758 .PP
2759 When keys or mouse buttons involving modifiers (such as Ctrl or Shift)
2760 are customized together with their non-modified equivalents, the modified
2761 keys should come first, for example:
2762 .RS 5
2763 .nf
2764 .ft 3
2765 .sp 1n
2766 xdvi.mainTranslations: #override \e
2767 Shift<Key>s: select-dvi-file()\en\e
2768 Ctrl<Key>s: save()\en\e
2769 <Key>s: find()\en
2770 .sp 1n
2771 .ft
2772 .fi
2773 .RE
2774 .PP
2775 Because
2776 .B xdvi
2777 needs to capture pointer motion events, and because the X Toolkit
2778 translations mechanism cannot accommodate both motion events and double-click
2779 events at the same time, it is not possible to specify double-click
2780 actions in
2781 .B xdvi
2782 customizations. For information on this and other aspects of translations,
2783 see the X Toolkit Intrinsics documentation.
2784 .PP
2785 There is no command-line option to set the
2786 .B mainTranslations
2787 resource, since changing this resource on the command line would be cumbersome.
2788 To set the resource for testing purposes, use the
2789 .B -xrm
2790 command-line option provided by the X toolkit. For example,
2791 \fBxdvi \-xrm 'XDvi.mainTranslations: #override "z":quit()' ...\fR
2792 or
2793 .B "xdvi \-xrm 'XDvi.mainTranslations: #override <Key>z:quit()' ..."
2794 will cause the key
2795 .RB ` z '
2796 to quit
2797 .BR xdvi .
2798 .PP
2799 Some resources are provided to allow customization of the geometry of
2800 the Xaw command buttons. Again, they are not changeable via command-line
2801 options, other than via the
2802 .B \-xrm
2803 option. All of these resources take integer values.
2804 .TP
2805 .B buttonSideSpacing
2806 The number of pixels to be placed on either side of the buttons.
2807 The default value is 6.
2808 .TP
2809 .B buttonTopSpacing
2810 The number of pixels between the top button and the top of the window.
2811 The default value is 50.
2812 .TP
2813 .B buttonBetweenSpacing
2814 The number of pixels between the buttons.
2815 The default value is 20.
2816 .TP
2817 .B buttonBetweenExtra
2818 The number of pixels of additional space to be inserted if the
2819 .B buttonTranslations
2820 resource string contains an extra newline character.
2821 The default value is 50.
2822 .TP
2823 .B buttonBorderWidth
2824 The border width of the button windows. The default value is 1.
2825 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2826 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2827 .SH PAGE LIST
2828 The scrollable page list on the right of the main window allows you to
2829 jump directly to a page in the DVI file.
2830 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2831 .TP
2832 .B Mouse-1
2833 Jumps to the page the mouse is located on.
2834 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2835 .TP
2836 .B Mouse-2
2837 .RB [ toggle-mark() ]
2838 Toggle the mark of the current page. The marks are used by the `Print'
2839 and `Save to file' dialogs to select only marked pages from the DVI file.
2840 .PP
2841 When the mouse pointer is inside the page list, the mouse wheel switches
2842 to the next or previous page.
2843 .PP
2844 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2845 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2846 .SH SCROLLBARS
2847 The scrollbars (if present) behave in the standard way: pushing Button 2
2848 in a scrollbar moves the top or left edge of the scrollbar to that point
2849 and optionally drags it;
2850 pushing Button 1 moves the image up or right by an amount equal to the distance
2851 from the button press to the upper left-hand corner of the window; pushing
2852 Button 3 moves the image down or left by the same amount.
2853 .PP
2854 The scrollbars can be removed via the
2855 .I -expertmode
2856 flag/keystroke (which see).
2857 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2858 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2859 .SH MAGNIFIER
2860 By default, the mouse buttons 1 to 5 will pop up a ``magnifying glass''
2861 that shows an unshrunken image of the page (i.e. an image at the resolution
2862 determined by the option/X resource
2863 .B pixels
2864 or
2865 .BR mfmode )
2866 at varying sizes. When the magnifier is moved, small ruler-like
2867 tick marks are displayed at the edges of the magnifier (unless
2868 the X resource
2869 .B delayRulers
2870 is set to false, in which case the tick marks will always be displayed).
2871 The unit of the marks is determined by the X resource
2872 .B tickUnits
2873 (mm by default). This unit can be changed at runtime via the action
2874 .BR switch-magnifier-units() ,
2875 by default bound to the keystroke
2876 .RB ` t '
2877 (see the description of that key, and of switch-magnifier-units() for
2878 more details on the units available).
2879 .br
2880 The length of the tick marks can be changed via the X resource
2881 .B tickLength
2882 (4 by default). A zero or negative value suppresses the tick marks.
2883 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2884 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2885 .SH PAGE HISTORY
2886 .B Xdvi
2887 keeps a history of viewed pages, and you can move through the history
2888 and delete items using the keys
2889 .B [
2890 .RI ( pagehistory-back() ),
2891 .B ]
2892 .RI ( pagehistory-forward() ),
2893 .B Ctr-[
2894 .RI ( pagehistory-delete-backward() )
2895 and
2896 .B Ctr-]
2897 .RI ( pagehistory-delete-forward() ).
2898 .PP
2899 When one of the history commands is used, the page history is displayed
2900 in the status line at the bottom of the window, with the current list
2901 item marked by square brackets `[', `]' and a left and right context of
2902 at most 10 items. File boundaries are marked by `#'.
2903 .PP
2904 The size of the history can be customized with the X resource
2905 .B pageHistorySize
2906 (the default size is 1000 items). If the size is set to 0, the
2907 history commands are disabled.
2908 .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2909 .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2910 .SH HYPERLINKS
2911 The actions
2912 .B do-href()
2913 and
2914 .B do-href-newwindow()
2915 (by default bound to Mouse-1 and Mouse-2 if the pointer is currently located
2916 on a hyperlink) can be used to open the link target in the same window
2917 .RB ( do-href() )
2918 or in a new window
2919 .RB ( do-href-newwindow() ).
2920 .PP
2921 If the link target is not a file on the local disk,
2922 xdvi tries to launch a web browser (as specified by the
2923 .B -browser
2924 command line option, the
2925 .B BROWSER
2926 environment variable or the
2927 .B wwwBrowser
2928 X resource, in this order) to retrieve the document. See the description
2929 of the
2930 .B BROWSER
2931 environment variable, below, for an example setting.
2932 .PP
2933 If the file is a local file, xdvi tries to determine if it is a DVI
2934 file. If it is, xdvi will try to display the file; otherwise it will
2935 try to determine the MIME type of the file, and from that an
2936 application suitable for opening the file.
2937 This is done by parsing the files specified by the environment variable
2938 .B EXTENSIONMAPS
2939 for a mapping of filename extensions to MIME types,
2940 and the files determined by the environment variable
2941 .B MAILCAPS
2942 for a mapping of MIME types to application programs.
2943 See the descriptions of these variables in the section
2944 .BR ENVIRONMENT ,
2945 below, for a more detailed description and the default values of these
2946 variables. If no suitable files are found, a set of built-in default
2947 MIME types and applications is used.
2948 .PP
2949 .B Xdvi
2950 currently uses no heuristics apart from the filename suffix
2951 to determine the mime type of a file. If a filename has no suffix,
2952 the value of the resource
2953 .B noMimeSuffix
2954 is used (by default
2955 .IR application/x-unknown ).
2956 If the suffix doesn't match any of the suffixes in
2957 .BR mime.types ,
2958 the value of the resource
2959 .B unknownMimeSuffix
2960 is used (by default
2961 .IR application/x-unknown ).
2962 If the
2963 .B mailcap
2964 entries do not list a viewer for a given mime type, xdvi will show
2965 a warning popup. If you want to avoid this warning, and for example
2966 want to always use the netscape browser for unknown MIME types,
2967 you could add the following line to your ~/.mailcap file:
2968 .RS 4
2969 .nf
2970 .ft 3
2971 .sp 1n
2972 application/xdvi-unknown; \e
2973 netscape -raise -remote 'openURL(%s,new-window)'
2974 .sp 1n
2975 .ft
2976 .fi
2977 .RE
2978 .\" As an example, consider the following settings, which are the default
2979 .\" settings for buttons 1 and 2:
2980 .\" .RS 5
2981 .\" .nf
2982 .\" .ft 3
2983 .\" .sp 1n
2984 .\" xdvi.mainTranslations: #override \e
2985 .\" <Btn1Down>: do-href()magnifier(*1)\en\e
2986 .\" <Btn2Down>: do-href-newwindow()magnifier(*2)\en\e
2987 .\" <Btn3Down>: magnifier(*3)\en
2988 .\" .sp 1n
2989 .\" .ft
2990 .\" .fi
2991 .\" .RE
2992 .\" .PP
2993 .\" If a link points to a file which is not a DVI file (e.g. HTML, or
2994 .\" PostScript), the files
2995 .\" .B mime.types
2996 .\" and
2997 .\" .B mailcap
2998 .\" are parsed to determine a suitable viewer; if no suitable
2999 .\" .B mailcap
3000 .\" entry was found, if the
3001 .\" .SB WWWBROWSER
3002 .\" environment variable is set, or
3003 .\" .B \-browser
3004 .\" was specified on the command line, the browser is launched to load the file.
3005 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3006 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3007 .SH STRING SEARCH
3008 The keystroke
3009 .I Ctrl-f
3010 or the menu entry
3011 .I File > Find ...
3012 (or the `Binoculars' symbol in the toolbar, for Motif)
3013 opens a dialog window to search for a text string or
3014 a regular expression in the DVI file.
3015 The keystroke
3016 .I Ctrl-g
3017 jumps to the next match (like pressing the `Find' button in the search window).
3018 .PP
3019 By default, the matches are highlighted in inverted color.
3020 If the display isn't running in TrueColor, or if the X resource
3021 .B matchHighlightInverted
3022 is set to false or the command-line option
3023 .B \-nomatchinverted
3024 is used, xdvi will instead draw a rectangle in
3025 .I highlight
3026 color (see the
3027 .B \-hl
3028 option) around the match.
3029 .PP
3030 If a match crosses a page boundary, only the part on the
3031 first page is highlighted.
3032 .B Xdvi
3033 will scan up to 2 adjacent pages to match strings crossing page
3034 boundaries; but note that header or footer
3035 lines, or intervening float pages will be treated as parts of the
3036 scanned text. Such text will usually cause multi-page matching to fail.
3037 .PP
3038 This emphasizes the fact that searching in the
3039 formatted text (the DVI output) works differently from
3040 searching in the source text: Searching in the DVI file makes it easier to
3041 skip formatting instructions, and makes it possible to search for e.g.\&
3042 hyphenation and equation numbers; but sometimes the
3043 formatting results can also get in the way, e.g. in the case of
3044 footnotes. In these cases it's better to search in the \*(Te\& source
3045 instead. The use of
3046 .I source specials
3047 will make switching between the
3048 xdvi display and the editor with the \*(Te\& source easier; see the
3049 section
3050 .B SOURCE SPECIALS
3051 below for more information on this.
3052 .PP
3053 The text extracted from the DVI file is in encoded in UTF-8
3054 (you can view that text by saving the file in UTF-8 format via the
3055 .I File > Save as ...
3056 menu item).
3057 If xdvi has been compiled with locale,
3058 .I nl_langinfo()
3059 and
3060 .I iconv
3061 support, the search term is converted from the character set
3062 specified by the current locale into UTF-8. (See the output of
3063 .B locale -a
3064 for a list of locale settings available on your system).
3065 If
3066 .I nl_langinfo()
3067 is not available, but
3068 .I iconv
3069 is, you can specify the input encoding for
3070 .I iconv
3071 via the X resource
3072 .I textEncoding
3073 (see the output of
3074 .B iconv -l
3075 for a list of valid encodings). If
3076 .I iconv
3077 support is not available, only the encodings
3078 .I ISO-8859-1
3079 and
3080 .I UTF-8
3081 are supported (these names are case-insensitive).
3082 .PP
3083 Ideographic characters from CJKV fonts are treated specially: All white space
3084 (spaces and newlines) before and after such characters is ignored in
3085 the search string and in the DVI file.
3086 .PP
3087 To match a newline character, use \fI\en\fR in the search string;
3088 to match the string \fI\en\fR, use \fI\e\en\fR.
3089 .PP
3090 If the checkbox
3091 .I Regular Expression
3092 is activated, the string is treated as a regular expression in
3093 extended POSIX syntax, with the following properties:
3094 .RS 2
3095 .TP 2
3096 -
3097 \fIa?\fR matches \fIa\fR zero or one times.
3098 .TP
3099 -
3100 \fIa*\fR matches \fIa\fR zero or more times.
3101 .TP
3102 -
3103 \fIa+\fR matches \fIa\fR one or more times.
3104 Note that \fI*\fR and \fI+\fR are greedy, i.e. they match the longest possible substring.
3105 .TP
3106 -
3107 The pattern \fI.\fR matches any character except for newline. To also match a newline, use `\fI(.|\en)\fR'.
3108 .TP
3109 -
3110 \fIa{n}\fR matches \fIa\fR exactly n times.
3111 .TP
3112 -
3113 \fIa{n,m}\fR matches \fIa\fR at least n and no more than m times.
3114 .TP
3115 -
3116 \fIa|b\fR matches \fIa\fR or \fIb\fR. Brackets can be used
3117 for grouping, e.g.: \fI(a|b)|c\fR.
3118 .TP
3119 -
3120 The string matched by the nth group can be referenced by \fI\en\fR, e.g. \fI\e1\fR refers to the
3121 first match.
3122 .TP
3123 -
3124 The characters \fI^\fR and \fI$\fR match the beginning and the end of a line, respectively.
3125 .TP
3126 -
3127 \fI[abc]\fR matches any of the letters a, b, c, and \fI[a-z]\fR matches all characters from a to z.
3128 .TP
3129 -
3130 Each item in a regular expression can also be one of the following POSIX
3131 character classes:
3132 .br
3133 .nf
3134 .I [[:alnum:]] [[:alpha:]] [[:blank:]] [[:cntrl:]] [[:digit:]]
3135 .I [[:graph:]] [[:lower:]] [[:print:]] [[:space:]] [[:upper:]]
3136 .fi
3137
3138
3139 These can be negated by inserting a \fI^\fR symbol after the first bracket:
3140 .I [^[:alpha:]]
3141
3142 For more details on POSIX regular expressions, see e.g. the
3143 .B IEEE Std 1003.1
3144 standard definition available online from:
3145
3146 .nf
3147 http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap09.html
3148 .fi
3149 .TP
3150 -
3151 As a non-standard extension, the following Perl-like abbreviations
3152 can be used instead of the POSIX classes:
3153 .nf
3154 .sp 1n
3155 .ta 1L +8L +30L
3156 Symbol Meaning POSIX Class
3157
3158 \fI\ew\fR an alphanumeric character \fI[[:alnum:]]\fR
3159 \fI\eW\fR a non-alphanumeric character \fI[^[:alnum:]]\fR
3160 \fI\ed\fR a digit character \fI[[:digit:]]\fR
3161 \fI\eD\fR a non-digit character \fI[^[:digit:]]\fR
3162 \fI\es\fR a whitespace character \fI[[:space:]]\fR
3163 \fI\eS\fR a non-whitespace character \fI[^[:space:]]\fR
3164 .sp 1n
3165 .fi
3166 .TP
3167 -
3168 The following characters are special symbols; they need to be escaped
3169 with \fI\e\fR in order to match them literally: \fI ( ) [ ] . * ? + ^ $ \e\fR.
3170 .TP
3171 -
3172 Matches of length zero are silently skipped.
3173 .RE
3174 .PP
3175 The dialog also provides checkboxes to:
3176 .RS 2
3177 .TP 2
3178 -
3179 search backwards;
3180 .TP
3181 -
3182 match in a case-sensitive manner (the default is to ignore case, i.e. a search
3183 string
3184 .I Test
3185 will match both the strings
3186 .I test
3187 and
3188 .I TEST
3189 in the DVI file);
3190 .TP
3191 -
3192 ignore line breaks and hyphens: This removes all hyphens at the ends
3193 of lines and the following newline characters, and replaces all
3194 remaining newline characters by white spaces. So hyphenated words will
3195 appear as one word to the search, and a search for two words with a space
3196 in between will also match the words if they are separated by a linebreak.
3197 .br
3198 Note that the hyphen removal may cause unwanted side effects for compound words
3199 containing hyphens that are wrapped after the hyphen, and that replacing the
3200 newlines affects the interpretation of regular expressions as follows:
3201 The \fI.\fR pattern will also match newlines, and \fI^\fR and \fI$\fR won't match
3202 begin and end of lines any more. (Since currently there is no option for turning
3203 off the greediness of \fI*\fR and \fI+\fR, turning on this option will usually
3204 result in matches that are longer than desired.)
3205 .RE
3206 .PP
3207 The current checkbox settings are saved in the
3208 .I ~/.xdvirc
3209 file.
3210 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3211 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3212 .SH PRINT DIALOG
3213 The print dialog window allows you to print all pages, marked pages
3214 (click or drag Mouse-2 in the page list to mark them), or a range
3215 of pages. Note that the page numbers always refer to physical pages,
3216 so if you're using the option `use TeX pages', you may want to disable
3217 it to make it easier to determine the correct page numbers (or avoid this
3218 problem altogether by marking the pages to be printed).
3219 .PP
3220 The value of the
3221 .B Printer
3222 text filed is passed to
3223 .B dvips
3224 via the
3225 .B -o!
3226 mechanism, as a single argument after the `!'. Any arguments
3227 listed in the
3228 .B Dvips options
3229 field are segmented at whitespace and passed as separate arguments to dvips.
3230 If you e.g. want to print the file 2-up, you should enter
3231 the following string into the
3232 .B Printer
3233 field:
3234 .RS 5
3235 .nf
3236 .sp 1n
3237 \fIpsnup -2 -q | lpr -Plp\fP
3238 .sp 1n
3239 .fi
3240 .RE
3241 .PP
3242 There are several resources for customizing the behaviour and the default entries
3243 of the print dialog:
3244 .TP
3245 .B dvipsPrinterString
3246 .TP
3247 .B dvipsOptionsString
3248 These can be used to provide default entries for the
3249 .B Printer
3250 and the
3251 .B Dvips options
3252 text fields, respectively. If no paper size is specified in the DVI file
3253 (via e.g. \eusepackage[dvips]{geometry} - this is the preferred method),
3254 the input field is initialized with the current value of the
3255 command line option/X resource
3256 .BR paper .
3257 E.g. the option
3258 .I -paper a4r
3259 is translated into the dvips options
3260 .IR "-t a4 -t landscape" .
3261 Note that no check is performed whether dvips actually understands these
3262 options (it will ignore them if it can't); currently not all options
3263 used by xdvi are also covered by dvips.
3264 .TP
3265 .B dvipsHangTime
3266 .TP
3267 .B dvipsFailHangTime
3268 These specify the time (in milliseconds) that the printing progress window will
3269 stay open after the
3270 .B dvips
3271 process has terminated. The value of
3272 .B dvipsHangTime
3273 is used if the process terminates successfully;
3274 .B dvipsFailHangTime
3275 is used if it terminates with an error. The default values are 1.5 and 5 seconds, respectively.
3276 If both values are negative, the window will stay open until it is closed by the user.
3277 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3278 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3279 .SH SAVE DIALOG
3280 This dialog allows you to save all or selected/marked pages in the current
3281 DVI file. You can save in one of the following formats:
3282 .RS 2
3283 .TP 2
3284 -
3285 PostScript (uses
3286 .B dvips
3287 to convert the DVI file to a PostScript file, just like when printing
3288 to a PostScript file).
3289 .TP
3290 -
3291 PDF (first uses
3292 .B dvips
3293 to convert the DVI file to a PostScript file, then uses
3294 .B ps2pdf
3295 to convert the PostScript file to PDF).
3296 .TP
3297 -
3298 Plain text in ISO-8859-1 or UTF-8 encoding. The latter will preserve more
3299 of the special LaTeX characters e.g. from mathematical mode. Note however
3300 that e.g. only few of LaTeX's mathematical symbols can be rendered correctly
3301 as text; so this functionality works best for plain text documents.
3302 If a character cannot be displayed in the selected
3303 charset, it is replaced by `\e' followed by the hexadecimal character code.
3304 If a character is not recognized at all, it is replaced by `?'.
3305 .RE
3306 .PP
3307 The programs for PostScript and PDF conversion can be customized via
3308 the command line options or X resources
3309 .BR -dvipspath / .dvipsPath
3310 and
3311 .BR -ps2pdfpath / .ps2pdfPath ,
3312 respectively; see the explanation of these options above for more details.
3313 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3314 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3315 .SH MODES
3316 The keystroke
3317 .B Ctrl-m
3318 [\fBswitch-mode()\fR]
3319 switches between three different mouse bindings,
3320 which can also be activated via the
3321 .B Modes
3322 menu (in Motif, this is a submenu of the
3323 .B Options
3324 menu called
3325 .BR "Mouse Mode" ).
3326 The default mode at startup can be customized via the X resource
3327 .B mouseMode
3328 or the command-line option
3329 .BR \-mousemode .
3330 The default startup mode is Magnifier Mode.
3331 .PP
3332 .B Note:
3333 The modes are implemented by changing the
3334 .I magnifier()
3335 action. Switching the mode will not work if
3336 .B Mouse-1
3337 has been customized to an action sequence that does
3338 not contain the magnifier() action.
3339 .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3340 .TP
3341 .B "Magnifier Mode"
3342 In this mode, the mouse buttons 1 to 5 pop up a ``magnifying glass''
3343 that shows an unshrunken image of the page (i.e. an image at the resolution
3344 determined by the option/X resource
3345 .B pixels
3346 or
3347 .BR mfmode )
3348 at varying sizes. When the magnifier is moved, small ruler-like
3349 tick marks are displayed at the edges of the magnifier (unless
3350 the X resource
3351 .B delayRulers
3352 is set to false, in which case the tick marks are always displayed).
3353 The unit of the marks is determined by the X resource
3354 .B tickUnits
3355 (mm by default). This unit can be changed at runtime via the action
3356 .BR switch-magnifier-units() ,
3357 by default bound to the keystroke
3358 .RB ` t '
3359 (see the description of that key, and of switch-magnifier-units() for
3360 more details on the units available).
3361 .br
3362 The length of the tick marks can be changed via the X resource
3363 .B tickLength
3364 (4 by default). A zero or negative value suppresses the tick marks.
3365 .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3366 .TP
3367 .B "Text Selection Mode"
3368 This mode allows you to select a rectangular region of text in the DVI
3369 file by holding down
3370 .B Mouse-1
3371 and moving the mouse. The text is put into
3372 the X primary selection so that it can be pasted into other X applications
3373 with
3374 .B Mouse-2
3375 as usual.
3376 .br
3377 If xdvi has been compiled with locale,
3378 .I nl_langinfo()
3379 and
3380 .I iconv
3381 support, the selected text is converted into the character set of the
3382 current locale (see the output of
3383 .B locale -a
3384 for a list of locale settings available on your system).
3385 If
3386 .I nl_langinfo()
3387 is not available, but
3388 .I iconv
3389 is, you can specify the input encoding for
3390 .I iconv
3391 via the X resource
3392 .I textEncoding
3393 (see the output of
3394 .B iconv -l
3395 for a list of valid encodings). If
3396 .I iconv
3397 support is not available, only the encodings
3398 .I ISO-8859-1
3399 and
3400 .I UTF-8
3401 are supported (these names are case-insensitive).
3402 .br
3403 Note that UTF-8 is
3404 the only encoding that can render all characters (e.g. mathematical
3405 symbols) of a DVI file. If ISO-8859-1 is active, characters that cannot be displayed
3406 are replaced by `\e' followed by the hexadecimal character code.
3407 For other encodings, such characters may trigger iconv error messages.
3408 If a character is not recognized at all, it is replaced by `?'.
3409 .br
3410 To extract larger portions of text, you can alternatively
3411 save selected pages or the entire file in text format via the
3412 .B File > Save as ...
3413 menu.
3414 .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3415 .TP
3416 .B "Ruler Mode"
3417 This mode provides a simple way of measuring distances on the page.
3418 .br
3419 When this mode is activated, the mouse cursor changes into a
3420 thin cross, and a larger, cross-shaped ruler is drawn in the
3421 highlight color at the mouse location. The ruler doesn't have
3422 units attached to it; instead, the current distance between the
3423 ruler and the mouse cursor is continuously printed to the
3424 statusline.
3425 .br
3426 When activating Ruler Mode, the ruler is at first attached to
3427 the mouse and can be moved around. It can then be positioned at
3428 a fixed place by clicking
3429 .BR Mouse-1 .
3430 After that, the mouse cursor
3431 can be moved to measure the horizontal
3432 .RI ( dx ),
3433 vertical
3434 .RI ( dy )
3435 and direct (shortest)
3436 .RI ( dr )
3437 distance between the ruler center point and the mouse.
3438 .br
3439 Clicking
3440 .B Mouse-1
3441 again will move the ruler to the current mouse
3442 position, and holding down
3443 .B Mouse-1
3444 will drag the ruler around.
3445 .br
3446 In Ruler Mode, the following special keybindings extend or
3447 replace the default bindings:
3448 .RS 7
3449 .TP 7
3450 .B o
3451 .RB [ ruler-snap-origin() ]
3452 Snap the ruler back to the origin coordinate (0,0).
3453 .TP
3454 .B t
3455 \fR[overrides \fBswitch-magnifier-units()\fP]
3456 Toggle between various ruler units, which can be specified by the X
3457 resource
3458 .B tickUnits
3459 (`mm' by default).
3460 .TP
3461 .B P
3462 \fR[overrides \fBdeclare-page-number()\fP]
3463 Print the distances shown in the statusline to standard output.
3464 .RE
3465 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3466 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3467 .SH TOOLBAR (Motif only)
3468 The Motif toolbar can also be customized. The XPM file used for the
3469 toolbar icons can be specified via the resource
3470 .BR toolbarPixmapFile ,
3471 which should contain a filename that can be found in one of
3472 .B XFILESEARCHPATH
3473 or
3474 .B XDVIINPUTS
3475 (see the section
3476 .B FILE SEARCHING
3477 below for more information on these variables).
3478 .B Xdvi
3479 will try to split this pixmap horizontally into
3480 .I n
3481 pieces, where each piece is as wide as the pixmap is high
3482 and is treated as an image for toolbar button
3483 .IR n .
3484 This means that each icon should be a square, and that the entire
3485 pixmap should have width
3486 \fIn\fR x \fIh\fR if \fIh\fR is the height of the pixmap.
3487 .PP
3488 The resource
3489 .B toolbarTranslations
3490 can be used to map icons/buttons to specific actions.
3491 The resource should contain a string separated by newline characters,
3492 similar to the resources
3493 .B mainTranslations
3494 and
3495 .BR menuTranslations .
3496 Every line must contain either a spacer definition, or an icon definition:
3497 .PP
3498 A spacer definition is a string \fBSPACER(\fIn\fB)\fR,
3499 where
3500 .I n
3501 is the number of pixels inserted as separator to the following button.
3502 .PP
3503 An icon definition is a colon-separated list containing the following elements:
3504 .RS 2
3505 .TP 2
3506 .SB - the index of an icon in the pixmap file (starting from zero);
3507 .TP
3508 .SB - a long tooltip string, displayed in the status area;
3509 .TP
3510 .SB - a short tooltip string, displayed as popup;
3511 .TP
3512 .SB - a sequence of actions to be performed when the corresponding toolbar button is pushed.
3513 .RE
3514 .PP
3515 To illustrate this, the default value of
3516 .B toolbarTranslations
3517 looks as follows:
3518 .RS 5
3519 .nf
3520 .ft 3
3521 .sp 1n
3522 xdvi.toolbarTranslations: \e
3523 SPACER(5)\en\e
3524 0:Open a new document (Key\e\e: Ctrl-f):\e
3525 Open file:select-dvi-file()\en\e
3526 SPACER(10)\en\e
3527 1:Reread this document (Key\e\e: R):\e
3528 Reread file:reread-dvi-file()\en\e
3529 SPACER(10)\en\e
3530 2:Go to the first page of this document (Key\e\e: 1g):\e
3531 Go to first page:goto-page(1)\en\e
3532 3:Go to the previous page of this document (Key\e\e: p):\e
3533 Go to previous page:back-page(1)\en\e
3534 4:Go to the next page of this document (Key\e\e: n):\e
3535 Go to next page:forward-page(1)\en\e
3536 5:Go to the last page of this document (Key\e\e: g):\e
3537 Go to last page:goto-page()\en\e
3538 SPACER(10)\en\e
3539 6:Enlarge the display (Key\e\e: Ctrl-+):Zoom in:\e
3540 set-shrink-factor(+)\en\e
3541 7:Shrink the display (Key\e\e: Ctrl--):Zoom out:\e
3542 set-shrink-factor(-)\en\e
3543 SPACER(10)\en\e
3544 8:Jump back to the previous hyperlink (Key\e\e: B):\e
3545 Back hyperlink:htex-back()\en\e
3546 SPACER(10)\en\e
3547 10:Print this document:Print:print()\en\e
3548 SPACER(10)\en\e
3549 11:Toggle marks for odd pages (Key\e\e: 1m):\e
3550 Toggle odd:toggle-mark(1)\en\e
3551 12:Toggle marks for even pages (Key\e\e: 2m):\e
3552 Toggle even:toggle-mark(2)\en\e
3553 13:Toggle mark for current page (Key\e\e: 2m):\e
3554 Toggle current:toggle-mark()\en\e
3555 14:Unmark all pages (Key\e\e: 0m):\e
3556 Unmark all:toggle-mark(0)\en\e
3557 SPACER(10)\en\e
3558 18:Display fonts darker (Key\e\e: Alt-Ctrl-+):\e
3559 Fonts darker:change-density(5)\en\e
3560 19:Display fonts lighter (Key\e\e: Alt-Ctrl--):\e
3561 Fonts lighter:change-density(-5)\en
3562 .sp 1n
3563 .ft
3564 .fi
3565 .RE
3566 .PP
3567 When the mouse remains over a toolbar button for a certain period, a `tooltip'
3568 window is shown, describing what the button does using the
3569 .I short tooltip string
3570 from the above resource. At the same time, the
3571 .I long tooltip string
3572 is displayed in the statusline.
3573 The appearance and behaviour of these tooltips can be customized via
3574 the following resources:
3575 .TP
3576 .B tipShell.background
3577 Background color of the tooltip window.
3578 .TP
3579 .B tipShell.fontSet
3580 Font used for the tooltip.
3581 .TP
3582 .B tipShell.waitPeriod
3583 The time (in milliseconds) the mouse pointer needs to be over
3584 the button before the tooltip is shown. Set it to a negative value
3585 to suppress the tooltips altogether.
3586
3587 #ifgrey
3588 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3589 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3590 .SH GREYSCALING AND COLORMAPS
3591 The greyscale anti-aliasing feature in
3592 .B xdvi
3593 will not work at its best if the display does not have enough colors available.
3594 This can happen if other applications are using most of the colormap
3595 (even if they are iconified). If this occurs, then
3596 .B xdvi
3597 will print an error message and turn on the
3598 .B -copy
3599 option. This will result in overstrike characters appearing wrong;
3600 it may also result in poor display quality if the number of available
3601 colors is very small.
3602 .PP
3603 Typically this problem occurs on displays that allocate eight bits
3604 of video memory per pixel. To see how many bits per pixel your display
3605 uses, type
3606 .B xwininfo
3607 in an
3608 .B xterm
3609 window, and then click the mouse on the root window when asked. The
3610 ``Depth:'' entry will tell you how many bits are allocated per pixel.
3611 .PP
3612 Displays using at least 15 bits per pixel are typically
3613 .B TrueColor
3614 visuals, which do not have this problem, since their colormap is
3615 permanently allocated and available to all applications. (The visual
3616 class is also displayed by
3617 .BR xwininfo .)
3618 For more information on visual classes see the documentation for the
3619 X Window System.
3620 .PP
3621 To alleviate this problem, therefore, one may (a) run with more bits
3622 per pixel (this may require adding more video memory or replacing the video
3623 card), (b) shut down other applications that may be using much of the colormap
3624 and then restart
3625 .BR xdvi ,
3626 or (c) run
3627 .B xdvi
3628 with the
3629 .B \-install
3630 option.
3631 .PP
3632 One application which is often the cause of this problem is
3633 .BR Netscape .
3634 In this case there are two more alternatives to remedying the situation.
3635 One can run
3636 .RB `` "netscape -install" ''
3637 to cause
3638 .B Netscape
3639 to install a private colormap. This can cause colors to change in
3640 bizarre ways when the mouse is moved to a different window.
3641 Or, one can run
3642 .RB `` "netscape -ncols 220" ''
3643 to limit
3644 .B Netscape
3645 to a smaller number of colors. A smaller number will ensure that
3646 other applications have more colors available, but will degrade the
3647 color quality in the
3648 .B Netscape
3649 window.
3650 #endif
3651
3652 #ifps
3653 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3654 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3655 .SH HANDLING OF POSTSCRIPT FIGURES
3656 .B Xdvi
3657 can display Encapsulated PostScript (EPS) files included in the
3658 .I dvi
3659 file. Such files are first searched for in the directory where the
3660 .I dvi
3661 file is, and then using normal
3662 .B Kpathsea
3663 rules. There is an exception to this, however: if the file name begins
3664 with a backtick
3665 .RB ( ` ),
3666 then the remaining characters in the file name give a shell command (often
3667 .BR zcat )
3668 which is executed; its standard output is then sent to be interpreted as
3669 PostScript.
3670 Since the execution of arbitrary shell commands with the user's
3671 permissions is a huge security risk, evaluation of these backtick
3672 commands is disabled by default. It needs to be activated via the
3673 .B \-allowshell
3674 command-line option.
3675 .B NOTE:
3676 You should never use this option when viewing documents that you
3677 didn't compile yourself. The backtick specials are not needed for
3678 uncompressing gzipped PostScript files, since
3679 .B xdvi
3680 can do that on the fly if the filename ends with
3681 .I .eps.gz
3682 or
3683 .I .eps.Z
3684 (and if the first bytes of the file indicate that the file is indeed
3685 compressed). This is both safer and more flexible than the backtick
3686 approach, since the default file searching rules will apply to such
3687 filenames too.
3688 #endif
3689 #ift1
3690 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3691 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3692 .SH TYPE 1 FONTS
3693 Using FreeType (version 2),
3694 .B xdvi
3695 can render PostScript<tm> Type 1 fonts directly, without the
3696 route via \*(Te\& pixel (pk)
3697 fonts. The advantage of this is that only one size of each font needs
3698 to be stored on disk.
3699 Unless the
3700 .B -notype1fonts
3701 option is used,
3702 .B xdvi
3703 will try to render every font using FreeType. Only as a fallback will it
3704 invoke an external program (like
3705 .BR mktexpk ,
3706 which in turn may invoke utilities like
3707 .B ps2pk
3708 or
3709 .BR gsftopk )
3710 to generate a pixel font from the Type 1 source. The direct rendering
3711 of the
3712 .B Computer Modern
3713 fonts should work out-of-the box, whereas other Type 1 fonts such as
3714 the 35 `standard' PostScript<tm> fonts resident in printers may need
3715 to be made accessible for use with
3716 .BR xdvi ,
3717 unless your system
3718 administrator or TeX distribution has already done so (which is the case
3719 e.g. for current TeX Live systems). For the 35 PostScript<tm> resident
3720 fonts,
3721 .B xdvik
3722 will search using the
3723 .B Fontmap
3724 provided with
3725 .BR Ghostscript ,
3726 if necessary. Also, the
3727 .B xdvik
3728 distribution comes with a utility called
3729 .B t1mapper
3730 to make these fonts available for xdvi;
3731 see the manual page for t1mapper(1) for usage details. This program is
3732 likely to be dropped in the future, however, since it is probably not
3733 needed anymore.
3734 #endif
3735 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3736 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3737 .SH SPECIALS (GENERALLY)
3738 Any of the specials used by
3739 .B xdvi
3740 may be preceded by the characters
3741 .RB `` xdvi: ''.
3742 Doing so does not change the behavior of the special under
3743 .BR xdvi ,
3744 but it tells other dvi drivers (such as e.g. dvips) to ignore the special.
3745 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3746 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3747 .SH SOURCE SPECIALS
3748 Some \*(Te\& implementations or macro packages provide the facility to
3749 automatically include so-called `source specials' into a DVI file.
3750 These contain the line number, eventually a column number, and the
3751 filename of the .tex source. This makes it possible to jump from a .dvi
3752 file to the corresponding place in the .tex source and vice versa (also
3753 called `inverse search' - jumping from the DVI file to the TeX file is
3754 also known as `reverse search', and jumping from the TeX file to the
3755 DVI file as `forward search').
3756 .P
3757 To be usable with
3758 .BR xdvi ,
3759 source specials in the
3760 .I dvi
3761 file must have one of the following formats:
3762 .RS 5
3763 .nf
3764 .sp 1n
3765 \fBsrc:\fP\fIline\fP[ ]\fIfilename\fP
3766 \fBsrc:\fP\fIline\fP\fB:\fP\fIcol\fP[ ]\fIfilename\fP
3767 \fBsrc:\fP\fIline\fP
3768 \fBsrc:\fP\fIline\fP\fB:\fP\fIcol\fP
3769 \fBsrc::\fP\fIcol\fP
3770 .sp 1n
3771 .fi
3772 .RE
3773 If
3774 .I filename
3775 or
3776 .I line
3777 are omitted, the most recent values are used. The first source special on
3778 each page must be in one of the first two forms, since defaults are not
3779 inherited across pages.
3780 .sp
3781 You will need a \*(Te\& implementation that provides an appropriate
3782 switch (e.g.\&
3783 .IR -src )
3784 or a macro package
3785 (such as
3786 .I srcltx.sty
3787 or
3788 .IR srctex.sty ,
3789 available from CTAN:macros/latex/contrib/supported/srcltx/)
3790 to insert such source specials into the DVI file.
3791 .sp
3792 For reverse search, the combination
3793 .I Ctrl-Mouse 1
3794 will make xdvi open an editor (the value of the
3795 .I \-editor
3796 command line option) with the file and the line number of the .tex
3797 source. See the description of the
3798 .I \-editor
3799 option for more information
3800 and example settings.
3801 .P
3802 For forward search,
3803 .B xdvi
3804 has a
3805 .I \-sourceposition
3806 option that makes
3807 .B xdvi
3808 jump to the page in
3809 the DVI file corresponding to the given line (or the closest
3810 line having a source special) of the specified file and highlight
3811 the found region. See the description of the
3812 .I \-sourceposition
3813 option for more details.
3814 .PP
3815 More information on setting up various editors for use with source
3816 specials can be found at:
3817 .RS 5
3818 .nf
3819 .sp 1n
3820 http://xdvi.sourceforge.net/inverse-search.html
3821 .sp 1n
3822 .fi
3823 .RE
3824 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3825 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3826 .SH PAPERSIZE SPECIALS
3827 .B xdvi
3828 accepts specials to set the paper size for the document. These specials
3829 should be of the form
3830 .RS 5
3831 .nf
3832 .sp 1n
3833 \fBpapersize=\fP[\fB*\fP]\fIwidth\fP,\fIheight\fP
3834 .sp 1n
3835 .fi
3836 .RE
3837 .PP
3838 where
3839 .I width
3840 and
3841 .I height
3842 give the width and height of the paper, respectively. Each of these should
3843 appear in the form of a decimal number followed by any of the two-letter
3844 abbreviations for units accepted by \*(Te\&
3845 .RB ( pt ,
3846 .BR pc ,
3847 .BR in ,
3848 .BR bp ,
3849 .BR cm ,
3850 .BR mm ,
3851 .BR dd ,
3852 .BR cc ,
3853 or
3854 .BR sp ).
3855 If an asterisk
3856 .RB ( * )
3857 appears just before the width, then the measurements refer to the document
3858 dimensions (e.g.\&
3859 .B pt
3860 as opposed to
3861 .BR truept ).
3862 This allows a macro package to vary the page size according to elements
3863 of the document; e.g.\&
3864 .RS 5
3865 .ft 3
3866 .nf
3867 .sp 1n
3868 \especial{xdvi: papersize=*\enumber\ewd\emybox sp,
3869 \enumber\eht\emybox sp}
3870 .sp 1n
3871 .ft
3872 .fi
3873 .RE
3874 .PP
3875 Except for the asterisk, this format is compatible with
3876 .BR dvips .
3877 .P
3878 The last
3879 .B papersize
3880 special on a page determines the size of that page. If there is no such
3881 special on a given page, the most recent
3882 .B papersize
3883 is used, or, if there are no
3884 .B papersize
3885 specials on any preceding page, then the value of the
3886 .B paper
3887 resource (or
3888 .B \-paper
3889 option on the command line) is used. Thus the paper size may vary for
3890 different pages of the
3891 .I dvi
3892 file.
3893 .P
3894 If the
3895 .B paper
3896 resource (or
3897 .B \-paper
3898 command-line option) begins with a plus sign
3899 .RB (` + '),
3900 then all
3901 .B papersize
3902 specials in the
3903 .I dvi
3904 file are ignored.
3905 #ifcolor
3906 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3907 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3908 .SH COLOR SPECIALS
3909 The color specials supported by
3910 .B xdvi
3911 are the same as those supported by
3912 .BR dvips ,
3913 except that the literal PostScript color specification (as in the
3914 .B AggiePattern
3915 example in the
3916 .B dvips
3917 documentation) is not supported.
3918 There are also some restrictions due to the way xdvi's drawing routines
3919 are implemented; e.g. the
3920 .B \ecolorbox
3921 and
3922 .B \efcolorbox
3923 macros don't work with
3924 .BR xdvi .
3925 See the section LIMITATIONS below for more information on these restrictions.
3926 .B Xdvi
3927 supports the same list of named colors as
3928 .B dvips
3929 does, namely:
3930 .P
3931 .BR Apricot ,
3932 .BR Aquamarine ,
3933 .BR Bittersweet ,
3934 .BR Black ,
3935 .BR Blue ,
3936 .BR BlueGreen ,
3937 .BR BlueViolet ,
3938 .BR BrickRed ,
3939 .BR Brown ,
3940 .BR BurntOrange ,
3941 .BR CadetBlue ,
3942 .BR CarnationPink ,
3943 .BR Cerulean ,
3944 .BR CornflowerBlue ,
3945 .BR Cyan ,
3946 .BR Dandelion ,
3947 .BR DarkOrchid ,
3948 .BR Emerald ,
3949 .BR ForestGreen ,
3950 .BR Fuchsia ,
3951 .BR Goldenrod ,
3952 .BR Gray ,
3953 .BR Green ,
3954 .BR GreenYellow ,
3955 .BR JungleGreen ,
3956 .BR Lavender ,
3957 .BR LimeGreen ,
3958 .BR Magenta ,
3959 .BR Mahogany ,
3960 .BR Maroon ,
3961 .BR Melon ,
3962 .BR MidnightBlue ,
3963 .BR Mulberry ,
3964 .BR NavyBlue ,
3965 .BR OliveGreen ,
3966 .BR Orange ,
3967 .BR OrangeRed ,
3968 .BR Orchid ,
3969 .BR Peach ,
3970 .BR Periwinkle ,
3971 .BR PineGreen ,
3972 .BR Plum ,
3973 .BR ProcessBlue ,
3974 .BR Purple ,
3975 .BR RawSienna ,
3976 .BR Red ,
3977 .BR RedOrange ,
3978 .BR RedViolet ,
3979 .BR Rhodamine ,
3980 .BR RoyalBlue ,
3981 .BR RoyalPurple ,
3982 .BR RubineRed ,
3983 .BR Salmon ,
3984 .BR SeaGreen ,
3985 .BR Sepia ,
3986 .BR SkyBlue ,
3987 .BR SpringGreen ,
3988 .BR Tan ,
3989 .BR TealBlue ,
3990 .BR Thistle ,
3991 .BR Turquoise ,
3992 .BR Violet ,
3993 .BR VioletRed ,
3994 .BR White ,
3995 .BR WildStrawberry ,
3996 .BR Yellow ,
3997 .BR YellowGreen ,
3998 .BR YellowOrange .
3999 .P
4000 Note that these names are case sensitive.
4001 .P
4002 The documentation of the La\*(Te\&
4003 .B color
4004 package provides more details on how to use such specials with
4005 La\*(Te\&; see the
4006 .B dvips
4007 documentation for a detailed description of the
4008 syntax and semantics of the color specials.
4009 #endif
4010 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4011 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4012 .SH SIGNALS
4013 When
4014 .B xdvi
4015 receives a
4016 .SB SIGUSR1
4017 signal, it rereads the
4018 .I dvi
4019 file.
4020 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4021 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4022 .SH ENVIRONMENT
4023 .B Xdvik
4024 uses the same environment variables and algorithms for searching for
4025 font files as \*(Te\& and friends. See the documentation for the
4026 .B Kpathsea
4027 library,
4028 .BR kpathsea.dvi ,
4029 for a detailed description of these.
4030 .PP
4031 In addition,
4032 .B xdvik
4033 accepts the following variables:
4034 .TP
4035 .SB DISPLAY
4036 Specifies which graphics display terminal to use.
4037 #ifnokpathsea
4038 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4039 .TP
4040 .SB XDVISIZES
4041 A list of font resolutions separated by colons. If a font cannot be found
4042 or made at its stated size, then these sizes are tried as a fallback.
4043 See the `Fallback font' section in the
4044 .B Kpathsea
4045 manual for more details.
4046 .B xdvi
4047 tries the actual size of the font before trying any of the given sizes.
4048 Each font resolution should be a positive integer, specifying the number
4049 of dots per inch, or a string of the form
4050 .BR magstep\fIn\fP ,
4051 where
4052 .I n
4053 is a number -9.5, -9, -8.5, ..., 8, 8.5, 9, or 9.5. The string
4054 .B magstep
4055 may be shortened to any non-empty initial substring (so that
4056 .B magstep0.5
4057 may be shortened to
4058 .B mag0.5
4059 or
4060 .B m0.5
4061 (but not
4062 .BR mag.5 )).
4063 The entries
4064 .BI magstep n
4065 signify the current pixels-per-inch value, multiplied by 1.2 raised to the
4066 .IR n th
4067 power, and rounded to the nearest integer.
4068 If the list begins with a colon, the system default sizes are used, as well.
4069 Sizes are expressed in dots per inch and must be integers.
4070 The current default set of sizes is @DEFAULT_FONT_SIZES@.
4071 #endif
4072 .TP
4073 .SB KPATHSEA_DEBUG
4074 Trace
4075 .B Kpathsea
4076 lookups; set it to
4077 .B -1
4078 (= all bits on) for complete tracing.
4079 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4080 .TP
4081 .SB EXTENSIONMAPS
4082 A list of files to be searched for mime types entries (as for Acrobat Reader).
4083 Earlier entries in one of these files override later ones.
4084 If this variable is not set, the following default path is used:
4085 .RS 7
4086 .nf
4087 .ft 3
4088 .sp 1n
4089 $HOME/.mime.types:/etc/mime.types:\e
4090 /usr/etc/mime.types:/usr/local/etc/mime.types
4091 .sp 1n
4092 .ft
4093 .fi
4094 .RE
4095
4096 .TP
4097 .SB MAILCAPS
4098 A list of files to be searched for mailcap entries, as defined by RFC
4099 1343. See this RFC or the
4100 .BR mailcap (4)
4101 manual page for a detailed description of the mailcap file format.
4102 Currently, only the following mailcap features are supported:
4103 .RS 7
4104 .TP 7
4105 .BI test= command
4106 The entry is only used if
4107 .I command
4108 can be executed via the
4109 .B system()
4110 call and if the system() call returns with value 0 (success).
4111 The
4112 .I command
4113 string may contain the format string
4114 .IR %s ,
4115 which will be replaced by the file name.
4116 .TP
4117 .B needsterminal
4118 If this flag is used, the command will be executed in a new xterm
4119 window by prepending
4120 .RI `` "xterm -e "''
4121 to the command string.
4122 .RE
4123 .PP
4124 .RS 7
4125 All other fields in the mailcap entry are ignored by xdvi.
4126 Earlier entries in one of these files override later ones.
4127 If the variable is not defined, the following default path is used:
4128 .RS 4
4129 .nf
4130 .ft 3
4131 .sp 1n
4132 $HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:\e
4133 /usr/local/etc/mailcap
4134 .sp 1n
4135 .ft
4136 .fi
4137 .RE
4138 .br
4139 For security reasons, some special characters (i.e. ( ) ` \e ;)
4140 are escaped in the argument before passing it to
4141 .BR system() .
4142 .RE
4143 .TP
4144 .SB BROWSER
4145 Determines the web browser used to open external links (i.e. all URLs
4146 that don't start with the
4147 .RI ` file: '
4148 scheme and are not relative links in the local DVI file), and to open links
4149 for which no viewer has been specified in the
4150 .B mailcap
4151 files. The value of this variable is a colon-separated list of commands. Xdvi
4152 will try each of them in sequence until one succeeds (i.e. doesn't immediately
4153 return with status 0). This allows you to
4154 specify your favourite browser at the beginning,
4155 and fallback browsers at the end. Every occurrence of
4156 .I %s
4157 in the string is replaced by the target URL; every occurrence of
4158 .I %%
4159 is replaced by a single
4160 .IR % .
4161 If no
4162 .I %s
4163 is present, the URL string is added as an extra argument.
4164 .br
4165 An example setting is:
4166 .RS 7
4167 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4168 .TP 7
4169 .SB "netscape -raise -remote 'openURL(%s,new-window)':xterm -e lynx %s:xterm -e wget %s:lynx %s:wget %s"
4170 .TP
4171 See
4172 .TP
4173 .SB http://www.catb.org/~esr/BROWSER/
4174 .PP
4175 for more details on the
4176 .B BROWSER
4177 environment variable.
4178 .RE
4179 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4180 #ift1
4181 .TP
4182 .SB GS_LIB
4183 A colon-separated list of directories to search for
4184 .B Fontmap
4185 files, etc., as used for Ghostscript. It has the same meaning as it does
4186 when running Ghostscript. In
4187 .BR xdvik ,
4188 it is used when searching for font files when the map file does not give a
4189 file name for the font (this should be quite rare). The command
4190 .B gs \-h
4191 will list the default value that Ghostscript uses. See also the
4192 .SB XDVI_GS_LIB
4193 environment variable (below).
4194 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4195 .TP
4196 .SB XDVI_GS_LIB
4197 This has the same effect as
4198 .SB GS_LIB
4199 but affects only
4200 .BR xdvi .
4201 Use this when you want to use a different value for
4202 .SB GS_LIB
4203 when running
4204 .BR xdvi ,
4205 but use either the compiled-in default value or some other value when running
4206 Ghostscript. If both
4207 .SB GS_LIB
4208 and
4209 .SB XDVI_GS_LIB
4210 are set, then
4211 .B xdvi
4212 uses
4213 .SB XDVI_GS_LIB.
4214 To use the default value compiled in to
4215 .B xdvi
4216 while still retaining the ability to set
4217 .SB GS_LIB
4218 for use with Ghostscript, you can set
4219 .SB XDVI_GS_LIB
4220 to the empty string.
4221 #endif
4222 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4223 #ifps
4224 .TP
4225 .SB TMPDIR
4226 The directory to use for storing temporary files created when uncompressing
4227 PostScript files.
4228 #endif
4229 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4230 .TP
4231 .SB XEDITOR
4232 Determines the editor command used for source special `reverse
4233 search', if neither the
4234 .I \-editor
4235 command-line option
4236 nor the
4237 .I .editor
4238 resource are specified. See the description of the
4239 .I \-editor
4240 command line option for details on the format.
4241 .TP
4242 .SB VISUAL
4243 Determines an editor to be opened in an xterm
4244 window if neither of
4245 .IR -editor ,
4246 .IR .editor ,
4247 or
4248 .I XEDITOR
4249 is specified.
4250 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4251 .TP
4252 .SB EDITOR
4253 Determines an editor to be opened in an xterm
4254 window if neither of
4255 .IR -editor ,
4256 .IR .editor ,
4257 .I XEDITOR
4258 or
4259 .I VISUAL
4260 is specified.
4261 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4262 .TP
4263 .SB WWWBROWSER
4264 Obsolete; use
4265 .B BROWSER
4266 instead.
4267 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4268 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4269 #ifps
4270 .SH LIMITATIONS
4271 .B xdvi
4272 accepts many but not all types of PostScript specials accepted by
4273 .BR dvips .
4274 For example, it accepts most specials generated by
4275 .B epsf
4276 and
4277 .BR psfig .
4278 It does not, however, support
4279 .B bop\-hook
4280 or
4281 .BR eop\-hook ,
4282 nor does it allow PostScript commands to affect the rendering of things that
4283 are not PostScript (for example, the ``NEAT'' and rotated ``A'' examples in the
4284 .B dvips
4285 manual). These restrictions are due to the design of
4286 .BR xdvi ;
4287 in all likelihood they will always remain.
4288 .PP
4289 La\*(Te\&2e rotation specials are currently not supported.
4290 .PP
4291 .B MetaPost
4292 files containing included text are not supported.
4293 .PP
4294 .BR Xdvi 's
4295 color handling doesn't support the
4296 .B \ecolorbox
4297 and
4298 .B \efcolorbox
4299 macros; this is not likely to change in the near future. This also
4300 means that e.g. colored tables (as created by the
4301 .I colortbl
4302 package) may render incorrectly: Text in colors different from the
4303 default foreground color may not be displayed. When the page is
4304 redrawn (e.g. after using the magnifier), the background color of the
4305 cells may overdraw the text.
4306 #endif
4307 .SH FILES
4308 .TP
4309 .SB $HOME/.xdvirc
4310 A file that holds all settings that the user changed via the keys, the `Options'
4311 and the Xaw `Modes' menu and the dialogs, as X resources. These resources override the
4312 settings in
4313 .BR $HOME/.Xdefaults .
4314 This file is ignored if the
4315 .B \-q
4316 option is used or the
4317 .B noInitFile
4318 X resource is set.
4319 #ift1
4320 .TP
4321 .SB config.xdvi
4322 An optional configuration file for the Type 1 font setup, which specifies
4323 .BR dvips \-style
4324 map files specific to
4325 .BR xdvik .
4326 If used, it should be present in the directory determined by the
4327 .B TEXCONFIG
4328 environment variable. Its format is similar to configuration files for
4329 .BR dvips ,
4330 except that it is only scanned for the names of map files
4331 .RB ( p
4332 and
4333 .B p+
4334 directives).
4335 #endif
4336 .SH SEE ALSO
4337 .BR X (1),
4338 .BR dvips (1),
4339 .BR mktexpk (1),
4340 .BR ps2pk (1),
4341 .BR gsftopk (1),
4342 .BR t1mapper (1),
4343 .BR mailcap (4),
4344 the
4345 .B Kpathsea
4346 documentation,
4347 .BR https://ctan.org/pkg/xdvi/ ,
4348 and the Xdvik home page at
4349 .BR http://xdvi.sourceforge.net/ .
4350 .SH AUTHORS
4351 Eric Cooper, CMU, did a version for direct output to a QVSS. Modified
4352 for X by Bob Scheifler, MIT Laboratory for Computer Science. Modified
4353 for X11 by Mark Eichin, MIT SIPB. Additional enhancements by many
4354 others.
4355 .PP
4356 The current maintainer of the original
4357 .B xdvi
4358 is Paul Vojta, U.C. Berkeley.
4359 .PP
4360 Code for the xdvik variant has been contributed
4361 by many people, whose names are scattered across the
4362 source files.
4363 .PP
4364 For the most up-to-date information, please visit:
4365 .PP
4366 .B http://xdvi.sourceforge.net
4367 .PP
4368 Please report all bugs to the SourceForge bug tracker:
4369 .PP
4370 .nf
4371 .B http://sourceforge.net/tracker/?func=add&group_id=23164&atid=377580
4372 .PP