[OS X TeX] wrting algorithm

Herbert Schulz herbs at wideopenwest.com
Mon Apr 13 08:24:15 EDT 2009


On Apr 13, 2009, at 4:12 AM, Akshay Gulati wrote:

> I am trying to write a algorithm in my paper, and including  
> following script (given below) but \SetLine is giving error as  
> undefined sequence
>
>
> \begin{algorithm}[H]
> \SetLine
> \KwInput{M,N \in N \\
>                  x_j \in [\frac{-1}{2}\frac{1}{2}]}
> \KwResult{how to write algorithm with \LaTeX2e }
> initialization\;
> \While{not at end of this document}{
> read current\;
> \eIf{understand}{
> go to next section\;
> current section becomes this one\;
> }{
> go back to the beginning of current section\;
> }
> }
> \caption{How to write algorithms}
> \end{algorithm}
>
> Thanks
>
> Aki

Howdy,

Could you give a minimal, but complete and compilable, example that  
shows the problem so we can see what packages your are loading, etc?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list