comparison lisp/textmodes/texinfo.el @ 23871:921e06395776

(texinfo-tex-buffer): Bind tex-start-options-string to empty string. (texinfo-tex-region): Use texinfo-tex-trailer as documented.
author Andreas Schwab <schwab@suse.de>
date Mon, 14 Dec 1998 10:17:50 +0000
parents 19a7a9d3fcc4
children 0fae13f12fab
comparison
equal deleted inserted replaced
23870:30ddc83990a0 23871:921e06395776
812 812
813 The value of `texinfo-tex-trailer' is appended to the temporary file after the region." 813 The value of `texinfo-tex-trailer' is appended to the temporary file after the region."
814 (interactive "r") 814 (interactive "r")
815 (require 'tex-mode) 815 (require 'tex-mode)
816 (let ((tex-command texinfo-tex-command) 816 (let ((tex-command texinfo-tex-command)
817 (tex-trailer "@bye\n")) 817 (tex-trailer texinfo-tex-trailer))
818 (tex-region beg end))) 818 (tex-region beg end)))
819 819
820 (defun texinfo-tex-buffer () 820 (defun texinfo-tex-buffer ()
821 "Run TeX on visited file, once or twice, to make a correct `.dvi' file." 821 "Run TeX on visited file, once or twice, to make a correct `.dvi' file."
822 (interactive) 822 (interactive)
823 (require 'tex-mode) 823 (require 'tex-mode)
824 (let ((tex-command texinfo-texi2dvi-command)) 824 (let ((tex-command texinfo-texi2dvi-command)
825 ;; Disable tex-start-options-string. texi2dvi would not
826 ;; understand anything specified here.
827 (tex-start-options-string ""))
825 (tex-buffer))) 828 (tex-buffer)))
826 829
827 (defun texinfo-texindex () 830 (defun texinfo-texindex ()
828 "Run `texindex' on unsorted index files. 831 "Run `texindex' on unsorted index files.
829 The index files are made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer]. 832 The index files are made by \\[texinfo-tex-region] or \\[texinfo-tex-buffer].