home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / lyx21041.zip / XFree86 / lib / X11 / lyx / bind / sciword.bind < prev    next >
Text File  |  1999-09-09  |  15KB  |  480 lines

  1. # This file is part of LyX
  2.  
  3. # LyX keyboard definitions similar to those of Scientific Word.
  4. # Prepared by Serge Winitzki. Version 1.0
  5.  
  6. # Tip: to find how LyX calls a pressed key, look at the status bar after
  7. # entering a non-existent key combination. E.g. want to find how "Ctrl-&" is
  8. # referenced, so press Ctrl-S Ctrl-&: the status bar shows "C-s S-C-ampersand."
  9.  
  10. #\bind "C-a"                    "------"
  11. #\bind "C-b"                    "font-bold"
  12.  
  13. # Copy, paste, etc.: more familiar keys
  14. \bind "C-c"    "copy"
  15.  
  16. # Display equation toggle: type it in a displayed equation to convert it
  17. # back to an inline equation
  18. # Sciword mnemonic.
  19. \bind "C-d"    "math-display"
  20.  
  21. #\bind "C-e"    "------"
  22. # Greek for only one character. "math-greek-toggle" is the persistent Greek
  23. # toggle which nobody really needs when typing math.
  24. # Sciword mnemonic.
  25. \bind "C-f"    "math-insert frac"
  26. \bind "C-g"    "math-greek"
  27.  
  28. # Do I need this?
  29. #\bind "C-h"    "hyphenation-point-insert"
  30.  
  31. # Sciword mnemonic.
  32. \bind "C-i"    "math-insert int"
  33.  
  34. #\bind "C-j"    "------"
  35.  
  36. \bind "C-k"    "line-delete-forward"
  37. \bind "C-l"    "screen-recenter"
  38.  
  39. # Toggle: in text mode, switch to math, and vice versa. Also C-t.
  40. \bind "C-m"    "math-mode"
  41. #\bind "C-n"    "------"
  42. \bind "C-o"    "open-stuff"
  43. \bind "C-p"    "font-code"
  44. # Insert a quote character. Do I need this?
  45. \bind "C-q"    "quote-insert"
  46.  
  47. # Sciword mnemonic.
  48. \bind "C-r"    "math-insert sqrt"
  49.  
  50. # This combination is now a gateway to math symbols (C-s ...)
  51. #\bind "C-s"    "font-smallcaps"
  52. \bind "C-t"    "math-mode"
  53. \bind "C-u"    "font-underline"
  54. \bind "C-v"    "paste"
  55. \bind "C-w"    "buffer-close"
  56. \bind "C-x"    "cut"
  57. \bind "C-z"    "undo"
  58. \bind "S-C-z"    "redo"
  59.  
  60.  
  61. # This combination makes an umlaut accept now.
  62. #\bind "S-C-quotedbl"           "quote-insert"
  63.  
  64. # Bracket delimiters. Sciword mnemonic is to press Control-<bracket key>
  65.  
  66. \bind "C-9"    "math-delim ( )"
  67. \bind "S-C-parenleft"    "math-delim ( )"
  68. \bind "C-0"    "math-delim ( )"
  69. \bind "S-C-parenright"    "math-delim ( )"
  70.  
  71. \bind "C-S-bracketleft"        "math-delim [ ]"
  72. \bind "C-S-bracketright"    "math-delim [ ]"
  73. \bind "C-S-less"        "math-delim langle rangle"
  74. \bind "C-S-greater"        "math-delim langle rangle"
  75.  
  76. # The bar bracket: on some keyboards, e.g. British, the bar character is
  77. # misplaced to an Alt-something
  78. \bind "C-S-bar"        "math-delim | |"
  79. \bind "C-S-brokenbar"    "math-delim | |"
  80. \bind "C-M-bar"        "math-delim | |"
  81.  
  82. \bind "S-C-braceleft"        "math-delim { }"
  83. \bind "S-C-braceright"        "math-delim { }"
  84.  
  85. # Accents. Sciword mnemonic. Mostly need to press Ctrl-<accent key>
  86. # e.g. Ctrl-. for overdot, Ctrl-' for acute accent, Ctrl-~ for tilda etc.
  87. # Some of them seem to work only in math mode?
  88.  
  89. # S-C-period?
  90. \bind "C-period"    "accent-dot"
  91. \bind "C-quoteleft"    "accent-grave"
  92. \bind "S-C-asciitilde"    "accent-tilde"
  93. \bind "S-C-quotedbl"    "accent-umlaut"
  94. \bind "C-apostrophe"    "accent-acute"
  95. \bind "S-C-asciicircum" "accent-circumflex"
  96. \bind "C-equal"    "accent-vector"
  97. # Why is it not "accent-bar"?
  98. \bind "C-minus"    "math-insert bar"
  99. # What is "accent-underbar"?
  100. #\bind "S-C-underscore"    "accent-underbar"
  101.  
  102. # Numbering equations. Should perhaps simplify math-number and math-nonumber into one command. This and also math-macro stuff should be available in the menus!
  103. # Sciword mnemonic, kind of (was just "TAB").
  104.  
  105. \bind "C-Tab"    "math-number"
  106. \bind "C-S-Tab"    "math-nonumber"
  107.  
  108. # Function keys.
  109.  
  110. #\bind "F1"    "help"    # Not yet implemented!
  111. #\bind "C-F1"                   "help-context"                  # Not yet implemented!
  112. \bind "F2"                     "buffer-write"
  113. \bind "F3"                     "find-replace"
  114.  
  115. \bind "C-F4"                   "buffer-close"
  116. \bind "M-F4"                   "lyx-quit"
  117. # F4 to F8 are used to switch fonts. Sciword mnemonic.
  118. \bind "F4"                     "font-default"
  119. \bind "F5"                     "font-bold"
  120. \bind "F6"                     "font-emph"
  121. \bind "F7"                     "font-code"
  122. \bind "F8"                     "font-noun"
  123. # F9 bound below as meta-prefix (e.g. if the keyboard doesn't have ALT).
  124. #\bind "F9"                     "------"
  125. #\bind "F10"                    "------"
  126.  
  127. #
  128. # Math menu (unmodified)
  129. #
  130.  
  131. \bind "M-m f"            "math-insert frac"
  132. \bind "M-m i"            "math-insert int"
  133. \bind "M-m o"            "math-insert oint"
  134. \bind "M-m p"                  "math-insert partial"
  135. \bind "M-m s"                  "math-insert sqrt"
  136. \bind "M-m S-S"                "math-insert sum"
  137. \bind "M-m l"                  "math-limits"
  138. \bind "M-m n"                  "math-number"
  139. \bind "M-m v"                  "accent-vector"
  140. \bind "M-m space"              "menu-open Math"
  141.  
  142. # Sciword mnemonics for math editing:
  143.  
  144. \bind "M-apostrophe"    "math-insert prime"
  145. \bind "C-Up"        "math-insert ^"
  146. \bind "C-Down"        "math-insert _"
  147. \bind "C-s d"        "math-insert partial"
  148. \bind "C-s e"        "math-insert sum"
  149. \bind "C-s p"        "math-insert prod"
  150. \bind "C-s i"        "math-insert infty"
  151.  
  152. # My own embellishments for symbols I use often.
  153.  
  154. #I'd like to combine math-insert ^ and math-insert prime, but don't know how.
  155.  
  156. \bind "C-s apostrophe"    "math-insert prime"
  157. \bind "C-s S-plus"    "math-insert dagger"
  158. \bind "C-s equal"    "math-insert equiv"
  159. \bind "M-equal"        "math-insert approx"
  160. \bind "M-minus"        "math-insert sim"
  161. \bind "M-less"        "math-insert leq"
  162. \bind "M-greater"    "math-insert geq"
  163. \bind "C-s S-less"    "math-insert ll"
  164. \bind "C-s S-greater"    "math-insert gg"
  165.  
  166.     ############################
  167. ######### Almost no changes below. #########
  168.     ############################
  169.  
  170. #
  171. # Motion group
  172. #
  173.  
  174. \bind "Right"                  "char-forward"
  175. \bind "Left"                   "char-backward"
  176. \bind "Up"                     "up"
  177. \bind "Down"                   "down"
  178. \bind "C-Right"                "word-forward"
  179. \bind "C-Left"                 "word-backward"
  180. # These are now used to insert superscripts and subscripts.
  181. #\bind "C-Up"                   "paragraph-up"
  182. #\bind "C-Down"                 "paragraph-down"
  183. \bind "Home"                   "line-begin"
  184. \bind "End"                    "line-end"
  185. \bind "Prior"                  "screen-up"
  186. \bind "Next"                   "screen-down"
  187. \bind "C-Home"                 "buffer-begin"
  188. \bind "C-End"                  "buffer-end"
  189. \bind "Tab"                    "tab-forward"
  190.  
  191. #
  192. # Motion + select group
  193. #
  194.  
  195. \bind "S-Right"                "forward-select"
  196. \bind "S-Left"                 "backward-select"
  197. \bind "S-Up"                   "up-select"
  198. \bind "S-Down"                 "down-select"
  199. \bind "S-C-Right"              "word-forward-select"
  200. \bind "S-C-Left"               "word-backward-select"
  201. \bind "S-C-Up"                 "paragraph-up-select"
  202. \bind "S-C-Down"               "paragraph-down-select"
  203. \bind "S-Home"                 "line-begin-select"
  204. \bind "S-End"                  "line-end-select"
  205. \bind "S-Prior"                "screen-up-select"
  206. \bind "S-Next"                 "screen-down-select"
  207. \bind "S-C-Home"               "buffer-begin-select"
  208. \bind "S-C-End"                "buffer-end-select"
  209. \bind "C-Insert"               "copy"
  210. \bind "S-Insert"               "paste"
  211. \bind "S-Delete"               "cut"
  212.  
  213. #
  214. # Edit group
  215. #
  216.  
  217. \bind "Delete"                 "delete-forward"
  218. \bind "BackSpace"              "delete-backward"
  219. \bind "C-Delete"               "word-delete-forward"
  220. \bind "C-BackSpace"            "word-delete-backward"
  221. \bind "Return"                 "break-paragraph"
  222. \bind "M-Return"               "break-paragraph-keep-layout"
  223. \bind "C-Return"               "break-line"
  224. \bind "C-space"                "protected-space-insert"
  225. \bind "Escape"                 "cancel"
  226. \bind "F9"                     "meta-prefix"
  227.  
  228. #
  229. # Visible Menu access menu
  230. #
  231.  
  232. \bind "F10 d"                  "menu-open Documents"
  233. \bind "F10 e"                  "menu-open Edit"
  234. \bind "F10 f"                  "menu-open File"
  235. \bind "F10 h"                  "menu-open Help"
  236. \bind "F10 i"                  "menu-open Insert"
  237. \bind "F10 l"                  "menu-open Layout"
  238. \bind "F10 m"                  "menu-open Math"
  239. \bind "F10 o"                  "menu-open Options"
  240.  
  241.  
  242.  
  243. #
  244. # File menu
  245. #
  246.  
  247. \bind "M-f a"                  "buffer-write-as"
  248. \bind "M-f c"                  "buffer-close"
  249. \bind "M-f n"                  "buffer-new"
  250. #\bind "M-f l"                  "file-last"                      # Not yet implemented.
  251. \bind "M-f o"                  "buffer-open"
  252. \bind "M-f p"                  "buffer-print"
  253. \bind "M-f q"                  "lyx-quit"
  254. \bind "M-f r"                  "buffer-typeset"
  255.         # Obsolete
  256. \bind "M-f s"                  "buffer-write"
  257. \bind "M-f t"                  "buffer-typeset"
  258.  
  259. \bind "M-f x"                  "buffer-view"
  260. \bind "M-f g"                  "buffer-view-ps"
  261. \bind "M-f space"              "menu-open File"
  262.  
  263.  
  264. #
  265. # Edit menu
  266. #
  267.  
  268. #\bind "M-e b"                  "table"                         # Not yet implemented!
  269. \bind "M-e c"                  "cut"
  270. \bind "M-e e"                  "error-next"
  271. \bind "M-e f"                  "find-replace"
  272. \bind "M-e k"                  "line-delete-forward"
  273. \bind "M-e m"                  "mark-on"
  274. \bind "M-e S-M"                "mark-off"
  275. \bind "M-e n"                  "note-next"
  276. \bind "M-e o"                  "copy"
  277. \bind "M-e p"                  "paste"
  278. \bind "M-e r"                  "redo"
  279. \bind "M-e s"                  "spellchecker"
  280. #\bind "M-e t"                  "toc-update"
  281. \bind "M-e u"                  "undo"
  282. \bind "M-e space"              "menu-open Edit"
  283.  
  284.  
  285. #
  286. # Layout menu
  287. #
  288.  
  289. \bind "M-l c"                  "layout-character"
  290. \bind "M-l p"                  "layout-paragraph"
  291. \bind "M-l d"                  "layout-document"
  292. \bind "M-l q"                  "layout-quotes"
  293. \bind "M-l l"                  "layout-preamble"
  294. \bind "M-l e"                  "font-emph"
  295. #\bind "M-l n"                  "font-smallcaps"
  296. \bind "M-l b"                  "font-bold"
  297. \bind "M-l t"                  "tex-mode"
  298. \bind "M-l v"                  "depth-next"
  299. \bind "M-l space"              "menu-open Layout"
  300.  
  301.  
  302.  
  303. #
  304. # Insert menu
  305. #
  306.  
  307. \bind "M-i f"                  "footnote-insert"
  308. \bind "M-i h"                  "hfill-insert"
  309. \bind "M-i m"                  "marginpar-insert"
  310. \bind "M-i n"                  "note-insert"
  311. \bind "M-i l"                  "label-insert"
  312. \bind "M-i r"                  "reference-insert"
  313. \bind "M-i minus"              "hyphenation-point-insert"
  314. \bind "M-i apostrophe"         "quote-insert"
  315. \bind "M-i S-quotedbl"         "quote-insert"
  316. \bind "M-i space"              "menu-open Insert"
  317.  
  318.  
  319.  
  320. #
  321. # Options menu
  322. #
  323.  
  324. #\bind "M-o f"                  "screen-font-options"           # Not yet implemented!
  325. #\bind "M-o s"                  "spellcheck-options"            # Not yet implemented!
  326. #\bind "M-o k"                  "keyboard-options"              # Not yet implemented!
  327. #\bind "M-o l"                  "latex-options"                 # Not yet implemented!
  328. \bind "M-o space"              "menu-open Options"
  329.  
  330.  
  331.  
  332. #
  333. # Documents menu
  334. #
  335.  
  336. \bind "M-d p"                  "buffer-previous"
  337. \bind "M-d space"              "menu-open Documents"
  338.  
  339.  
  340.  
  341. #
  342. # Help menu
  343. #
  344.  
  345. #\bind "M-h d"                  "help-documentation"            # Not yet implemented!
  346. #\bind "M-h o"                  "help-copyright"                # Not yet implemented!
  347. #\bind "M-h w"                  "help-warranty"                 # Not yet implemented!
  348. #\bind "M-h c"                  "help-credits"                  # Not yet implemented!
  349. #\bind "M-h v"                  "help-version"                  # Not yet implemented!
  350. \bind "M-h space"              "menu-open Help"
  351.  
  352.  
  353.  
  354. #
  355. # Font size menu
  356. #
  357.  
  358. \bind "M-s S-A"                "font-size largest"             # \LARGE
  359. \bind "M-s g"                  "font-size giant"               # \Huge
  360. \bind "M-s h"                  "font-size huge"                # \huge
  361. \bind "M-s S-H"                "font-size giant"               # \Huge
  362. \bind "M-s l"                  "font-size large"               # \large
  363. \bind "M-s S-L"                "font-size larger"              # \Large
  364. \bind "M-s n"                  "font-size normal"              # \normalsize
  365. \bind "M-s s"                  "font-size small"               # \small
  366. \bind "M-s t"                  "font-size tiny"                # \tiny
  367.  
  368. \bind "M-s 1"                  "font-size tiny"
  369. \bind "M-s 2"                  "font-size small"
  370. \bind "M-s 3"                  "font-size normal"
  371. \bind "M-s 4"                  "font-size large"
  372. \bind "M-s 5"                  "font-size larger"
  373. \bind "M-s 6"                  "font-size largest"
  374. \bind "M-s 7"                  "font-size huge"
  375. \bind "M-s 8"                  "font-size giant"
  376.  
  377.  
  378.  
  379. #
  380. # Alignment menu
  381. #
  382.  
  383. #\bind "M-a l"                  "para-align left"               # Not yet implemented!
  384. #\bind "M-a r"                  "para-align right"              # Not yet implemented!
  385. #\bind "M-a c"                  "para-align center"             # Not yet implemented!
  386. #\bind "M-a b"                  "para-align block"              # Not yet implemented!
  387. #\bind "M-a f"                  "para-align block"              # Not yet implemented!
  388. #\bind "M-a d"                  "para-align default"            # Not yet implemented!
  389.  
  390.  
  391.  
  392. #
  393. # Paragraph style menu
  394. #
  395.  
  396. \bind "M-p c"                  "drop-layouts-choice"
  397. \bind "M-p 1"                  "layout Chapter"
  398. \bind "M-p 2"                  "layout Section"
  399. \bind "M-p 3"                  "layout Subsection"
  400. \bind "M-p 4"                  "layout Subsubsection"
  401. \bind "M-p 5"                  "layout Paragraph"
  402. \bind "M-p 6"                  "layout Subparagraph"
  403. \bind "M-p b"                  "layout Itemize"                        # bulleted list
  404. \bind "M-p d"                  "layout Description"
  405. \bind "M-p e"                  "layout Enumerate"                      # numbered list
  406. \bind "M-p i"                  "layout Itemize"                        # bulleted list
  407. \bind "M-p l"                  "layout List"
  408. \bind "M-p n"                  "layout Enumerate"                      # numbered list
  409. \bind "M-p p"                  "layout Lyx-Code"
  410. \bind "M-p q"                  "layout Quote"
  411. \bind "M-p S-Q"                "layout Quotation"
  412. \bind "M-p s"                  "layout Standard"
  413. \bind "M-p t"                  "layout Title"
  414. \bind "M-p S-at"               "layout Section*"                       # M-p S-2
  415. \bind "M-p S-dollar"           "layout Subsubsection*"                 # M-p S-4
  416. \bind "M-p S-numbersign"       "layout Subsection*"                    # M-p S-3
  417.  
  418. \bind "M-p Left"               "depth-decrement"
  419. \bind "M-p Right"              "depth-increment"
  420.  
  421.  
  422.  
  423. #
  424. # Character style menu
  425. #
  426.  
  427. \bind "M-c b"                  "font-bold"
  428. #\bind "M-c c"                  "font-smallcaps"
  429. \bind "M-c e"                  "font-emph"
  430. \bind "M-c i"                  "font-emph"                        # italics
  431. \bind "M-c m"                  "math-mode"
  432. \bind "M-c p"                  "font-code"
  433. \bind "M-c r"                  "font-roman"
  434. \bind "M-c s"                  "font-sans"
  435. \bind "M-c t"                  "tex-mode"
  436. \bind "M-c u"                  "font-underline"
  437.  
  438. \bind "M-c Down"               "word-lowcase"
  439. \bind "M-c Up"                 "word-upcase"
  440. \bind "M-c Right"              "word-capitalize"
  441.  
  442. \bind "M-c space"              "font-default"
  443.  
  444.  
  445.  
  446. #
  447. # Keyboard menu
  448. #
  449.  
  450. \bind "M-k 1"                  "keymap-primary"
  451. \bind "M-k 2"                  "keymap-secondary"
  452. \bind "M-k o"                  "keymap-off"
  453. \bind "M-k t"                  "keymap-toggle"
  454. \bind "M-k x"                  "keymap-off"
  455.  
  456.  
  457.  
  458. #
  459. # Misc menu
  460. #
  461.  
  462. \bind "M-x c"                  "screen-recenter"
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.