home *** CD-ROM | disk | FTP | other *** search
-
- (require (quote shell))
-
- (defvar latexinfo-latex-shell-cd-command "cd" "\
- Command to give to shell running LaTeX to change directory.")
-
- (defvar latexinfo-latex-command "latex" "\
- *Command used by latexinfo-latex-region to run LaTeX on a region.")
-
- (defvar latexinfo-latexindex-command "latexindex" "\
- *Command used by latexinfo-latexindex to sort unsorted index files.")
-
- (defvar latexinfo-latex-dvi-print-command "lpr -d" "\
- *Command string used by \\[tex-print] to print a .dvi file.")
-
- (defvar latexinfo-show-latex-queue-command "lpq" "\
- *Command string used to show the Latexinfo LaTeX print queue.
- Command is used by \\[latexinfo-show-latex-print-queue] and it
- should show the queue that \\[latexinfo-latex-print] puts jobs on.")
-
- (defvar latexinfo-delete-from-print-queue-command "lprm" "\
- *Command string used to delete a job from the line printer queue.
- Command is used by \\[latexinfo-delete-from-latex-print-queue] based on
- number provided by a previous \\[latexinfo-show-latex-print-queue]
- command.")
-
- (defvar latexinfo-latex-trailer "\\end{document}" "\
- String appended after a region sent to LaTeX by latexinfo-latex-region.")
-
- (defvar latexinfo-latex-original-file "" "\
- Original name of file on which to run LaTeX.")
-
- (defvar latexinfo-latex-temp-file nil "\
- Temporary file name used for text being sent as input to LaTeX.")
-
- (defvar latexinfo-latex-root-temp-file nil "\
- Temporary file name used for text being sent as input to LaTeX.")
-
- (defun latexinfo-latex-region (beginning end) "\
- Run LaTeX on the current region.
-
- A temporary file is written in the default directory, and LaTeX is run
- in that directory. The first line of the file is copied to the
- temporary file; and if the buffer has a header, it is written to the
- temporary file before the region itself. The buffer's header is all
- lines between the strings defined by latexinfo-start-of-header and
- latexinfo-end-of-header inclusive. The header must start in the first 100
- lines. The value of latexinfo-latex-trailer is appended to the temporary file
- after the region." (interactive "r") (byte-code "╞ê╤╥!â ╙╘╒!└\"é ╓ ê╫╪┘┌█ !!!!ëê ▄Pèî▌ êebê▐▀!ê`eeebêα`è▐ß!ê`)
- ╞╞%ê▐ß!ê`WàW `ëêΓ└#à~ π ê`ëêΓ ╞└#â{ ▐ß!ê`ëé~ eëêα^
- └╞%êα
- ]
-
- └╞%êΣσ!
- qêµ êτΦ!êà▓ cêαed
- └╞%*+êΘ╘╒!Ω\"êδ╒∞ΦR\"êδ╒∞
- ΦR\"êφε!)))ç" [t latexinfo-latex-root-temp-file latexinfo-latex-temp-file search-end header-beginning header-end nil beginning latexinfo-start-of-header latexinfo-end-of-header end local-latex-trailer latexinfo-latex-trailer temp-buffer latexinfo-latex-shell-cd-command default-directory latexinfo-latex-command get-buffer "*latexinfo-latex-shell*" quit-process get-process "latexinfo-latex-shell" latexinfo-latex-start-shell expand-file-name make-temp-name prin1-to-string read buffer-name ".tex" widen forward-line 100 write-region 1 search-forward beginning-of-line get-buffer-create " latexinfo-trailer-buffer" erase-buffer insert-string "
- " set-process-sentinel latexinfo-latex-shell-sentinel send-string " " latexinfo-recenter-latex-output-buffer 0] 33))
-
- (defun latexinfo-latex-buffer (buffer) "\
- Run LaTeX on current buffer.
- After running LaTeX the first time, you may have to run \\[latexinfo-latexindex]
- and then \\[latexinfo-latex-buffer] again." (interactive (byte-code "┬├p!─\"à