[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Re: Accessing TeX-related documentation

From: Reiner Steib
Subject: [AUCTeX-devel] Re: Accessing TeX-related documentation
Date: Fri, 18 Nov 2005 10:49:47 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Thu, Nov 17 2005, Ralf Angeli wrote:

> Occasionally I find myself opening an external shell for running
> texdoc.  I think it would be nice to have access to TeX-related
> documentation from inside Emacs.  We could start with something like
> (defun TeX-doc (name)
>   "Display documentation for NAME."
>   (interactive "sCommand or package: ")
>   (call-process "texdoc" nil 0 nil name))
> Would that be nice?


I use the following variant:

(defvar rs-tex-texdoc-command "texdoc"
  "Command to display TeX documentation.")

(defun rs-tex-texdoc (package)
  "Display TeX documentation for PACKAGE."
   (list (completing-read
          "Display documentation for package: "
          (mapcar 'list
                  (TeX-search-files nil
                                    TeX-file-extensions t t))
          nil nil (thing-at-point 'word))))
  (TeX-run-shell nil (concat rs-tex-texdoc-command " " package) nil))

For the AUCTeX command, it would be nice to use the word at point as
default.  I don't know if my completing list would make sense in
AUCTeX because texdoc doesn't find documentation for all listed

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]