home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-02-26 | 62.1 KB | 1,121 lines |
-
- (defvar latexinfo-formats-directory (file-name-as-directory (or (getenv "LATEXINFO") ".")))
-
- (defvar latexinfo-texinputs (let ((texinputs (or (getenv "TEXINPUTS") (concat ".:" latexinfo-formats-directory ":/usr/local/lib/tex/inputs"))) (dirlist) (i 0) (l) (s) (sepchar 58)) (if (eq system-type (quote vax-vms)) (setq sepchar 44)) (setq l (length texinputs)) (while (< i l) (setq s i) (while (and (< i l) (not (char-equal (aref texinputs i) sepchar))) (setq i (1+ i))) (if (> i s) (setq dirlist (append dirlist (list (substring texinputs s i))))) (setq i (1+ i))) dirlist))
-
- (defvar latexinfo-always-refill nil)
-
- (if (not (memq latexinfo-formats-directory load-path)) (setq load-path (cons latexinfo-formats-directory load-path)))
-
- (if (not (memq "." load-path)) (setq load-path (cons "." load-path)))
-
- (defvar latexinfo-known-document-styles (quote (latexinfo 11pt 12pt twoside titlepage A4 a4 dina4 psfonts format)))
-
- (autoload (quote latexinfo-mode) "latexnfo-mde" "\
- Major mode for editing latexinfo files." t)
-
- (autoload (quote Info-tagify) "informat" "\
- Info Tagify" t)
-
- (autoload (quote Info-split) "informat" "\
- Info Split" t)
-
- (put (quote latexinfoversion) (quote latexinfo-format) (quote latexinfo-format-latexinfoversion))
-
- (defun latexinfo-format-latexinfoversion nil (byte-code "└ ê┴cç" [latexinfo-parse-noarg "1.7"] 2))
-
- (defvar latexinfo-vindex-old nil)
-
- (defvar latexinfo-findex-old nil)
-
- (defvar latexinfo-cindex-old nil)
-
- (defvar latexinfo-cpsubindex-old nil)
-
- (defvar latexinfo-pindex-old nil)
-
- (defvar latexinfo-tindex-old nil)
-
- (defvar latexinfo-kindex-old nil)
-
- (defvar latexinfo-refindex-old nil)
-
- (defvar latexinfo-format-syntax-table nil)
-
- (progn (setq latexinfo-format-syntax-table (make-syntax-table)) (modify-syntax-entry 42 "w" latexinfo-format-syntax-table) (modify-syntax-entry 38 "w" latexinfo-format-syntax-table) (modify-syntax-entry 92 "\\" latexinfo-format-syntax-table) (modify-syntax-entry 17 "\\" latexinfo-format-syntax-table) (modify-syntax-entry 123 "(}" latexinfo-format-syntax-table) (modify-syntax-entry 125 "){" latexinfo-format-syntax-table) (modify-syntax-entry 91 "(]" latexinfo-format-syntax-table) (modify-syntax-entry 93 ")[" latexinfo-format-syntax-table) (modify-syntax-entry 34 " " latexinfo-format-syntax-table) (modify-syntax-entry 40 " " latexinfo-format-syntax-table) (modify-syntax-entry 41 " " latexinfo-format-syntax-table) (modify-syntax-entry 33 "." latexinfo-format-syntax-table) (modify-syntax-entry 46 "." latexinfo-format-syntax-table) (modify-syntax-entry 58 "." latexinfo-format-syntax-table) (modify-syntax-entry 39 "." latexinfo-format-syntax-table))
-
- (defun latexinfo-format-buffer (&optional notagify) "\
- Process the current buffer as latexinfo code, into an Info file.
- The Info file output is generated in a buffer visiting the Info file
- names specified in the \\setfilename command.
-
- Non-nil argument (prefix, if interactive) means don't make tag table
- and don't split the file if large. You can use Info-tagify and
- Info-split to do these manually.
-
- Returns a list:
-
- (list outfile
- latexinfo-cindex latexinfo-vindex latexinfo-findex
- latexinfo-pindex latexinfo-tindex latexinfo-kindex
- latexinfo-refindex)" (interactive "P") (byte-code "╩ê╦╠!ê═ ╬ 8ëê╧ 8ëê╨ 8ëê╤ 8ëê╥ 8ëê╙ 8ëê╘ 8ë)ê âB ╩éD ╒ êtàO ╠╓╫Q!)ç" [lastmessage retval latexinfo-cindex-old latexinfo-vindex-old latexinfo-findex-old latexinfo-pindex-old latexinfo-tindex-old latexinfo-kindex-old latexinfo-refindex-old notagify nil "Formatting Info file..." message latexinfo-format-buffer-1 1 2 3 4 5 6 7 latexinfo-split "done. Now save it." "done."] 7))
-
- (defun latexinfo-split nil (byte-code "┴ ┬Và ├─ë!ê┼ ê┴ ╞Và ├╟ë!ê╚ ç" [lastmessage buffer-size 30000 message "Making tags table for Info file..." Info-tagify 100000 "Splitting Info file..." Info-split] 7))
-
- (defun latexinfo-format-buffer-1 nil (byte-code "▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌▌▄Sp
- èebê▐▀!ê`ëêα ë)êß!êΓ êπ!êΣ êσ!êebêµ êebê▐▀!êτ ê`ebê▐Φ┌#âÉ ┌ëéö ▄ëêΘe\")êdbêΩδ▄┌#â« Θ`d\"é▒ ∞φ!êhεUå║ ∩cêebê≡ êebê±
- &.ç" [latexinfo-format-filename latexinfo-example-start latexinfo-command-start latexinfo-command-end latexinfo-command-name latexinfo-last-node latexinfo-last-node-pos latexinfo-vindex latexinfo-findex latexinfo-cindex latexinfo-cpsubindex latexinfo-pindex latexinfo-tindex latexinfo-kindex latexinfo-refindex latexinfo-stack latexinfo-node-names latexinfo-table-number latexinfo-footnote-number outfile fill-column input-buffer input-directory default-directory latexinfo-format-syntax-table end t latexinfo-always-refill nil 0 re-search-forward "^\\\\setfilename" latexinfo-parse-line-arg find-file latexinfo-mode set-syntax-table erase-buffer insert-buffer-substring latexinfo-run-documentstyle-hooks beginning-of-line "^\\\\alwaysrefill" delete-region search-backward "\\end{document}" error "Missing \\end{document}" 10 "
- " latexinfo-format-scan-noverbatim list] 25))
-
- (defvar latexinfo-region-buffer-name "*Info Region*" "\
- *Name of the temporary buffer used by \\[latexinfo-format-region].")
-
- (defun latexinfo-format-region (region-beginning region-ending) "\
- Convert the the current region of the Latexinfo file to Info format.
- This lets you see what that part of the file will look like in Info.
- The command is bound to \\[latexinfo-format-region]. The text that is
- converted to Info is stored in a temporary buffer." (interactive "r") (byte-code "▌ê▐▀!ê▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌ααSp▌▌
- ßΓ!!êπ êèqêèîΣ êebêσµèτΦ!ê`)┘#åp ΘΩ!êδ ê`ëêτ∞!ê`ë)))êφ^#êφ]#êε ê∩!êdbê≡±▌┘#à┤ ≥`d\"êh≤Uå╜ ⌠cêdbêebê⌡ êeb.ç" [latexinfo-command-start latexinfo-command-end latexinfo-command-name latexinfo-vindex latexinfo-findex latexinfo-cindex latexinfo-pindex latexinfo-tindex latexinfo-kindex latexinfo-refindex latexinfo-stack latexinfo-format-filename latexinfo-example-start latexinfo-last-node-pos latexinfo-last-node latexinfo-node-names latexinfo-table-number latexinfo-footnote-number fill-column input-buffer input-directory default-directory filename-beginning filename-ending latexinfo-region-buffer-name t region-beginning region-ending latexinfo-format-syntax-table nil message "Converting region to Info format..." 0 switch-to-buffer get-buffer-create erase-buffer widen re-search-forward "^\\\\setfilename" forward-line 100 error "The latexinfo file needs a line saying: \\setfilename <name>" beginning-of-line 1 insert-buffer-substring latexinfo-mode set-syntax-table search-backward "\\end{document}" delete-region 10 "
- " latexinfo-format-scan-noverbatim] 24))
-
- (defvar latexinfo-special-regexp "^[ ]*\\\\\\(begin{verbatim}\\|begin{smallverbatim}\\|verb\\|input{\\)")
-
- (defun latexinfo-format-scan-noverbatim nil (byte-code "╞┴┬#âó e┴┴bê╞┴┬#àò ╟╚╔!╩╔!\"ëê╦
- ╠\"â0 ═ éæ ╦
- ╬\"âL `ëê╧\"ê╞╨┴┴#ê`ëéæ ╦
- ╤\"âh `ëê╧\"ê╞╥┴┴#ê`ëéæ ╦
- ╙\"àæ `ëê╧\"ê╟``T\"ëê╘╒!ê╓
- ┴┴#ê╘╒!ê`ëêé êà₧ ╧d\"+éª ╧ed\"ê╫ ç" [latexinfo-special-regexp nil t start end str re-search-forward buffer-substring match-beginning 0 match-end string-equal "\\input{" latexinfo-insert-input-files "\\begin{verbatim}" latexinfo-do-global-substitutions "\\\\end{verbatim}" "\\begin{smallverbatim}" "\\\\end{smallverbatim}" "\\verb" forward-char 1 search-forward latexinfo-format-scan] 23))
-
- (defun latexinfo-insert-input-files nil (byte-code "è╟`╚╔!ê`\"
- ─?à àK @╩╦
- \"!â* ╦
- \"é? ╩╦╠P
- \"!â>