/texmf/xdvi/XDvi

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