home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / packages / tex-complete.shar / tex-complete.el < prev    next >
LaTeX Document  |  1990-07-22  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file Lisp/Scheme program, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: Plain text[LF] default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 3b 20 74 65 78 2d 63 | 6f 6d 70 6c 65 74 65 2e |;; tex-c|omplete.|
|00000010| 65 6c 0a 0a 28 64 65 66 | 63 6f 6e 73 74 20 74 65 |el..(def|const te|
|00000020| 78 2d 63 6f 6d 70 6c 65 | 74 65 2d 76 65 72 73 69 |x-comple|te-versi|
|00000030| 6f 6e 0a 20 20 22 24 49 | 64 3a 20 74 65 78 2d 63 |on. "$I|d: tex-c|
|00000040| 6f 6d 70 6c 65 74 65 2e | 65 6c 2c 76 20 31 2e 33 |omplete.|el,v 1.3|
|00000050| 20 39 30 2f 30 36 2f 31 | 39 20 31 38 3a 33 32 3a | 90/06/1|9 18:32:|
|00000060| 30 39 20 73 6b 20 45 78 | 70 20 24 22 0a 20 20 22 |09 sk Ex|p $". "|
|00000070| 54 68 65 20 52 43 53 20 | 69 64 20 6f 66 20 74 68 |The RCS |id of th|
|00000080| 69 73 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 65 |is versi|on of te|
|00000090| 78 2d 63 6f 6d 70 6c 65 | 74 65 2e 22 29 0a 0a 28 |x-comple|te.")..(|
|000000a0| 64 65 66 75 6e 20 74 65 | 78 2d 69 6e 73 65 72 74 |defun te|x-insert|
|000000b0| 2d 70 6c 61 69 6e 2d 63 | 6f 6d 6d 61 6e 64 20 28 |-plain-c|ommand (|
|000000c0| 43 4d 44 29 0a 20 20 22 | 49 6e 73 65 72 74 20 61 |CMD). "|Insert a|
|000000d0| 20 70 6c 61 69 6e 20 54 | 65 58 20 63 6f 6d 6d 61 | plain T|eX comma|
|000000e0| 6e 64 20 43 4d 44 20 77 | 69 74 68 20 63 6f 6d 70 |nd CMD w|ith comp|
|000000f0| 6c 65 74 69 6e 67 20 72 | 65 61 64 2c 20 0a 75 73 |leting r|ead, .us|
|00000100| 69 6e 67 20 74 68 65 20 | 6c 69 73 74 20 69 6e 20 |ing the |list in |
|00000110| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 74 65 78 |the vari|able tex|
|00000120| 2d 6e 61 6d 65 73 2e 22 | 0a 20 20 28 69 6e 74 65 |-names."|. (inte|
|00000130| 72 61 63 74 69 76 65 0a | 20 20 20 28 70 72 6f 67 |ractive.| (prog|
|00000140| 6e 0a 20 20 20 20 20 28 | 72 65 71 75 69 72 65 20 |n. (|require |
|00000150| 27 74 65 78 2d 6e 61 6d | 65 73 29 0a 20 20 20 20 |'tex-nam|es). |
|00000160| 20 28 6c 69 73 74 20 28 | 63 6f 6d 70 6c 65 74 69 | (list (|completi|
|00000170| 6e 67 2d 72 65 61 64 0a | 09 20 20 20 20 22 4e 61 |ng-read.|. "Na|
|00000180| 6d 65 20 6f 66 20 28 70 | 6c 61 69 6e 29 20 54 65 |me of (p|lain) Te|
|00000190| 58 20 63 6f 6d 6d 61 6e | 64 3a 20 22 20 3b 20 50 |X comman|d: " ; P|
|000001a0| 52 4f 4d 50 54 0a 09 20 | 20 20 20 74 65 78 2d 6e |ROMPT.. | tex-n|
|000001b0| 61 6d 65 73 20 3b 20 74 | 68 65 20 54 41 42 4c 45 |ames ; t|he TABLE|
|000001c0| 0a 09 20 20 20 20 6e 69 | 6c 09 09 3b 20 50 52 45 |.. ni|l..; PRE|
|000001d0| 44 49 43 41 54 45 20 28 | 6e 69 6c 3a 20 75 73 65 |DICATE (|nil: use|
|000001e0| 20 77 68 6f 6c 65 20 54 | 41 42 4c 45 29 0a 09 20 | whole T|ABLE).. |
|000001f0| 20 20 20 6e 69 6c 09 09 | 3b 20 52 45 51 55 49 52 | nil..|; REQUIR|
|00000200| 45 2d 4d 41 54 43 48 3a | 20 6e 6f 0a 09 20 20 20 |E-MATCH:| no.. |
|00000210| 20 6e 69 6c 09 09 3b 20 | 6e 6f 20 49 4e 49 54 49 | nil..; |no INITI|
|00000220| 41 4c 2d 49 4e 50 55 54 | 0a 09 20 20 20 20 29 29 |AL-INPUT|.. ))|
|00000230| 29 29 0a 20 20 28 69 6e | 73 65 72 74 20 20 22 5c |)). (in|sert "\|
|00000240| 5c 22 20 43 4d 44 29 29 | 0a 0a 28 64 65 66 75 6e |\" CMD))|..(defun|
|00000250| 20 74 65 78 2d 69 6e 73 | 65 72 74 2d 6c 61 74 65 | tex-ins|ert-late|
|00000260| 78 2d 63 6f 6d 6d 61 6e | 64 20 28 43 4d 44 29 0a |x-comman|d (CMD).|
|00000270| 20 20 22 49 6e 73 65 72 | 74 20 61 20 4c 61 54 65 | "Inser|t a LaTe|
|00000280| 58 20 63 6f 6d 6d 61 6e | 64 20 43 4d 44 20 77 69 |X comman|d CMD wi|
|00000290| 74 68 20 63 6f 6d 70 6c | 65 74 69 6e 67 20 72 65 |th compl|eting re|
|000002a0| 61 64 2c 0a 75 73 69 6e | 67 20 74 68 65 20 76 61 |ad,.usin|g the va|
|000002b0| 72 69 61 62 6c 65 20 6c | 61 74 65 78 2d 63 6f 6d |riable l|atex-com|
|000002c0| 6d 61 6e 64 73 2e 22 0a | 20 20 28 69 6e 74 65 72 |mands.".| (inter|
|000002d0| 61 63 74 69 76 65 0a 20 | 20 20 28 70 72 6f 67 6e |active. | (progn|
|000002e0| 0a 20 20 20 20 20 28 72 | 65 71 75 69 72 65 20 27 |. (r|equire '|
|000002f0| 6c 61 74 65 78 2d 6e 61 | 6d 65 73 29 0a 20 20 20 |latex-na|mes). |
|00000300| 20 20 28 6c 69 73 74 20 | 28 63 6f 6d 70 6c 65 74 | (list |(complet|
|00000310| 69 6e 67 2d 72 65 61 64 | 0a 09 20 20 20 20 22 4e |ing-read|.. "N|
|00000320| 61 6d 65 20 6f 66 20 4c | 61 54 65 58 20 63 6f 6d |ame of L|aTeX com|
|00000330| 6d 61 6e 64 3a 20 22 20 | 3b 20 50 52 4f 4d 50 54 |mand: " |; PROMPT|
|00000340| 0a 09 20 20 20 20 6c 61 | 74 65 78 2d 63 6f 6d 6d |.. la|tex-comm|
|00000350| 61 6e 64 73 20 3b 20 54 | 41 42 4c 45 0a 09 20 20 |ands ; T|ABLE.. |
|00000360| 20 20 6e 69 6c 09 09 3b | 20 50 52 45 44 49 43 41 | nil..;| PREDICA|
|00000370| 54 45 20 28 6e 69 6c 3a | 20 75 73 65 20 77 68 6f |TE (nil:| use who|
|00000380| 6c 65 20 54 41 42 4c 45 | 29 0a 09 20 20 20 20 6e |le TABLE|).. n|
|00000390| 69 6c 09 09 3b 20 52 45 | 51 55 49 52 45 2d 4d 41 |il..; RE|QUIRE-MA|
|000003a0| 54 43 48 0a 09 20 20 20 | 20 6e 69 6c 09 09 3b 20 |TCH.. | nil..; |
|000003b0| 6e 6f 20 49 4e 49 54 49 | 41 4c 2d 49 4e 50 55 54 |no INITI|AL-INPUT|
|000003c0| 0a 09 09 20 20 20 20 20 | 20 29 29 29 29 0a 20 20 |... | )))). |
|000003d0| 28 69 6e 73 65 72 74 20 | 28 63 6f 6e 63 61 74 20 |(insert |(concat |
|000003e0| 22 5c 5c 22 20 43 4d 44 | 29 29 29 0a 0a 3b 3b 20 |"\\" CMD|)))..;; |
|000003f0| 74 68 69 73 20 72 65 64 | 65 66 69 6e 65 73 20 63 |this red|efines c|
|00000400| 6d 75 74 65 78 2e 65 6c | 27 73 20 66 75 6e 63 74 |mutex.el|'s funct|
|00000410| 69 6f 6e 0a 3b 3b 20 73 | 6b 40 73 75 6e 34 20 31 |ion.;; s|k@sun4 1|
|00000420| 34 2d 4a 75 6e 2d 31 39 | 39 30 20 31 39 3a 33 37 |4-Jun-19|90 19:37|
|00000430| 0a 09 09 09 09 09 0a 28 | 64 65 66 75 6e 20 6c 61 |.......(|defun la|
|00000440| 74 65 78 2d 6d 61 6b 65 | 2d 65 6e 76 69 72 6f 6e |tex-make|-environ|
|00000450| 6d 65 6e 74 20 28 6e 61 | 6d 65 29 0a 20 20 22 4d |ment (na|me). "M|
|00000460| 61 6b 65 20 61 20 6c 61 | 74 65 78 20 4e 41 4d 45 |ake a la|tex NAME|
|00000470| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 28 62 65 | environ|ment (be|
|00000480| 67 69 6e 20 61 6e 64 20 | 6d 61 74 63 68 69 6e 67 |gin and |matching|
|00000490| 20 65 6e 64 29 2e 0a 4e | 41 4d 45 20 69 73 20 72 | end)..N|AME is r|
|000004a0| 65 61 64 20 66 72 6f 6d | 20 74 68 65 20 6d 69 6e |ead from| the min|
|000004b0| 69 62 75 66 66 65 72 20 | 77 69 74 68 20 6e 61 6d |ibuffer |with nam|
|000004c0| 65 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 2c 0a 75 73 |e comple|tion,.us|
|000004d0| 69 6e 67 20 74 68 65 20 | 6c 69 73 74 20 69 6e 20 |ing the |list in |
|000004e0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 6c 61 74 |the vari|able lat|
|000004f0| 65 78 2d 61 6c 6c 2d 65 | 6e 76 69 72 6f 6e 6d 65 |ex-all-e|nvironme|
|00000500| 6e 74 73 2e 22 0a 20 20 | 28 69 6e 74 65 72 61 63 |nts.". |(interac|
|00000510| 74 69 76 65 20 0a 20 20 | 20 28 70 72 6f 67 6e 0a |tive . | (progn.|
|00000520| 20 20 20 20 20 28 72 65 | 71 75 69 72 65 20 27 6c | (re|quire 'l|
|00000530| 61 74 65 78 2d 6e 61 6d | 65 73 29 0a 20 20 20 20 |atex-nam|es). |
|00000540| 20 28 6c 69 73 74 20 28 | 63 6f 6d 70 6c 65 74 69 | (list (|completi|
|00000550| 6e 67 2d 72 65 61 64 0a | 09 20 20 20 20 22 4e 61 |ng-read.|. "Na|
|00000560| 6d 65 20 6f 66 20 4c 61 | 54 65 58 20 65 6e 76 69 |me of La|TeX envi|
|00000570| 72 6f 6e 6d 65 6e 74 20 | 74 6f 20 6d 61 6b 65 3a |ronment |to make:|
|00000580| 20 22 20 3b 20 50 52 4f | 4d 50 54 0a 09 20 20 20 | " ; PRO|MPT.. |
|00000590| 20 6c 61 74 65 78 2d 61 | 6c 6c 2d 65 6e 76 69 72 | latex-a|ll-envir|
|000005a0| 6f 6e 6d 65 6e 74 73 20 | 3b 20 54 41 42 4c 45 0a |onments |; TABLE.|
|000005b0| 09 20 20 20 20 6e 69 6c | 09 09 3b 20 50 52 45 44 |. nil|..; PRED|
|000005c0| 49 43 41 54 45 20 28 6e | 69 6c 3a 20 75 73 65 20 |ICATE (n|il: use |
|000005d0| 77 68 6f 6c 65 20 54 41 | 42 4c 45 29 0a 09 20 20 |whole TA|BLE).. |
|000005e0| 20 20 6e 69 6c 09 09 3b | 20 52 45 51 55 49 52 45 | nil..;| REQUIRE|
|000005f0| 2d 4d 41 54 43 48 0a 09 | 20 20 20 20 6e 69 6c 09 |-MATCH..| nil.|
|00000600| 09 3b 20 6e 6f 20 49 4e | 49 54 49 41 4c 2d 49 4e |.; no IN|ITIAL-IN|
|00000610| 50 55 54 0a 09 20 20 20 | 20 29 29 29 29 0a 20 20 |PUT.. | )))). |
|00000620| 28 69 6e 73 65 72 74 20 | 22 5c 5c 62 65 67 69 6e |(insert |"\\begin|
|00000630| 5c 7b 22 20 6e 61 6d 65 | 20 22 7d 5c 6e 22 29 0a |\{" name| "}\n").|
|00000640| 20 20 28 73 61 76 65 2d | 65 78 63 75 72 73 69 6f | (save-|excursio|
|00000650| 6e 20 28 69 6e 73 65 72 | 74 20 22 5c 6e 5c 5c 65 |n (inser|t "\n\\e|
|00000660| 6e 64 5c 7b 22 20 6e 61 | 6d 65 20 22 7d 22 29 29 |nd\{" na|me "}"))|
|00000670| 29 0a 0a 28 64 65 66 75 | 6e 20 6c 61 74 65 78 2d |)..(defu|n latex-|
|00000680| 69 6e 73 65 72 74 2d 62 | 65 67 69 6e 20 28 65 6e |insert-b|egin (en|
|00000690| 76 69 72 6f 6e 6d 65 6e | 74 29 0a 20 20 22 44 65 |vironmen|t). "De|
|000006a0| 66 69 6e 65 20 61 20 4c | 61 54 65 58 20 65 6e 76 |fine a L|aTeX env|
|000006b0| 69 72 6f 6e 6d 65 6e 74 | 2c 20 5c 5c 62 65 67 69 |ironment|, \\begi|
|000006c0| 6e 20 70 61 72 74 20 6f | 6e 6c 79 2e 0a 4c 61 74 |n part o|nly..Lat|
|000006d0| 65 72 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 5c |er you c|an use \|
|000006e0| 5c 5b 6c 61 74 65 78 2d | 63 6c 6f 73 65 2d 62 6c |\[latex-|close-bl|
|000006f0| 6f 63 6b 5d 20 74 6f 20 | 69 6e 73 65 72 74 20 74 |ock] to |insert t|
|00000700| 68 65 20 6d 61 74 63 68 | 69 6e 67 20 5c 5c 65 6e |he match|ing \\en|
|00000710| 64 2e 0a 0a 59 6f 75 20 | 61 72 65 20 70 72 6f 6d |d...You |are prom|
|00000720| 70 74 65 64 20 66 6f 72 | 20 61 6e 20 65 6e 76 69 |pted for| an envi|
|00000730| 72 6f 6e 6d 65 6e 74 2c | 20 77 68 69 63 68 20 69 |ronment,| which i|
|00000740| 73 20 72 65 61 64 20 66 | 72 6f 6d 20 74 68 65 20 |s read f|rom the |
|00000750| 6d 69 6e 69 62 75 66 66 | 65 72 0a 77 69 74 68 20 |minibuff|er.with |
|00000760| 6e 61 6d 65 20 63 6f 6d | 70 6c 65 74 69 6f 6e 2c |name com|pletion,|
|00000770| 20 75 73 69 6e 67 20 74 | 68 65 20 6c 69 73 74 20 | using t|he list |
|00000780| 69 6e 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |in the v|ariable |
|00000790| 6c 61 74 65 78 2d 61 6c | 6c 2d 65 6e 76 69 72 6f |latex-al|l-enviro|
|000007a0| 6e 6d 65 6e 74 73 2e 22 | 0a 20 20 28 69 6e 74 65 |nments."|. (inte|
|000007b0| 72 61 63 74 69 76 65 20 | 0a 20 20 20 28 70 72 6f |ractive |. (pro|
|000007c0| 67 6e 0a 20 20 20 20 20 | 28 72 65 71 75 69 72 65 |gn. |(require|
|000007d0| 20 27 6c 61 74 65 78 2d | 6e 61 6d 65 73 29 0a 20 | 'latex-|names). |
|000007e0| 20 20 20 20 28 6c 69 73 | 74 20 28 63 6f 6d 70 6c | (lis|t (compl|
|000007f0| 65 74 69 6e 67 2d 72 65 | 61 64 0a 09 20 20 20 20 |eting-re|ad.. |
|00000800| 22 4e 61 6d 65 20 6f 66 | 20 4c 61 54 65 58 20 65 |"Name of| LaTeX e|
|00000810| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 74 6f 20 69 6e |nvironme|nt to in|
|00000820| 73 65 72 74 3a 20 22 20 | 3b 20 50 52 4f 4d 50 54 |sert: " |; PROMPT|
|00000830| 0a 09 20 20 20 20 6c 61 | 74 65 78 2d 61 6c 6c 2d |.. la|tex-all-|
|00000840| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 73 09 3b 20 54 |environm|ents.; T|
|00000850| 41 42 4c 45 0a 09 20 20 | 20 20 6e 69 6c 09 09 09 |ABLE.. | nil...|
|00000860| 09 3b 20 50 52 45 44 49 | 43 41 54 45 20 28 6e 69 |.; PREDI|CATE (ni|
|00000870| 6c 3a 20 75 73 65 20 77 | 68 6f 6c 65 20 54 41 42 |l: use w|hole TAB|
|00000880| 4c 45 29 0a 09 20 20 20 | 20 6e 69 6c 09 09 09 09 |LE).. | nil....|
|00000890| 3b 20 52 45 51 55 49 52 | 45 2d 4d 41 54 43 48 0a |; REQUIR|E-MATCH.|
|000008a0| 09 20 20 20 20 6e 69 6c | 09 09 09 09 3b 20 6e 6f |. nil|....; no|
|000008b0| 20 49 4e 49 54 49 41 4c | 2d 49 4e 50 55 54 0a 09 | INITIAL|-INPUT..|
|000008c0| 20 20 20 20 29 29 29 29 | 0a 20 20 28 69 6e 73 65 | ))))|. (inse|
|000008d0| 72 74 20 22 5c 5c 62 65 | 67 69 6e 7b 22 20 0a 09 |rt "\\be|gin{" ..|
|000008e0| 20 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 0a 09 20 | enviro|nment.. |
|000008f0| 20 22 7d 5c 6e 22 29 29 | 0a | "}\n"))|. |
+--------+-------------------------+-------------------------+--------+--------+