![]() 76 ( define ( pure-texmacs-version ) 77 ( map string- >number 78 ( string-tokenize ( texmacs-version ) 79 ( char-set-complement ( char-set #\. 69 ( if ( not ( defined? 'pure-default-lib-path )) 70 ( define pure-default-lib-path "/usr/local/lib" )) 71 72 73 74 Kludge to deal with old TeXmacs versions which have a slightly different 75 interface for defining keyboard maps and menus. This is normally auto-detected (see below), but 67 if the auto-detection doesn't work for you then you'll have to set this 68 variable to the path where your Pure library scripts are to be found. 63 ( if ( not ( defined? 'pure-scripts )) 64 ( define pure-scripts ( list "texmacs.pure" ))) 65 66 Default Pure library path. Filenames without 61 a slash in them are looked for first in the pure-texmacs-includes 62 directories and then in the Pure library directory. 52 ( if ( not ( defined? 'pure-texmacs-includes )) 53 ( define pure-texmacs-includes 54 TEXMACS_HOME_PATH and TEXMACS_PATH should always be set 55 ( list ( with texmacs-home ( getenv "TEXMACS_HOME_PATH" ) 56 ( string-append texmacs-home "/plugins/pure/progs" )) 57 ( with texmacs-dir ( getenv "TEXMACS_PATH" ) 58 ( string-append texmacs-dir "/plugins/pure/progs" ))))) 59 60 Scripts to be preloaded (if present) by the Pure plugins. 50 51 Additional TeXmacs-specific include paths to search for Pure scripts. We allow these to be overridden by 49 corresponding definitions in the user's init file. 37 38 ( define pure-math-keymap 39 '( get rid of the default " space" bindings for invisible symbols 40 (comment the following lines if you really can't live without these) 41 ( ", space" ( insert ", " )) 42 ( ". 34 Note that you still have to escape the backslash (Shift-F5 \) to enter a 35 Pure lambda the default binding is preserved in this case so that you can 36 enter special TeXmacs commands such as \eqnarray and \binom in math mode. (The only one that's relevant 30 in Pure is the invisible comma which you can also get with ", Tab Tab".) 31 32 We also make both $ and " self-inserting in math mode we really need them 33 in Pure and it's annoying if we always have to escape these characters. ![]() 22 23 ( define pure-keymap 24 '( math input toggle 25 ( "C-$" ( toggle-session-math-input )))) 26 27 The default " space" math bindings are quite annoying when entering 28 Pure expressions, so we disable them here there are other ways to get 29 these "invisible" symbols with the Tab key. In particular, the toggle-session-math-input 20 binding (Ctrl $ by default) provides a quick way to toggle between 21 program/verbatim and math mode on the session input line. You might want to add 15 other session types as needed. 11 12 13 14 Here are a few sample Pure sessions for TeXmacs. For details, see the file LICENSE 10 in the root directory or. 9 It comes WITHOUT ANY WARRANTY WHATSOEVER. ![]() As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lisp source code syntax highlighting (style: standard) with prefixed line numbers.Īlternatively you can here view or download the uninterpreted source code file.ġ 2 3 4 MODULE : init-pure.scm 5 DESCRIPTION : Initialize Pure plugin 6 COPYRIGHT : (C) 1999 Joris van der Hoeven, (C) 2012 Albert Graef 7 8 This software falls under the GNU general public license version 3 or later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |