Variable: rst-compile-toolsets
rst-compile-toolsets is a customizable variable defined in rst.el.gz.
Value
((html "rst2html" ".html" nil) (latex "rst2latex" ".tex" nil)
(newlatex "rst2newlatex" ".tex" nil)
(pseudoxml "rst2pseudoxml" ".xml" nil) (xml "rst2xml" ".xml" nil)
(pdf "rst2pdf" ".pdf" nil) (s5 "rst2s5" ".html" nil))
Documentation
Table describing the command to use for each tool-set.
An association list of the tool-set to a list of the (command to use, extension of produced filename, options to the tool (nil or a string)) to be used for converting the document.
This variable was added, or its default value changed, in rst version
1.2.0.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defcustom rst-compile-toolsets
`((html ,(if (executable-find "rst2html.py") "rst2html.py" "rst2html")
".html" nil)
(latex ,(if (executable-find "rst2latex.py") "rst2latex.py" "rst2latex")
".tex" nil)
(newlatex ,(if (executable-find "rst2newlatex.py") "rst2newlatex.py"
"rst2newlatex")
".tex" nil)
(pseudoxml ,(if (executable-find "rst2pseudoxml.py") "rst2pseudoxml.py"
"rst2pseudoxml")
".xml" nil)
(xml ,(if (executable-find "rst2xml.py") "rst2xml.py" "rst2xml")
".xml" nil)
(pdf ,(if (executable-find "rst2pdf.py") "rst2pdf.py" "rst2pdf")
".pdf" nil)
(s5 ,(if (executable-find "rst2s5.py") "rst2s5.py" "rst2s5")
".html" nil))
;; FIXME: Add at least those converters officially supported like `rst2odt'
;; and `rst2man'.
;; FIXME: To make this really useful there should be a generic command the
;; user gives one of the symbols and this way select the conversion to
;; run. This should replace the toolset stuff somehow.
;; FIXME: Allow a template for the conversion command so `rst2pdf ... -o ...'
;; can be supported.
"Table describing the command to use for each tool-set.
An association list of the tool-set to a list of the (command to use,
extension of produced filename, options to the tool (nil or a
string)) to be used for converting the document."
;; FIXME: These are not options but symbols which may be referenced by
;; `rst-compile-*-toolset` below. The `:validate' keyword of
;; `defcustom' may help to define this properly in newer Emacs
;; versions (> 23.1).
:type '(alist :options (html latex newlatex pseudoxml xml pdf s5)
:key-type symbol
:value-type (list :tag "Specification"
(file :tag "Command")
(string :tag "File extension")
(choice :tag "Command options"
(const :tag "No options" nil)
(string :tag "Options"))))
:group 'rst-compile
:package-version '(rst . "1.2.0"))