(yatexe)Defining argument-add-in

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

Defining `argument add-in'

  This section describes how to define the add-in function for

  The first argument of `\newcommand' begins always with `\'.  The second
argument is usually so complex that we can not edit them in the
minibuffer.  Here is the created function considering this.

             (defun YaTeX::newcommand (n)	;n is argument position
                ((= n 1)			;1st argument is macro name
                 (read-string "Command: " "\\")) ;initial input `\'
                ((= n 2) "")			;do nothing when reading arg#2
                (t nil)))

  Note that when the `argument add-in' function return `nil', normal
argument reader will be called.

automatically generated by info2www.cgi version 1.2