AUCTeX tex-doc & texdoc

As far as I can tell from the manual, startup C-c ?in AUCTeX should be done texdoc %sin the specified package name. For the vast majority of packages, it does, but some are simply not found - it M-! texdoc memoirworks fine, but it C-c ? memoirdoesnโ€™t work as if it detects a package under a dot, and then when loading documentation when entering it manually.

I am trying to find a variable that controls the call texdoc, but cannot. M-: (executable-find "texdoc")returns /usr/bin/texdocas expected, but as I understand it.

Any suggestions would be greatly appreciated ...

+4
source share
1 answer

11.89, AUCTeX C-c ? TeX-documentation-texdoc, , .

AUCTeX . .


TeX-doc (, C-c ?) : memoir texdoc memoir, doc memman.pdf memoir.pdf. .

, texdoc <symbol-at-point> :

(defun mg-TeX-doc ()
  "Search documentation with texdoc for symbol at point."
  (interactive)
  (call-process "texdoc" nil 0 nil "--view" (thing-at-point 'symbol)))

C-c ?, TeX-doc :

(eval-after-load "tex"
  '(progn
     (define-key TeX-mode-map (kbd "C-c ?") 'mg-TeX-doc)))
+4

Source: https://habr.com/ru/post/1540381/


All Articles