Debian Codegraph @

texmf-dist/xdvi/XDvi

raw ◀ ▶
1 Debian patch touch this file
1 !!! Global application defaults for XDvik
2 !!! Install this file into $TEXMF/xdvi/XDvi
3 !!! (use kpsewhich --expand-path '$TEXMF' to determine the location of
4 !!! $TEXMF on you system).
5 !!!
6 !!! Lines commented out (starting with `!') are examples of
7 !!! how to customize Xdvi for your personal needs.
8 !!! To use these settings, copy them into your $HOME/.Xdefaults file
9 !!! (remove the comments), prefix each line with `xdvi', and activate
10 !!! them with:
11 !!! $ xrdb -merge $HOME/.Xdefaults
12
13 !!!------------------------------------------------------------------------------
14 !!!------------------------ useful global settings ------------------------------
15 !!!------------------------------------------------------------------------------
16
17 !!! Use `logical' (TeX) pages instead of physical pages for the `g' keystroke:
18 *useTeXPages: True
19
20 !!! A fairly high resolution, which usually gives better results for anti-aliasing
21 !!! and greater flexibility for shrink values. Generating MF fonts shouldn't be an
22 !!! issue when using T1lib.
23 !*mfMode: ljfour
•24
25 !!! include the various places where system-admins can configure the papersize
26 !!! for xdvi:
27 !!! the default as shipped in TeX Live is in the same directory as XDvi
28 #include "XDvi-paper"
29 !!! the file used by tl-paper for setting up the paper size
30 #include "/var/lib/texmf/xdvi/XDvi-paper"
31 !!! the file a sysadm can use to override everything in /etc
32 #include "/etc/texmf/xdvi/XDvi-paper"
33 !!! the last one takes precedence, and there is no problem with missing
34 !!! files, which amounts to what we want.
35
36 !!! This should be the best choice for modern displays with large color depth.
37 *thorough: true
38
39 !!! Add some useful translations for the mouse wheel (bug #1422928)
40 *wheelTranslations:\
41 Shift<Btn4Down>:left(.08)\n\
42 Shift<Btn5Down>:right(.08)\n\
43 Ctrl<Btn4Down>:set-shrink-factor(+)\n\
44 Ctrl<Btn5Down>:set-shrink-factor(-)\n\
45 <Btn4Down>:wheel(-.7)\n\
46 <Btn5Down>:wheel(.7)
47
48 !!!------------------------------------------------------------------------------
49 !!!------------------------------ Motif toolbar ---------------------------------
50 !!!------------------------------------------------------------------------------
51
52 !!! filename of the XPM file used for the toolbar pixmaps:
53 *toolbarPixmapFile: toolbar.xpm
54
55 !!! Use toolbar buttons that are non-raised by default and only appear raised
56 !!! when the mouse is over a button, as in e.g. Netscape 4.x:
57 *toolbarButtonsRaised: False
58
59 !!! don't draw a border around armed buttons:
60 *button*highlightThickness: 0
61
62 !!! no extra margin above/below buttons
63 *toolBar.marginHeight:0
64
65 !!! some spacing around button icons and button edges
66 *toolBar*button*marginHeight: 2
67 *toolBar*button*marginWidth: 2
68
69
70 !!! don't draw the small grey rectangle inside the armed button:
71 *button*fillOnArm: false
72
73 !!! Or, for a more traditional Motif look, use something like:
74 !*toolbarButtonsRaised: True
75 !*button*fillOnArm: True
76 !*button*shadowThickness: 1
77 !*toolBar.marginHeight: 0
78 !*toolBarFrame.marginWidth: 0
79 !*button*highlightThickness: 2
80
81 !!!------------------------------------------------------------------------------
82 !!!-------------------------------- Motif widgets -------------------------------
83 !!!------------------------------------------------------------------------------
84 !!! small shadows like in netscape 4.x
85 *menuBar.shadowThickness: 1
86 *button*shadowThickness: 2
87 *toolBar.shadowThickness: 1
88 *toolBarFrame.shadowThickness: 1
89 *helppanel.shadowThickness: 1
90 *toolBarFrame.marginWidth: 2
91 *statusline*shadowThickness: 1
92
93 !!! prevent the Motif file selector widget from resizing itself, and start with a reasonable default:
94 *resizePolicy: XmRESIZE_NONE
95 *textColumns: 50
96
97 !!! make all text/entry fields white, for better contrasts:
98 *XmDialogShell*XmTextField.background: white
99 *XmDialogShell*XmText.background: white
100 *XmDialogShell*XmList.background: white
101
102 !!! adjust position of header in help window
103 *help_window*right_form.topOffset: 10
104
105 !!!------------------------------------------------------------------------------
106 !!!----------------------------- Preferences window -----------------------------
107 !!!------------------------------------------------------------------------------
108
109 *XmComboBox*List*background: white
110 *XmComboBox*Text*background: white
111 *XmComboBox*Text*borderWidth: 2
112 *XmComboBox*Text*borderColor: black
113
114 !!!------------------------------------------------------------------------------
115 !!!--------------------------------- Help window --------------------------------
116 !!!------------------------------------------------------------------------------
117 !!! (See also the fontList entries for TOPIC_LABEL and TOPIC_HEADING)
118 !!!
119 !!! Set this to something that fits to your font size:
120 *help_text.rows: 23
121 *help_text.columns: 56
122
123 !!! fg/bg for help topics label
124 *help_label*shadowThickness: 2
125 !!! ... if you want a more colorful label:
126 !*help_label*foreground: blue4
127 !*help_label*background: grey90
128
129
130 !!! help topics label for Xaw
131 *help_label.font: -*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
132
133 !!!------------------------------------------------------------------------------
134 !!!-------------------------------- Motif tooltips ------------------------------
135 !!!------------------------------------------------------------------------------
136 !!! background color and font:
137 *tipShell.background: cornsilk
138 *tipShell.fontSet: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
139
140 !!! time the mouse needs to stay on a button until tooltips pop up,
141 !!! in milliseconds; set to a negative value to disable:
142 *tipShell.waitPeriod: 800
143
144
145 !!!------------------------------------------------------------------------------
146 !!!------------------------------ Fonts and colors ------------------------------
147 !!!------------------------------------------------------------------------------
148 *font: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
149 !!! Use a smaller font for the statusline in the Xaw version:
150 *statusline.font: -*-helvetica-medium-r-*-*-10-*-*-*-*-*-*-*
151
152 !!! Motif fonts. Meaning of the tags is:
153 !!! NORMAL: Ordinary text, labels etc.
154 !!! UNMARKED: Unmarked entries in page list
155 !!! MARKED: Marked entries in page list, emphasized entries in other lists
156 !!! TOPIC_LABEL: Label for topics list in help window
157 !!! TOPIC_HEADING: Heading for help text in help window
158 !!!
159 *fontList: \
160 -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*=NORMAL,\
161 -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*=UNMARKED,\
162 -*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*=MARKED,\
163 -*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*=TOPIC_LABEL,\
164 -*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*=TOPIC_HEADING
165
166
167 !!! Color used for page border, image bounding boxes and the ruler in `Ruler mode'.
168 *highlight: red
169
170 !!! Color used for the magnifier and its rulers:
171 *rulecolor: blue
172
173 !!!------------------------------------------------------------------------------
174 !!!---------------------------------- hyperlinks -------------------------------
175 !!!------------------------------------------------------------------------------
176
177 !!! Colors for unvisited and visited hyperlinks (can be any valid X color spec,
178 !!! also in hex format):
179 *linkColor: Blue2
180 *visitedLinkColor: Purple4
181
182 !!! Link style:
183 !!! 0: no highlighting at all
184 !!! 1: underline with linkColor
185 !!! 2: no underlining, text with linkColor
186 !!! 3: underlining and text with linkColor
187 *linkStyle: 3
188
189 !!!------------------------------------------------------------------------------
190 !!!------------------------------ helper applications ---------------------------
191 !!!------------------------------------------------------------------------------
192
193 !!! the editor used for `forward search'; can also be set via $EDITOR, $VISUAL
194 !!! or $XEDITOR. Setting the X resource will override the environment variables.
195 !!! The format strings `%l' and `%f' are optional.
196 !!! You could use this for older emacsen that come with emacsclient:
197 !*editor: emacsclient --no-wait +%l %f
198 !!! and this for current emacs or xemacs that come with gnuclient (which is much better):
199 !*editor: gnuclient -q +%l %f
200
201 !!!------------------------------------------------------------------------------
202 !!!------------------------------ Xaw buttons and helptexts ---------------------
203 !!!------------------------------------------------------------------------------
204
205 !!! The following sections are of a more esoteric nature, giving
206 !!! examples for customizing the Xaw buttons and the help texts.
207 !!! Maybe these are useful for i18n.
208
209 !!!------------------------------
210 !!! This is the default Xaw button configuration:
211 !!!------------------------------
212 ! *buttonTranslations: \
213 ! File_Open ...:select-dvi-file()\n\
214 ! File_Reload:reread-dvi-file()\n\
215 ! File_Back Hyperref:htex-back()\n\
216 ! File_Quit:quit()\n\
217 ! Page_First page:goto-page(1)\n\
218 ! Page_Page-10:back-page(10)\n\
219 ! Page_Page-5:back-page(10)\n\
220 ! Page_Prev:back-page(1)\n\
221 ! Page_Next:forward-page(1)\n\
222 ! Page_Page+5:forward-page(5)\n\
223 ! Page_Page+10:forward-page(10)\n\
224 ! Page_Last page:goto-page()\n\
225 ! Zoom_Full size:set-shrink-factor(1)\n\
226 ! Zoom_$%%:shrink-to-dpi(150)\n\
227 ! Zoom_$%%:shrink-to-dpi(100)\n\
228 ! Zoom_$%%:shrink-to-dpi(50)\n\
229 ! Zoom_Fit in window:set-shrink-factor()\n\
230 ! Options_View PS:set-ps(toggle)\n\
231 ! Options_Keep position:set-keep-flag()\n\
232 ! Help_About ...:popup-help(helpGeneral)\n\
233 ! Help_Page Motion ...:popup-help(helpPagemotion)\n\
234 ! Help_Other Commands ...:popup-help(helpOthercommands)\n\
235 ! Help_HyperTeX commands ...:popup-help(helpHypertex)\n\
236 ! Help_Source specials ...:popup-help(helpSourcespecials)\n
237
238 !!!------------------------------
239 !!! help texts
240 !!!------------------------------
241
242 !!!------------------------------
243 !!! about/general
244 !!!------------------------------
245 ! *.helpGeneral: \
246 ! \n\
247 ! This is xdvik, CVS version.\n\
248 ! \n\
249 ! The xdvik project homepage is located at\n\
250 ! http://sourceforge.net/projects/xdvi,\n\
251 ! where you can find updates, report bugs and submit feature requests.\n\
252 ! \n\
253 ! Getting help and exiting xdvi\n\
254 ! \n\
255 ! h or ? or `Help' button\n\
256 ! Displays this help text.\n\
257 ! \n\
258 ! q or Control-C or Control-D or Cancel or Stop or Control-Z (VAX VMS)\n\
259 ! Quits the program.\n
260 !
261
262 !!!------------------------------
263 !!! other commands
264 !!!------------------------------
265 ! *helpOthercommands: \
266 ! \n\
267 ! Other Commands\n\
268 ! \n\
269 ! \n\
270 ! Control-F\n\
271 ! Find another DVI file.\n\
272 ! \n\
273 ! Control-L or Clear\n\
274 ! Redisplays the current page.\n\
275 ! \n\
276 ! Control-P\n\
277 ! Prints bitmap unit, bit order, and byte order.\n\
278 ! \n\
279 ! ^ or Home\n\
280 ! Move to the ``home'' position of the page. This is\n\
281 ! normally the upper left-hand corner of the page,\n\
282 ! depending on the margins as described in the -margins\n\
283 ! option, above.\n\
284 ! \n\
285 ! c Moves the page so that the point currently beneath the\n\
286 ! cursor is moved to the middle of the window. It also\n\
287 ! (gasp!) warps the cursor to the same place.\n\
288 ! \n\
289 ! G This key toggles the use of greyscale anti-aliasing for\n\
290 ! displaying shrunken bitmaps. In addition, the key\n\
291 ! sequences `0G' and `1G' clear and set this flag,\n\
292 ! respectively. See also the -nogrey option.\n\
293 ! \n\
294 ! k Normally when xdvi switches pages, it moves to the home\n\
295 ! position as well. The `k' keystroke toggles a `keep-\n\
296 ! position' flag which, when set, will keep the same\n\
297 ! position when moving between pages. Also `0k' and `1k'\n\
298 ! clear and set this flag, respectively. See also the\n\
299 ! -keep option.\n\
300 ! \n\
301 ! M Sets the margins so that the point currently under the\n\
302 ! cursor is the upper left-hand corner of the text in the\n\
303 ! page. Note that this command itself does not move the\n\
304 ! image at all. For details on how the margins are used,\n\
305 ! see the -margins option.\n\
306 ! \n\
307 ! P ``This is page number n.'' This can be used to make\n\
308 ! the `g' keystroke refer to actual page numbers instead\n\
309 ! of absolute page numbers.\n\
310 ! \n\
311 ! R Forces the dvi file to be reread. This allows you to\n\
312 ! preview many versions of the same file while running\n\
313 ! xdvi only once.\n\
314 ! \n\
315 ! s Changes the shrink factor to the given number. If no\n\
316 ! number is given, the smallest factor that makes the\n\
317 ! entire page fit in the window will be used. (Margins\n\
318 ! are ignored in this computation.)\n\
319 ! \n\
320 ! S Sets the density factor to be used when shrinking\n\
321 ! bitmaps. This should be a number between 0 and 100;\n\
322 ! higher numbers produce lighter characters.\n\
323 ! \n\
324 ! t Toggles to the next unit in a sorted list of TeX dimension\n\
325 ! units for the popup magnifier ruler.\n\
326 ! \n\
327 ! V Toggles Ghostscript anti-aliasing. Also `0V' and `1V' clear\n\
328 ! and enables this mode, respectively. See also the the\n\
329 ! -gsalpha option.\n\
330 ! \n\
331 ! x Toggles expert mode (in which the buttons do not appear).\n\
332 ! `1x' toggles display of the statusline at the bottom of\n\
333 ! the window.\n
334
335 !!!------------------------------
336 !!! page motion
337 !!!------------------------------
338 ! *helpPagemotion: \
339 ! \n\
340 ! Moving around in the document\n\
341 ! \n\
342 ! \n\
343 ! \n\
344 ! n or f or Space or Return or LineFeed or PgDn\n\
345 ! Moves to the next page (or to the nth next page if a\n\
346 ! number is given).\n\
347 ! \n\
348 ! p or b or Control-H or BackSpace or DELete or PgUp\n\
349 ! Moves to the previous page (or back n pages).\n\
350 ! \n\
351 ! u or Up-arrow\n\
352 ! Moves up two thirds of a window-full.\n\
353 ! \n\
354 ! d or Down-arrow\n\
355 ! Moves down two thirds of a window-full.\n\
356 ! \n\
357 ! l or Left-arrow\n\
358 ! Moves left two thirds of a window-full.\n\
359 ! \n\
360 ! r or Right-arrow\n\
361 ! Moves right two thirds of a window-full.\n\
362 ! \n\
363 ! g or j or End\n\
364 ! Moves to the page with the given number. Initially,\n\
365 ! the first page is assumed to be page number 1, but this\n\
366 ! can be changed with the `P' keystroke, below. If no\n\
367 ! page number is given, then it goes to the last page.\n\
368 ! \n\
369 ! < Move to first page in document.\n\
370 ! > Move to last page in document.\n
371
372 !!!------------------------------
373 !!! end of helptexts
374 !!!------------------------------
375
376
377 !!!------------------------------------------------------------------------------
378 !!!-------------- used for internal checking - DO NOT CHANGE THIS! --------------
379 !!!------------------------------------------------------------------------------
380 *appDefaultsFileVersion: 20030303