(yatexe)Defining option-add-in


Next: Defining argument-add-in Prev: How the add-in function works Up: How the add-in function works

Defining `option add-in'
........................

  If you want `{|c|c|c|}' for all `tabular' environment,

             (defun YaTeX:tabular ()
               "{|c|c|c|}")

is enough.  If you want more complicated format, define as below.

             (defun YaTeX:tabular ()
               "{@{\\vrule width 1pt\\ }|||@{\\ \\vrule width 1pt}}")

Note that the character `\' must be described as `\\' in Emacs-Lisp.  The
next example reads the tabular format from keyboard.
             (defun YaTeX:tabular ()
               (concat "{" (read-string "Rule: ") "}"))


automatically generated by info2www.cgi version 1.2