summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/texmf/XDvi
blob: 3e0f4984e4c2c8d2bc906d3863bffd5b5e308f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
!!! Global application defaults for XDvik
!!! Install this file into $TEXMF/xdvi/XDvi
!!! (use kpsewhich --expand-path '$TEXMF' to determine the location of
!!! $TEXMF on you system).
!!! 
!!! Lines commented out (starting with `!') are examples of
!!! how to customize Xdvi for your personal needs.
!!! To use these settings, copy them into your $HOME/.Xdefaults file
!!! (remove the comments), prefix each line with `xdvi', and activate
!!! them with:
!!! $ xrdb -merge $HOME/.Xdefaults

!!!------------------------------------------------------------------------------
!!!------------------------ useful global settings ------------------------------
!!!------------------------------------------------------------------------------

!!! Use `logical' (TeX) pages instead of physical pages for the `g' keystroke:
*useTeXPages: True

!!! A fairly high resolution, which usually gives better results for anti-aliasing
!!! and greater flexibility for shrink values. Generating MF fonts shouldn't be an
!!! issue when using T1lib.
!*mfMode: ljfour
*paper: a4

!!! This should be the best choice for modern displays with large color depth.
*thorough: true

!!! Add some useful translations for the mouse wheel (bug #1422928)
*wheelTranslations:\
Shift<Btn4Down>:left(.08)\n\
Shift<Btn5Down>:right(.08)\n\
Ctrl<Btn4Down>:set-shrink-factor(+)\n\
Ctrl<Btn5Down>:set-shrink-factor(-)\n\
<Btn4Down>:wheel(-.7)\n\
<Btn5Down>:wheel(.7)

!!!------------------------------------------------------------------------------
!!!------------------------------ Motif toolbar ---------------------------------
!!!------------------------------------------------------------------------------

!!! filename of the XPM file used for the toolbar pixmaps:
*toolbarPixmapFile: toolbar.xpm

!!! Use toolbar buttons that are non-raised by default and only appear raised
!!! when the mouse is over a button, as in e.g. Netscape 4.x:
*toolbarButtonsRaised: False

!!! don't draw a border around armed buttons:
*button*highlightThickness: 0

!!! no extra margin above/below buttons
*toolBar.marginHeight:0

!!! some spacing around button icons and button edges
*toolBar*button*marginHeight: 2
*toolBar*button*marginWidth: 2


!!! don't draw the small grey rectangle inside the armed button:
*button*fillOnArm: false

!!! Or, for a more traditional Motif look, use something like:
!*toolbarButtonsRaised: True
!*button*fillOnArm: True
!*button*shadowThickness: 1
!*toolBar.marginHeight: 0
!*toolBarFrame.marginWidth: 0
!*button*highlightThickness: 2

!!!------------------------------------------------------------------------------
!!!-------------------------------- Motif widgets -------------------------------
!!!------------------------------------------------------------------------------
!!! small shadows like in netscape 4.x
*menuBar.shadowThickness: 1
*button*shadowThickness: 2
*toolBar.shadowThickness: 1
*toolBarFrame.shadowThickness: 1
*helppanel.shadowThickness: 1
*toolBarFrame.marginWidth: 2
*statusline*shadowThickness: 1

!!! prevent the Motif file selector widget from resizing itself, and start with a reasonable default:
*resizePolicy: XmRESIZE_NONE
*textColumns: 50

!!! make all text/entry fields white, for better contrasts:
*XmDialogShell*XmTextField.background: white
*XmDialogShell*XmText.background: white
*XmDialogShell*XmList.background: white

!!! adjust position of header in help window
*help_window*right_form.topOffset: 10

!!!------------------------------------------------------------------------------
!!!----------------------------- Preferences window -----------------------------
!!!------------------------------------------------------------------------------

*XmComboBox*List*background: white
*XmComboBox*Text*background: white
*XmComboBox*Text*borderWidth: 2
*XmComboBox*Text*borderColor: black

!!!------------------------------------------------------------------------------
!!!--------------------------------- Help window --------------------------------
!!!------------------------------------------------------------------------------
!!! (See also the fontList entries for TOPIC_LABEL and TOPIC_HEADING)
!!!
!!! Set this to something that fits to your font size:
*help_text.rows: 23
*help_text.columns: 56

!!! fg/bg for help topics label
*help_label*shadowThickness: 2
!!! ... if you want a more colorful label:
!*help_label*foreground: blue4
!*help_label*background: grey90


!!! help topics label for Xaw
*help_label.font: -*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*

!!!------------------------------------------------------------------------------
!!!-------------------------------- Motif tooltips ------------------------------
!!!------------------------------------------------------------------------------
!!! background color and font:
*tipShell.background: cornsilk
*tipShell.fontSet: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*

!!! time the mouse needs to stay on a button until tooltips pop up,
!!! in milliseconds; set to a negative value to disable:
*tipShell.waitPeriod: 800


!!!------------------------------------------------------------------------------
!!!------------------------------ Fonts and colors ------------------------------
!!!------------------------------------------------------------------------------
*font:     -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*
!!! Use a smaller font for the statusline in the Xaw version:
*statusline.font: -*-helvetica-medium-r-*-*-10-*-*-*-*-*-*

!!! Motif fonts. Meaning of the tags is:
!!! NORMAL: Ordinary text, labels etc.
!!! UNMARKED: Unmarked entries in page list
!!! MARKED: Marked entries in page list, emphasized entries in other lists
!!! TOPIC_LABEL: Label for topics list in help window
!!! TOPIC_HEADING: Heading for help text in help window
!!!
*fontList: \
-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*=NORMAL,\
-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*=UNMARKED,\
-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*=MARKED,\
-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*=TOPIC_LABEL,\
-*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*=TOPIC_HEADING


!!! Color used for page border, image bounding boxes and the ruler in `Ruler mode'.
*highlight: red

!!! Color used for the magnifier and its rulers:
*rulecolor: blue

!!!------------------------------------------------------------------------------
!!!---------------------------------- hyperlinks  -------------------------------
!!!------------------------------------------------------------------------------

!!! Colors for unvisited and visited hyperlinks (can be any valid X color spec,
!!! also in hex format):
*linkColor: Blue2
*visitedLinkColor: Purple4

!!! Link style:
!!! 0: no highlighting at all
!!! 1: underline with linkColor
!!! 2: no underlining, text with linkColor
!!! 3: underlining and text with linkColor
*linkStyle: 3

!!!------------------------------------------------------------------------------
!!!------------------------------ helper applications ---------------------------
!!!------------------------------------------------------------------------------

!!! the editor used for `forward search'; can also be set via $EDITOR, $VISUAL
!!! or $XEDITOR. Setting the X resource will override the environment variables.
!!! The format strings `%l' and `%f' are optional.
!!! You could use this for older emacsen that come with emacsclient:
!*editor: emacsclient --no-wait +%l %f
!!! and this for current emacs or xemacs that come with gnuclient (which is much better):
!*editor: gnuclient -q +%l %f

!!!------------------------------------------------------------------------------
!!!------------------------------ Xaw buttons and helptexts ---------------------
!!!------------------------------------------------------------------------------

!!! The following sections are of a more esoteric nature, giving
!!! examples for customizing the Xaw buttons and the help texts.
!!! Maybe these are useful for i18n.

!!!------------------------------
!!! This is the default Xaw button configuration:
!!!------------------------------
! *buttonTranslations: \
! File_Open ...:select-dvi-file()\n\
! File_Reload:reread-dvi-file()\n\
! File_Back Hyperref:htex-back()\n\
! File_Quit:quit()\n\
! Page_First page:goto-page(1)\n\
! Page_Page-10:back-page(10)\n\
! Page_Page-5:back-page(10)\n\
! Page_Prev:back-page(1)\n\
! Page_Next:forward-page(1)\n\
! Page_Page+5:forward-page(5)\n\
! Page_Page+10:forward-page(10)\n\
! Page_Last page:goto-page()\n\
! Zoom_Full size:set-shrink-factor(1)\n\
! Zoom_$%%:shrink-to-dpi(150)\n\
! Zoom_$%%:shrink-to-dpi(100)\n\
! Zoom_$%%:shrink-to-dpi(50)\n\
! Zoom_Fit in window:set-shrink-factor()\n\
! Options_View PS:set-ps(toggle)\n\
! Options_Keep position:set-keep-flag()\n\
! Help_About ...:popup-help(helpGeneral)\n\
! Help_Page Motion ...:popup-help(helpPagemotion)\n\
! Help_Other Commands ...:popup-help(helpOthercommands)\n\
! Help_HyperTeX commands ...:popup-help(helpHypertex)\n\
! Help_Source specials ...:popup-help(helpSourcespecials)\n

!!!------------------------------
!!! help texts
!!!------------------------------

!!!------------------------------
!!! about/general
!!!------------------------------
! *.helpGeneral: \
! \n\
! This is xdvik, CVS version.\n\
! \n\
! The xdvik project homepage is located at\n\
! http://sourceforge.net/projects/xdvi,\n\
! where you can find updates, report bugs and submit feature requests.\n\
! \n\
! Getting help and exiting xdvi\n\
! \n\
! h or ? or `Help' button\n\
!      Displays this help text.\n\
! \n\
! q or Control-C or Control-D or Cancel or Stop or Control-Z (VAX VMS)\n\
!      Quits the program.\n
! 

!!!------------------------------
!!! other commands
!!!------------------------------
! *helpOthercommands: \
! \n\
! Other Commands\n\
! \n\
! \n\
! Control-F\n\
!      Find another DVI file.\n\
! \n\
! Control-L or Clear\n\
!      Redisplays the current page.\n\
! \n\
! Control-P\n\
!      Prints bitmap unit, bit order, and byte order.\n\
! \n\
! ^ or Home\n\
!      Move to the ``home'' position of the page.  This is\n\
!      normally the upper left-hand corner of the page,\n\
!      depending on the margins as described in the -margins\n\
!      option, above.\n\
! \n\
! c    Moves the page so that the point currently beneath the\n\
!      cursor is moved to the middle of the window.  It also\n\
!      (gasp!) warps the cursor to the same place.\n\
! \n\
! G    This key toggles the use of greyscale anti-aliasing for\n\
!      displaying shrunken bitmaps.  In addition, the key\n\
!      sequences `0G' and `1G' clear and set this flag,\n\
!      respectively.  See also the -nogrey option.\n\
! \n\
! k    Normally when xdvi switches pages, it moves to the home\n\
!      position as well.  The `k' keystroke toggles a `keep-\n\
!      position' flag which, when set, will keep the same\n\
!      position when moving between pages.  Also `0k' and `1k'\n\
!      clear and set this flag, respectively.  See also the\n\
!      -keep option.\n\
! \n\
! M    Sets the margins so that the point currently under the\n\
!      cursor is the upper left-hand corner of the text in the\n\
!      page.  Note that this command itself does not move the\n\
!      image at all.  For details on how the margins are used,\n\
!      see the -margins option.\n\
! \n\
! P    ``This is page number n.''  This can be used to make\n\
!      the `g' keystroke refer to actual page numbers instead\n\
!      of absolute page numbers.\n\
! \n\
! R    Forces the dvi file to be reread.  This allows you to\n\
!      preview many versions of the same file while running\n\
!      xdvi only once.\n\
! \n\
! s    Changes the shrink factor to the given number.  If no\n\
!      number is given, the smallest factor that makes the\n\
!      entire page fit in the window will be used.  (Margins\n\
!      are ignored in this computation.)\n\
! \n\
! S    Sets the density factor to be used when shrinking\n\
!      bitmaps.  This should be a number between 0 and 100;\n\
!      higher numbers produce lighter characters.\n\
! \n\
! t    Toggles to the next unit in a sorted list of TeX dimension\n\
!      units for the popup magnifier ruler.\n\
! \n\
! V    Toggles Ghostscript anti-aliasing.  Also `0V' and `1V' clear\n\
!      and enables this mode, respectively.  See also the the\n\
!      -gsalpha option.\n\
! \n\
! x    Toggles expert mode (in which the buttons do not appear).\n\
!      `1x' toggles display of the statusline at the bottom of\n\
!      the window.\n
 
!!!------------------------------
!!! page motion
!!!------------------------------
! *helpPagemotion: \
! \n\
! Moving around in the document\n\
! \n\
! \n\
! \n\
! n or f or Space or Return or LineFeed or PgDn\n\
!      Moves to the next page (or to the nth next page if a\n\
!      number is given).\n\
! \n\
! p or b or Control-H or BackSpace or DELete or PgUp\n\
!      Moves to the previous page (or back n pages).\n\
! \n\
! u or Up-arrow\n\
!      Moves up two thirds of a window-full.\n\
! \n\
! d or Down-arrow\n\
!      Moves down two thirds of a window-full.\n\
! \n\
! l or Left-arrow\n\
!      Moves left two thirds of a window-full.\n\
! \n\
! r or Right-arrow\n\
!      Moves right two thirds of a window-full.\n\
! \n\
! g or j or End\n\
!      Moves to the page with the given number.  Initially,\n\
!      the first page is assumed to be page number 1, but this\n\
!      can be changed with the `P' keystroke, below.  If no\n\
!      page number is given, then it goes to the last page.\n\
! \n\
! <    Move to first page in document.\n\
! >    Move to last page in document.\n

!!!------------------------------
!!! end of helptexts
!!!------------------------------

 
!!!------------------------------------------------------------------------------
!!!-------------- used for internal checking - DO NOT CHANGE THIS! --------------
!!!------------------------------------------------------------------------------
*appDefaultsFileVersion: 20030303