On Sat, Mar 15, 2003 at 03:11:16PM +0200, Amir Seginer wrote:
> I couldn't figure how to use math-macro-arg

M-x math-macro-arg 2  is just a complicated way to say '#2' in a macro
definition.

> For example to create a macro \mysum for the sum, enter in the 
> mini-buffer (M-x to reach it)
> 
> math-macro mysum 2    (no \ before "mysum")
> 
> Then at the box you get, simply enter a sum with subscript "#1" (without 
> the quatations) and a superscript "#2" i.e. enter
> 
> \sum_{#1}^{#2}

Even simpler is to type 

     \def\mysum#1#2{\sum_#1^#2}

or

     \newcommand{\mysum}[2]{\sum_#1^#2}

in ordinary text, select this text and press C-m to convert it to a math
macro.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to