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